Commit graph

104483 commits

Author SHA1 Message Date
Peter Dias
df5425538e MDL-73373 behat: Update behat tests 2022-02-09 16:06:48 +08:00
Adrian Greeve
965f4e74cd fixup! MDL-73354 mod_assign: General tidy up of tertiary navigation. 2022-02-09 10:52:58 +08:00
Adrian Greeve
ddb35c124a fixup! MDL-73354 mod_assign: Overrides page updates to tertiary navigation. 2022-02-09 10:52:35 +08:00
Adrian Greeve
ac32195022 MDL-73354 mod_assign: Fixed broken timed assignment feature. 2022-02-09 10:52:35 +08:00
Adrian Greeve
c565ec4535 MDL-73354 mod_assign: Removed unused test code. 2022-02-09 10:52:35 +08:00
Adrian Greeve
75aed26e78 MDL-73354 advanced grading: Updated management page.
The management page will no longer show the activity name in the
title if using secondary navigation.
2022-02-09 10:52:34 +08:00
Adrian Greeve
1b0fec7f03 MDL-73354 mod_assign: Overrides page updates to tertiary navigation. 2022-02-09 10:52:34 +08:00
Adrian Greeve
33e6a36daf MDL-73354 mod_assign: General tidy up of tertiary navigation. 2022-02-09 10:52:34 +08:00
AMOS bot
e3bf7380ba Automatically generated installer lang files 2022-02-09 00:07:38 +00:00
Eloy Lafuente (stronk7)
a0f8a78f16 MDL-73764 behat: Verify the report works and all files in core are ok 2022-02-08 19:25:03 +01:00
Eloy Lafuente (stronk7)
3bb4a4009c MDL-73764 tool_xmldb: Regenerate all the files detected by the report
Note that, instead of going one by one to them from the XMLDB Editor
(load, makes some tiny change, save, revert the change, save), the
report includes a commented line that, once uncommented, does regenerate
the file while reporting.

I've left it there as a commodity for the developer.
2022-02-08 19:25:03 +01:00
Eloy Lafuente (stronk7)
ebd0f69daa MDL-73764 tool_xmldb: New report to show all xml files needing reconcile
People uses to edit the install.xml files manually, here and there. That
uses to come with small mistakes, like wrong white-space indentation,
some attributes out of order...

While none of them are critical, they add a lot of noise when somebody
is correctly editing a file with the XMLDB Editor because it, correctly,
overwrites the whole file and then diffs show a lot of unrelated changes.

So, this report will inform us about any file needing to be regenerated
because it has been manually edited (in a different way than the way
the editor has).

Note that the report is very basic, with minimal ouput, manually
generating the HTML, like the rest of the XMLDB Editor actions do. We
are not using renderers neither templates here.

Also note that it includes a commented line of code that, once
uncommented, enables the report to, also, fix the wrong files. Useful
for developers.
2022-02-08 19:25:02 +01:00
Paul Holden
683fc4d9d1 MDL-73811 reportbuilder: ensure audience cards are uniquely keyed. 2022-02-08 16:35:59 +00:00
Bas Brands
c788b032ce MDL-73805 theme_boost: remove left icon margin
Reverted from MDL-73543 since it was causing multiple
icon alignment issues, Fixed the alignment issue for
the recently accessed courses block
2022-02-08 14:42:30 +01:00
Bas Brands
483686ad0e MDL-73768 theme_boost: add right margin to profile picture 2022-02-08 14:01:10 +01:00
Ilya Tregubov
5897242361 on-demand release 4.0dev+ 2022-02-08 14:54:21 +02:00
cescobedo
fafa097dd2 MDL-71713 auth_cas: Set Moodle files after phpCAS upgrade 2022-02-08 07:09:12 +01:00
cescobedo
4045a42445 MDL-71713 auth_cas: Upgrade phpCAS to 1.4.0 2022-02-08 07:02:04 +01:00
Andrew Nicols
68ae89ccc4 Merge branch 'MDL-73631' of https://github.com/paulholden/moodle 2022-02-08 12:03:42 +08:00
Jun Pataleta
939cb7a90f Merge branch 'MDL-72246-master-2' of https://github.com/andrewnicols/moodle 2022-02-08 11:36:59 +08:00
Andrew Nicols
70cc41eec8 MDL-72246 core_completion: Only fetch other completion data on requested
Prior to this patch, the code was fetching all completion data for all
activities in a course, even when the activity was not requested. This
leads to recursion issues as the data has not been added to the cache
before this operation occurs.

To handle this situation, only the requested CM is fetched in full, and
a boolean flag is used to store whether the full data has been fetched.

When returning a partially fetched value from the cache, the flag is
used to determine whether more data must be fetched, and the cache
updated.

The flag is filtered out before the value is returned.

