Commit graph

29698 commits

Author SHA1 Message Date
Ilya Tregubov
4de7faf7f1 Merge branch 'master_MDL-72553_qbank_quiz' of https://github.com/catalyst/moodle-MDL-70329 2021-12-08 09:58:00 +02:00
Eloy Lafuente (stronk7)
deb0e76eee MDL-73278 phpunit: Rename already namespaced classes to match file name
These are the only cases 100% safe to apply the renaming of the
testcase class names to match the file names.

All other cases are not safe, because they are missing namespace
and may enter into name conflicts. Adding namespaces is not as
simple as imagined because it implies to, also, add a good number
of modifications to core. See the issue for more details.
2021-12-07 23:54:29 +01:00
Matt Porritt
556e2f1aec MDL-72553 qbank_customfields: Add custom fields for question types
Custom fields can now be added to question types.
Site administrators can configure the custom fields and
filed types available. Teachers and question creators can
then use these fields for extra question metadata when
creating questions. Question creators can control if
the fields are displayed to students when they are
taking a quiz or not.
This features uses the core Moodle custom field API.

Co-Authored-By: Matt Porritt <mattp@catalyst-au.net>
Co-Authored-By: Safat Shahin <safatshahin@catalyst-au.net>
Co-Authored-By: Marc-Alexandre Ghaly <marc-alexandreghaly@catalyst-ca.net>
2021-12-07 18:32:41 +11:00
Andrew Nicols
47a81d8844 Merge branch 'MDL-72796_fix-retry-delay-for-redis-session-cache' of https://github.com/ziegenberg/moodle 2021-12-07 10:51:56 +08:00
Paul Holden
5701326429 MDL-73237 check: detect same role overrides in different contexts.
Prevents DML debugging from duplicate values in first field, also
fixes `context` class namespace and removes undefined `localrole`
property of $role object.
2021-12-06 16:23:17 +00:00
Bas Brands
26a0091d3c MDL-72981 theme_boost: homogenise logo display 2021-12-06 09:38:21 +01:00
Brendan Heywood
a113af2446 MDL-73207 cron: Fixed cronspec field order bug 2021-12-06 17:52:40 +11:00
Shamim Rezaie
4a9e6036fd Merge branch 'MDL-73245-master' of https://github.com/cameron1729/moodle 2021-12-06 17:08:11 +11:00
Jake Dallimore
1388a8596c Merge branch 'MDL-71915-master-v8' of https://github.com/sharidas/moodle 2021-12-06 13:34:58 +08:00
Sujith Haridasan
a6ed1ec63e MDL-71915 core: Update behat tests
Update behat tests to accommodate changes made for
tertiary navigation.
2021-12-06 10:26:40 +05:30
Sujith Haridasan
d6ead553f5 MDL-71915 core_form: Update behat tests
Update behat tests to accommodate changes made
for tertiary navigation.
2021-12-06 10:26:40 +05:30
Cameron Ball
f71fced168 MDL-73245 cache: Fix bug with session lock debugging
When session lock debugging and read only sessions deubgging are both
enabled, session lock debugging becomes moot. This patch causes
the session lock deubgging code to exit early if read only sessions
debugging is enabled.
2021-12-06 12:15:53 +08:00
Sujith Haridasan
0f029c04d7 MDL-71915 mod_forum: Update behat tests
Update behat tests to accommodate the changes made
for tertiary navigation.
2021-12-06 09:27:58 +05:30
Daniel Ziegenberg
371b490a1f
MDL-72796 caching: fix retry delay for redis session cache
The random retry delay for redis session cache was calculated as
rand(100000, 500000) giving an effective retry delay of 100 seconds
to 500 seconds. That's off by a factor of a thousand! Using Redis as a
session cache and when the connection hangs, you can get random
"cannot obtain session lock" errors because it's waiting up to
500 seconds (or about 8.33 minutes) for a Redis connection.
This sets the delay to the originally intended 100ms to 500ms.
(see MDL-59866).

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2021-12-05 17:03:56 +01:00
Ilya Tregubov
689bf6fc1e Merge branch 'MDL-72112-master' of https://github.com/aanabit/moodle 2021-12-03 15:11:01 +02:00
Andrew Nicols
aecdb936cf MDL-73103 core: add new saveCancelPromise notification method. 2021-12-03 13:01:58 +00:00
Ilya Tregubov
638c8c452c Merge branch 'MDL-72875-master-v2' of https://github.com/peterRd/moodle 2021-12-03 14:29:59 +02:00
Sara Arjona
9e4f2a45f8 MDL-72112 admin_presets: Add admin_presets tool 2021-12-03 11:11:37 +01:00
Andrew Nicols
e2fd3f424e Merge branch 'MDL-72846-master' of https://github.com/NoelDeMartin/moodle 2021-12-03 08:26:17 +08:00
Noel De Martin
3ce936fe6d MDL-72846 testing: Add default block generators 2021-12-02 14:58:24 +01:00
Jun Pataleta
bc6385cc6c Merge branch 'MDL-73142-master' of https://github.com/susyzan/moodle 2021-12-02 14:30:16 +08:00
Jun Pataleta
bfecd28c7c Merge branch 'MDL-73000-master' of git://github.com/jleyva/moodle 2021-12-02 13:51:25 +08:00
Peter Dias
3cddee197f MDL-72875 course: Update behat test to use the tertiary nav 2021-12-02 13:09:12 +08:00
Peter Dias
e0d7dbd022 MDL-72875 course: Introduce tertiary nav in participants
- Introduce tertiary nav in the participants page
2021-12-02 13:09:12 +08:00
Andrew Nicols
e6600293f4 Merge branch 'MDL-73176' of https://github.com/paulholden/moodle 2021-12-02 12:09:33 +08:00
Andrew Nicols
0888efd258 Merge branch 'mdl-68199-fix-master' of https://github.com/jaypha/moodle 2021-12-02 11:54:59 +08:00
Andrew Nicols
312bfce30f Merge branch 'MDL-73205' of https://github.com/paulholden/moodle 2021-12-02 11:35:55 +08:00
Andrew Nicols
807718b723 Merge branch 'MDL-73070' of https://github.com/timhunt/moodle 2021-12-02 11:24:16 +08:00
Andrew Nicols
da02146ea1 Merge branch 'MDL-73149' of https://github.com/paulholden/moodle 2021-12-02 11:02:08 +08:00
Jason den Dulk
e7f51a3857 MDL-68199 setup: Fix invalid parameters to make_request_directory()
Added parameter type hint to make_request_directory()
Removed invalid parameters from calls to make_request_directory()

