| Feature | Database | Dataform | |
|---|---|---|---|
| Change 'Choose a link' to 'Choose a resources' | X | V | This is not a Database activity issue but rather a url-picker lang string issue. The Dataform works around that by making the display of the url-picker optional by field setting. |
| Change the order of URL filed form | X | N/A |
|
| Search full name | X | V | |
| Set Search box at top or bottom of page |
X | V | |
| Add space or break to checkboxes in 'Search' page |
X | N/A | |
| Set Check boxes and Radio Buttons in Vertical or Horizontal |
X | V | |
| File field allow multiple files |
X | V | |
| Add ##filesize## |
X | V | |
| Add #userpic# |
X | V | |
| Add #currentuser# to #timemodified# |
X | X | This is a matter of logging entry modifications. It is an intriguing idea to display entry log in the entry view by patterns. So much so, that I'm definitely going to look into this. |
| Add a new tool: 'Duplicate field' |
X | V | |
| Required field | V (2.8) | V | |
| Sort by rating | X | V | |
| Export rating | X | V | While the Dataform allows exporting rating patterns to csv, these are renderred with some html and hence the exported value is not "clean". This will be addressed in a near future release. |
| Update entries for different user groups | |||
| Add ##group## | X | V | |
| Add default text to text/ textarea field | X | X | Should be done for all fields. The Dataform allows setting defaults in the menu fields (select, select multiple, radio, checkbox). |
| Email users for comments | X | V | |
| Email users for a new entry | X | V | |
| Subscribe to comments | X | X | |
| Assign role to views | X | V | |
| Multiple views for different roles | X | V | |
| Assign role to fields; private fields | X | V |
Itamar Tzadok
Mezuen egilea: Itamar Tzadok
Can you turn debugging on to see if there are any debugging messages?
The problem can be narrowed down a little more. My events testcase consists of 4 tests:
- view events
- field events
- filter events
- entry events
The view and field tests loop over all the installed Dataform view and field subplugins respectively.
Each test begins with creating a course and a dataform activity in the course.
Without resetAllData, if I run only this test case, the first test pass and the rest fail on the above mentioned exception. The 'first' in "first test pass" is relative. As is, the view events test pass and the rest fail. If I remove the view events test, then the field events test pass and the rest fail. And so on.
So, it happens with a group of tests even within the same test case. And it is event related issue.
Before the upgrade the tests worked with resetAfterTest and mysql 5.6.12 which had a known problem with reseting table sequences. When the tests stopped working after upgrading Moodle, I upgraded mysql to 5.6.21 but that didn't help. The problem seemed like a caching issue arising from running all these tests as one script (e.g. static variables persist instead of destroyed and recreated). I tried calling accesslib_clear_all_caches_for_unit_testing but didn't help. I revised the plugin code to be able to cleanup static content on demand but that didn't help either. I can appreciate that resetAllData is somewhat an extreme measure but it's the only thing that works so far.
It takes the gradebook users, so if you make this new role a graded role (Administration > Site administration > Grades > General settings) all users under this role will appear in the dropdown.
Also good to know, you can add entries on behalf of users via the csv import. You can import the entry author by id, username or idnumber. This method allows you to assign any user on the site as an entry author, even if that user is not enrolled in the course where the Dataform activity resides.
For further Dataform questions and discussion we have now a designated forum at https://moodle.org/mod/forum/view.php?id=8192. See you there.