Note: Many of the tests were updated as these were inspecting private
features of the API which should not really be tested.
2022-02-08 11:35:23 +08:00
Andrew Nicols
adc61dddc3 MDL-72246 core_completion: Test coverage improvements for completion 2022-02-08 11:22:14 +08:00
Andrew Nicols
a999b12e02 MDL-72246 core_completion: Stop testing the inner workings of get_data() 2022-02-08 11:22:14 +08:00
Andrew Nicols
95c6d3c8d9 Merge branch 'MDL-73716' of https://github.com/stronk7/moodle 2022-02-08 10:59:34 +08:00
Andrew Nicols
df154ecb72 Merge branch 'MDL-73116' of https://github.com/roland04/moodle 2022-02-08 10:57:40 +08:00
Andrew Nicols
b710e57ebd Merge branch 'MDL-73766-master' of https://github.com/lucaboesch/moodle 2022-02-08 10:54:44 +08:00
Peter Dias
675b7eb234 MDL-73373 report: Disable module level report options 2022-02-08 09:04:04 +08:00
Peter Dias
81492f900f MDL-73373 roles: Enable tertiary navigation in module context 2022-02-08 09:04:04 +08:00
Víctor Déniz
1a42a95e8d Merge branch 'MDL-73279' of https://github.com/call-learning/moodle 2022-02-07 18:13:20 +00:00
Eloy Lafuente (stronk7)
c5e2a4ded0 Merge branch 'MDL-73601-master' of https://github.com/aanabit/moodle 2022-02-07 12:01:19 +01:00
Mikel Martín
268157743f MDL-73116 reportbuilder: Use triggerElement parameter to return focus 2022-02-07 11:33:35 +01:00
Mikel Martín
8b535c297b MDL-73116 core: Add triggerElement parameter to saveCancel dialogue
triggerElement parameter is used to return the focus after modal is hidden
2022-02-07 11:33:35 +01:00
Eloy Lafuente (stronk7)
43280530b6 MDL-73716 phpunit: remove old simpletest static members
And replace them by phpunit @covers annotations including
all the classes declared or extended in the removed members.

It's not awesome coverage, but better than nothing.
2022-02-07 10:42:17 +01:00
Shamim Rezaie
9efbb2346a Merge branch 'MDL-73684-master' of https://github.com/marinaglancy/moodle 2022-02-07 18:40:39 +11:00
Luca Bösch
c5df2d0c58 MDL-73766 theme_boost: have login page use loginto string 2022-02-07 07:54:31 +01:00
Andrew Nicols
d4d0e14fef Merge branch 'MDL-73697-master' of https://github.com/ferranrecio/moodle 2022-02-07 14:23:31 +08:00
Shamim Rezaie
7a1488120e Merge branch 'MDL-73644-master' of https://github.com/lameze/moodle 2022-02-07 16:41:26 +11:00
Shamim Rezaie
7c8aaa6df2 Merge branch 'MDL-73480-master' of https://github.com/bmbrands/moodle 2022-02-07 16:36:39 +11:00
Andrew Nicols
8c08634b69 Merge branch 'MDL-73659' of https://github.com/stronk7/moodle 2022-02-07 13:34:01 +08:00
Simey Lameze
5396814489 MDL-73644 core: link confirm module CL to related JSDoc 2022-02-07 13:26:47 +08:00
Huong Nguyen
02f622c247 MDL-73784 usertours: Update tour steps to use Moodle langstring 2022-02-07 10:57:16 +07:00
Huong Nguyen
4c097bc6c0 MDL-73784 usertours: Support multiple PIXICON placeholder 2022-02-07 10:49:52 +07:00
Huong Nguyen
681df03204 MDL-73784 usertours: Make End tour button's label translatable
We can use the Moodle language format for End tour button's label now
2022-02-07 10:49:51 +07:00
Huong Nguyen
d9d068699c MDL-73784 usertours: Deprecation of the step::get_string_from_input
Modified code to just simply call helper::get_string_from_input() rather than duplicating the code
2022-02-07 09:45:31 +07:00
Huong Nguyen
21caea1f9a MDL-73784 usertours: Improve the tours maching
- Introduce some new constants like MY, MYCOURSES, FRONTPAGE_MY...
 - The Tour now can detect the URL match is pointing to Dashboard (/my/) or My Course (/my/courses.php) correctly
2022-02-07 09:39:46 +07:00
Andrew Nicols
2d39b5bb39 Merge branch 'master_MDL-73666-questionimagebug' of https://github.com/catalyst/moodle-MDL-70329 2022-02-07 10:12:20 +08:00
Andrew Nicols
bb20aefc8d Merge branch 'MDL-71712-master' of https://github.com/aanabit/moodle 2022-02-07 09:53:09 +08:00
Marc-Alexandre Ghaly
66115d7f0b MDL-73666 core_question: Question bank usage and comment modal fix
Fix for question bank modals not showing question images.
2022-02-07 08:37:05 +11:00
David Mudrák
38e05ba09f MDL-73748 admin: Check for available updates daily on random time
It's been a mistake to make every Moodle site out there to check for
available update every two hours, on the hour. We are experiencing
server load peaks that are harder and harder to deal with.

The patch addresses this by (1) checking for available updates just once
a day and (2) distributing the checking times randomly around the clock.
2022-02-06 22:02:34 +01:00
Eloy Lafuente (stronk7)
7a0d024e60 MDL-73659 phpunit: restore_date, api, rule, plugin, manager & helper
All restore_date_test, api_test, rule_test, plugin_test,
manager_test, helper_test testcase classes:

- Namespaced with component[\level2-API]
- Moved to level2-API subdirectory when required.
- Fixed incorrect use statements with leading backslash.
- Remove file phpdoc block
- Remove MOODLE_INTERNAL if not needed.
- Changed code to point to global scope when needed.
- Fix some relative paths and comments here and there.
- All them passing individually.
- Complete runs passing too.

Special mention to:

- All restore_date_test cases have been put under xxx\backup
  level 2 (valid API) namespace.
2022-02-05 00:03:32 +01:00