29228 Commits

Author SHA1 Message Date
Bas Brands
061449612c MDL-72739 theme_boost: update editswitch to look like ux design 2021-12-20 15:24:22 +01:00
Ilya Tregubov
d051e7dc02 Merge branch 'MDL-72873-master-v1' of https://github.com/mihailges/moodle 2021-12-16 10:21:48 +02:00
Eloy Lafuente (stronk7)
4428a025de Merge branch 'MDL-73145-master' of https://github.com/sarjona/moodle 2021-12-15 18:34:47 +01:00
Mihail Geshoski
de53412989 MDL-72873 core_grades: Remove $CFG->grade_navmethod
The $CFG->grade_navmethod setting has been removed because it is not
required anymore. This setting was used to set the type of navigation
(tabs or dropdown box) which will be used in gradebook. However, these
navigation methods are no longer used and replaced with tertiary
navigation.
2021-12-16 00:10:13 +08:00
Mihail Geshoski
95b35652d3 MDL-72873 core_grades: Deprecate unused methods
The functions grade_print_tabs() and print_grade_plugin_selector()
can be deprecated as they are no longer used. These functions were
used to generate and output the tabs and dropdown box navigation
in gradebook which is now replaced with tertiary navigation.
2021-12-16 00:10:13 +08:00
Andrew Nicols
873000b23b Merge branch 'MDL-73329' of https://github.com/paulholden/moodle 2021-12-15 09:34:34 +08:00
Peter Dias
00cda46fae MDL-72413 core: Disable the default activity header 2021-12-14 13:50:42 +02:00
Víctor Déniz
437470b404 Merge branch 'MDL-73039' of git://github.com/paulholden/moodle 2021-12-13 19:28:35 +00:00
Ilya Tregubov
9e5ffa2229 Merge branch 'MDL-72095-master-3' of https://github.com/bmbrands/moodle 2021-12-13 18:46:16 +02:00
Sara Arjona
29649e2d6f Merge branch 'MDL-73231' of https://github.com/Chocolate-lightning/moodle 2021-12-13 16:31:43 +01:00
Mathew May
54e098c5a5 MDL-73231 my: Allow my courses to be a homepage 2021-12-13 22:43:28 +08:00
Paul Holden
2832b63a9e MDL-73039 course: remove double encoding of course/site for download. 2021-12-13 10:09:03 +00:00
Ilya Tregubov
16a7c3a698 Merge branch 'MDL-72413-master-dec13' of https://github.com/peterRd/moodle 2021-12-13 09:35:14 +02:00
Peter Dias
5e911213e9 MDL-72413 core: Unit test activity header 2021-12-13 09:49:35 +08:00
Peter Dias
710c04d5ee MDL-72413 core: Disable the default activity header 2021-12-13 09:49:35 +08:00
Peter Dias
a2d8ac6eea MDL-72413 core: Introduce new header component to render standard items
New activity header to render common module items in a centralised location.
2021-12-13 09:49:34 +08:00
Ilya Tregubov
6f44f008d8 Merge branch 'MDL-73278' of https://github.com/stronk7/moodle 2021-12-10 18:51:40 +02:00
Paul Holden
becf3bd15c MDL-73329 admin: improve detection of the admin search page.
After a query has been performed, the individual tab content
(it's settings links) isn't rendered to the page. In this case
we should redirect the user back to initial page without the
query parameter, in order for the tab content to load.
2021-12-10 14:00:38 +00:00
Andrew Nicols
097098735a Merge branch 'MDL-73060' of https://github.com/paulholden/moodle 2021-12-10 11:12:14 +08:00
Sara Arjona
14e62a3d5c Merge branch 'MDL-72981-master-2' of https://github.com/bmbrands/moodle 2021-12-09 12:01:09 +01:00
Paul Holden
d8afa1b4e4 MDL-73060 webservice: fix logged config for first enabled protocol.
Resolves PHP notice from 1dfa86b4.
2021-12-09 10:41:49 +00:00
Sara Arjona
42895003e4 MDL-73145 install: Apply site preset if defined in config
A new setting, $CFG->setsitepresetduringinstall, has been added to
config file, to let admins define the site admin preset to be applied
during the Moodle installation.

Besides, a new parameter, "--sitepreset" has been also added
to admin/cli/install.php, to let define it too when running the
upgrade process using CLI.
2021-12-09 09:48:44 +01:00
Jun Pataleta
107bcc143c Merge branch 'MDL-72090-master' of git://github.com/abgreeve/moodle 2021-12-09 11:17:32 +08:00
abgreeve
05a6bca72c MDL-72090 behat: Deprecation of enrolment behat step.
i_add_enrolment_method_with() is now deprecated, please use
i_add_enrolment_method_for_with() instead.
2021-12-09 11:13:35 +08:00
abgreeve
fcd4de8639 MDL-72090 navigation: Update to behat feature files for navigation.
This updates feature files to use the new steps to navigate to certain
pages.
2021-12-09 11:13:35 +08:00
abgreeve
8a5e36fa06 MDL-72090 navigation: Update to existing behat steps.
This creates new general behat steps for navigating in theme
boost and classic.
2021-12-09 11:13:35 +08:00
abgreeve
89d749fda6 MDL-72090 navigation: New unit and behat tests for navigation.
This adds new tests for functions that impact the more menu and
the course administration overflow.
2021-12-09 11:13:35 +08:00
abgreeve
d02274137a MDL-72090 navigation: Create an overflow menu for course admin.
This adds a select menu for navigation on course administration
 pages such as import, export, course copy, and course reset.
2021-12-09 11:13:35 +08:00
Bas Brands
946fd915e2 MDL-72095 theme_boost: max width for activity pages 2021-12-08 17:29:49 +01:00
Ilya Tregubov
3a434518ef Merge branch 'MDL-73103' of git://github.com/paulholden/moodle 2021-12-08 14:56:50 +02:00
Jun Pataleta
402101b58f Merge branch 'MDL-71691-master-9' of https://github.com/bmbrands/moodle 2021-12-08 20:29:40 +08:00
Bas Brands
35a5288554 MDL-71691 core_behat: behat fixes for changed course design 2021-12-08 13:14:05 +01:00
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
Bas Brands
26a0091d3c MDL-72981 theme_boost: homogenise logo display 2021-12-06 09:38:21 +01: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