105753 Commits

Author SHA1 Message Date
Sara Arjona
599aca679b MDL-75148 mod_data: Improve presets list page
- Add a new help text.
- Add captions to table columns.
- Move action icons to action menu, and fix code to display the remove
action only for presets created by users.
- CSS improvements to fit the prototype.

In order to achive the previous points, the renderer has been improved,
to return the data and let the mustache to print it properly (instead of
returning the formatted HTML table).
2022-08-01 12:08:16 +02:00
Sara Arjona
06b86fdfc3 MDL-75148 mod_data: Enable Use preset button when one is selected
The 'Use preset' button will be enabled only when a preset is selected.
2022-08-01 12:08:16 +02:00
Sara Arjona
7d88bc0754 MDL-75148 mod_data: Move Import button to right
This commit moves the Import button from the tertiary navigation to
the right.
2022-08-01 12:08:16 +02:00
Sara Arjona
ad0595b4b4 MDL-75148 mod_data: Implement preset behat generator 2022-08-01 12:08:16 +02:00
Sara Arjona
13264c7107 MDL-75148 mod_data: Add create_preset to generator 2022-08-01 12:08:16 +02:00
Sara Arjona
9d10f7d19e MDL-75148 mod_data: Add isplugin info to presets
This activity currently supports two different preset types:
- Datapreset plugins, that can be installed copying them to the
mod/data/preset folder.
- Presets saved manually by users.

This commit adds an attribute to the presets to mark them, in order
to identify them later (because, for instance, the plugins can't be
removed).

Apart from that, the methods in lib.php, involved with this issue, have
been deprecated. New methods have been implemented in the manager class,
covering them with PHPUnit tests.
2022-08-01 12:08:16 +02:00
Sara Arjona
abeae6acb2 MDL-75148 mod_data: Add missing template (adv search)
While covering is_directory_a_preset() with PHPUnit tests, it has been
identified that there was a missing file in the Image gallery preset.
The template will be reviewed in the future (in a separate issue) but,
for now, I'm going to add the default template for advanced search.
2022-08-01 11:34:24 +02:00
Cameron Ball
2e44102904 MDL-74592 tool_uploaduser: Add option to match on email 2022-08-01 13:45:27 +08:00
Shamim Rezaie
17e01f6d7f Merge branch 'MDL-74957' of https://github.com/paulholden/moodle 2022-08-01 12:32:49 +10:00
Paul Holden
637e3a7c88 MDL-74957 reportbuilder: external method for triggering report view. 2022-07-29 14:11:34 +01:00
Marina Glancy
24072f69e9 MDL-75285 core_reportbuilder: allow left joins on category entity 2022-07-29 12:48:30 +02:00
Tim Hunt
9468fe3c8c MDL-74636 behat: step to skip this scenario if a plugin isn't installed 2022-07-29 09:45:09 +01:00
Jun Pataleta
41b805c1ba Merge branch 'MDL-75244-master' of https://github.com/andrewnicols/moodle 2022-07-29 15:30:44 +08:00
Jun Pataleta
0fb9cdedbb Merge branch 'MDL-75235' of https://github.com/paulholden/moodle 2022-07-29 14:32:37 +08:00
Philipp Imhof
0ef6473fff
MDL-74492 editor_atto: <line> tags should not be confused with <li> tags 2022-07-29 08:32:18 +02:00
Simey Lameze
b522d7652d MDL-74211 behat: replace steps to use new categories page type 2022-07-29 13:02:16 +08:00
Simey Lameze
e5ee04d4b9 MDL-74211 behat: add course question categories page type 2022-07-29 13:02:16 +08:00
Simey Lameze
8b4f423c05 MDL-74211 quiz: make use of question data generators 2022-07-29 13:02:16 +08:00
Andrew Nicols
b47fcbb204 Merge branch 'MDL-72349_update_strip_double_headers_function' of https://github.com/christina-roperto/moodle 2022-07-29 12:11:22 +08:00
Jun Pataleta
417d1b918b weekly release 4.1dev 2022-07-29 10:56:38 +08:00
Angelia Dela Cruz
35e5d39d48 MDL-75080 behat: Chat behat generators use UI
Replace steps that manually add Chat instances via the UI and use
Behat generators. This improves the speed of the Behat test runs.
2022-07-29 09:52:52 +08:00
Paul Holden
5b91dabaac MDL-75235 reportbuilder: external method to set report filter values. 2022-07-28 10:47:42 +01:00
Andrew Nicols
c48c431374 MDL-75244 form: Change checker should check existence of tinyMCE API
The window.tinyMCE.editors API was present in version 3 of TinyMCE, but
is not present in later versions. As a result, this check tries to loop
over a variable which does not exist and throws an error in the process.