Removing these parameters should have no effect on behaviour.
2021-12-02 07:49:28 +11:00
Eloy Lafuente (stronk7)
bf4a830f62 Merge branch 'MDL-70894-master' of https://github.com/yankudriavtsev/moodle 2021-12-01 19:10:36 +01:00
Sara Arjona
ca8f2deea4 Merge branch 'MDL-73140' of https://github.com/timhunt/moodle 2021-12-01 12:29:47 +01:00
Jun Pataleta
216f36ab21 Merge branch 'MDL-73222' of https://github.com/paulholden/moodle 2021-12-01 18:48:26 +08:00
Sara Arjona
85c6da5649 Merge branch 'MDL-72866' of https://github.com/Chocolate-lightning/moodle 2021-12-01 11:18:35 +01:00
Paul Holden
171c615a1b MDL-73149 reportbuilder: update sorting options after aggregation.
Aggregation types can disable column sorting, e.g. both the current
group concatenation types. If such a type is selected for a column
we should update the report sorting options, ensuring that only those
columns that can be sorted are available for selection.
2021-12-01 09:12:07 +00:00
Sara Arjona
40818b5212 Merge branch 'MDL-72834-master' of https://github.com/HuongNV13/moodle 2021-12-01 08:59:47 +01:00
Jun Pataleta
3ae9f4cac3 Merge branch 'MDL-72822' of https://github.com/roland04/moodle 2021-12-01 11:27:06 +08:00
Paul Holden
aecd84851c MDL-73222 blocks: register add block modal listeners just once.
Ensure modal is built on each click, as the dataset URL of the
target element may differ.
2021-12-01 02:09:24 +00:00
Paul Holden
8573981a03 MDL-73176 forms: escape selector for active autocomplete element. 2021-11-30 20:08:36 +00:00
Sara Arjona
ecfded8d31 MDL-72112 plugininfo: Add new get_enabled_plugin method
Apart from adding the new get_enabled_plugin($pluginname) method to the
core_plugininfo\base class, and overwritting it for filter, a bug in
enable_plugin in filter, introduced in MDL-72720, has been fixed too.
2021-11-30 13:14:26 +01:00
Amaia Anabitarte
1f450065a6 MDL-72112 output: Add new displayoption parameter to confirm function 2021-11-30 13:14:26 +01:00
Mathew May
f65b92577a MDL-70197 navigation: Update classic goutte tests 2021-11-30 08:13:49 +02:00
Huong Nguyen
7de559fa2f MDL-72834 Calendar: Move the calendar into the user menu 2021-11-30 10:22:07 +07:00
Eloy Lafuente (stronk7)
cee0949109 Merge branch 'MDL-73074' of https://github.com/paulholden/moodle 2021-11-29 23:14:48 +01:00
Paul Holden
b1204acbf0 MDL-73205 forms: handle AJAX error in dynamic/modal form submission. 2021-11-29 18:28:44 +00:00
Jun Pataleta
5438a3944a Merge branch 'MDL-72810-master' of git://github.com/mickhawkins/moodle 2021-11-29 17:19:28 +08:00
Ilya Tregubov
d29c09344e Merge branch 'migration-nov26' of https://github.com/Chocolate-lightning/moodle 2021-11-29 10:37:08 +02:00
Sara Arjona
3d0af6fa39 Merge branch 'MDL-73160' of https://github.com/stronk7/moodle 2021-11-29 09:31:04 +01:00
Mathew May
b983003e2e MDL-70197 navigation: Remove old navigation elements and migrate behat 2021-11-29 15:47:42 +08:00
Simey Lameze
b179f74b82 MDL-70274 core: fix Validate HTML and WCAG Check links 2021-11-29 12:08:57 +08:00