We should check that window.tinyMCE *and* window.tinyMCE.editors both
exist before attempting to loop over them.
2022-07-28 16:09:21 +08:00
Jun Pataleta
72410a4ca1 Merge branch 'MDL-75256' of https://github.com/paulholden/moodle 2022-07-28 10:10:13 +08:00
Jun Pataleta
dc5d5e3da7 Merge branch 'MDL-74964-master' of https://github.com/lameze/moodle 2022-07-27 17:13:07 +08:00
Jun Pataleta
202ce9173b Merge branch 'MDL-74656-fix' of https://github.com/paulholden/moodle 2022-07-27 16:37:03 +08:00
Simey Lameze
b5bf5f82be MDL-62959 calendar: add behat to test event type changing 2022-07-27 15:44:37 +08:00
Paul Holden
85544709d0 MDL-74656 reportbuilder: cast fields to char on mssql during concat. 2022-07-27 08:12:34 +01:00
Jun Pataleta
75001189d0 Merge branch 'MDL-74697-master' of https://github.com/sarjona/moodle 2022-07-27 14:29:22 +08:00
Jun Pataleta
b8d7a5e39b Merge branch 'MDL-74808-master' of https://github.com/lameze/moodle 2022-07-27 13:21:55 +08:00
Ilya Tregubov
9009949de6 Merge branch 'MDL-75135' of https://github.com/lostrogit/moodle 2022-07-27 08:42:28 +04:00
Marina Glancy
8add66b810 MDL-74964 core_enrol: enrolment page UI fixes 2022-07-27 08:10:43 +08:00
Paul Holden
3971b69bb4 MDL-75312 question: predictable ordering of available questions.
This solves sporadic test failure that tried to assert their order.
2022-07-26 17:12:48 +01:00
Jun Pataleta
5b634ef13e Merge branch 'MDL-74656' of https://github.com/paulholden/moodle 2022-07-26 20:03:39 +08:00
Ilya Tregubov
cfc6ec6973 Merge branch 'MDL-75146-master' of https://github.com/sarjona/moodle 2022-07-26 15:08:37 +04:00
Simey Lameze
8cc79b1c87 MDL-62959 calendar: fix event data mapping for group id 2022-07-26 17:09:38 +08:00
Huong Nguyen
4139046a9a MDL-72430 Calendar: Fix admin cannot edit course event 2022-07-26 11:48:58 +07:00
Andrew Nicols
b32b4865c0 Merge branch 'MDL-73788-master' of https://github.com/andelacruz/moodle 2022-07-26 11:37:51 +08:00
Jun Pataleta
af25a9c4d9 Merge branch 'MDL-74057-master' of https://github.com/andelacruz/moodle 2022-07-26 11:02:30 +08:00
hieuvu
a6836d1a39 MDL-61401 Workshop: fixed indentations and coding style 2022-07-26 09:10:40 +07:00
Paul Holden
426f533c07 MDL-74895 h5p: more resilient error handling during content fetching.
On new installs, the task for downloading new H5P content types would
throw exceptions and exit when encountering unexpected and/or missing
data.
2022-07-25 20:03:12 +01:00
Angelia Dela Cruz
a18d8c59f4 MDL-74057 behat: SCORM behat generators use UI
Replace steps that manually add SCORM instances via the UI and use
Behat generators. This improves the speed of Behat test runs.
2022-07-25 19:36:40 +08:00
Ilya Tregubov
a63695971c Merge branch 'MDL-75083-master' of https://github.com/rzhtwberlin/moodle 2022-07-25 14:54:57 +04:00
Ilya Tregubov
07a1b6e27b Merge branch 'MDL-71708' of https://github.com/lostrogit/moodle 2022-07-25 11:17:54 +04:00
Paul Holden
d16ea57405 MDL-75235 reportbuilder: allow default filter form to be disabled.
This allows for custom filter forms to be implemented, rather than
using the default one for system reports.
2022-07-22 09:17:48 +01:00
Paul Holden
d0b5241786 MDL-75256 task: move abstract get_name method to base class.
Allow adhoc tasks to implement this method, so they too can have
descriptive names for themselves. Default implementation added to
return the class name itself.
2022-07-22 09:13:53 +01:00
Andrew Nicols
547cae0a02 MDL-74697 libraries: Update all third-party libraries with more metadata 2022-07-22 07:28:47 +02:00
Sara Arjona
bc9b915a32 MDL-75146 mod_data: Fix comments raised during int-review 2022-07-22 07:27:40 +02:00
Ferran Recio
776e48748f MDL-75146 mod_data: refactor template parser 2022-07-22 07:27:40 +02:00
Ferran Recio
e2da14bbb8 MDL-75146 mod_data: migrate templates editor to mustache 2022-07-22 07:27:40 +02:00