Commit graph

101946 commits

Author SHA1 Message Date
Peter Burnett
54c42455ad MDL-68773 backup: Allow completed async backup + restore tasks to clear 2022-01-04 10:58:30 +10:00
Petr Skoda
b5d9af91dc MDL-73272 behat: move behat extension to core 2021-12-31 09:55:07 +13:00
Eloy Lafuente (stronk7)
6dd561a11c MDL-73352 phpunit: lib_test and locallib_test testcase names
All lib_test and locallib_test classes:

- Namespaced with component (and API whenever makes sense).
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed or add new uses.
- All them passing individually.
- Complete runs passing too.

Special mention to tests under login/tests:

1) The core_login component doesn't exist.
2) But login/tests are allowed because there is a suite pointing to it (phpunit.xml).
3) So, the only possible namespace for them is "core".
4) And to avoid problems with other core testcases (under lib/tests)
   they have been renamed to have login_xxxx as prefix.
2021-12-30 16:21:48 +01:00
Sara Arjona
3105d5bc9f weekly release 3.11.4+ 2021-12-30 11:24:10 +01:00
Sara Arjona
e08e3de631 Merge branch 'install_311_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_311_STABLE 2021-12-30 11:24:06 +01:00
AMOS bot
700562d609 Automatically generated installer lang files 2021-12-30 00:07:25 +00:00
Sara Arjona
f97dd08bbc Merge branch 'MDL-73086-311' of git://github.com/paulholden/moodle into MOODLE_311_STABLE 2021-12-29 16:18:14 +01:00
Sara Arjona
4599bb5251 Merge branch 'MDL-73295-311' of https://github.com/paulholden/moodle into MOODLE_311_STABLE 2021-12-29 15:36:14 +01:00
Sara Arjona
6f35469598 Merge branch 'MDL-72716-311' of https://github.com/paulholden/moodle into MOODLE_311_STABLE 2021-12-29 15:01:46 +01:00
Paul Holden
180389d33f MDL-72716 blocks: fix external fetching of available blocks.
Pass `$PAGE->subpage` value in AJAX request, which is required on
some pages (e.g. user dashboard) for loading existing blocks.
2021-12-29 10:46:59 +00:00
Paul Holden
00b78393b3 MDL-73414 webservice: don't disable all WS when disabling mobile. 2021-12-29 10:36:57 +00:00
Paul Holden
7cf0235ef7 MDL-73086 user: account for mixed casing of profile field shortname.
Custom profile fields allow for shortnames containing mixed character
casing, which should also be supported within the user fields API
when retrieving said custom fields.

Given that the DML libs convert all selected columns to lowercased
equivalent, we need to do the same when requesting custom fields to
ensure calling code doesn't try to access `->profile_field_Foo`
property when the DB returns `->profile_field_foo` instead.
2021-12-29 10:21:37 +00:00
Paul Holden
af9f840e8d MDL-73295 webservice: only pass around sesskey for tokens as needed. 2021-12-29 09:59:49 +00:00
Sara Arjona
4e2cfa0fe0 Merge branch 'MDL-73402-311' of git://github.com/paulholden/moodle into MOODLE_311_STABLE 2021-12-29 10:08:04 +01:00
Sara Arjona
2d05bbbf4c Merge branch 'MDL-72375-completion-id-311' of https://github.com/Peterburnett/moodle into MOODLE_311_STABLE 2021-12-29 09:48:29 +01:00
Eloy Lafuente (stronk7)
43066fb582 Merge branch 'MDL-73420-311' of https://github.com/marinaglancy/moodle into MOODLE_311_STABLE 2021-12-29 09:05:36 +01:00
Sara Arjona
97e28f897e Merge branch 'MDL-73237-311' of https://github.com/paulholden/moodle into MOODLE_311_STABLE 2021-12-28 15:58:35 +01:00
Sara Arjona
84ea58618b Merge branch 'MDL-73207-cronspec-MOODLE_311_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_311_STABLE 2021-12-28 15:43:20 +01:00
Sara Arjona
79c65ea145 Merge branch 'MDL-73189-311' of https://github.com/nguyenphuctien/moodle into MOODLE_311_STABLE 2021-12-28 11:42:03 +01:00
AMOS bot
9697eb3054 Automatically generated installer lang files 2021-12-28 00:07:24 +00:00
Víctor Déniz
5488ffe860 Merge branch 'MDL-73269/3.11' of https://github.com/skodak/moodle into MOODLE_311_STABLE 2021-12-27 15:25:56 +00:00
AMOS bot
9c501dc357 Automatically generated installer lang files 2021-12-27 00:07:27 +00:00
AMOS bot
3e2c0af7ad Automatically generated installer lang files 2021-12-26 00:07:24 +00:00
Josh.Aston
0020e31d55 MDL-73418 Quiz: Continue the last attempt > Continue your attempt 2021-12-23 16:04:48 +00:00
Sara Arjona
f04d0ddc8f weekly release 3.11.4+ 2021-12-23 16:29:41 +01:00
Sara Arjona
ca8f1866fb Merge branch 'install_311_STABLE' of https://git.in.moodle.com/amosbot/moodle-install into MOODLE_311_STABLE 2021-12-23 16:29:38 +01:00
Jun Pataleta
4b39124bf8 Merge branch 'MDL-72701-311' of https://github.com/andrewnicols/moodle into MOODLE_311_STABLE 2021-12-23 12:10:53 +08:00
Andrew Nicols
f6f9359c13 MDL-73255 user: Ensure that invalid filters are not left
When there is no group but a default groupmode is set, the group
configuration is provided but the group data is not present. This
resulted in a JS error and an invalid filter line was left in place.

This change conditionally checks the data-filter-type-class value of the
filterDataNode so that no JS error is produced if the filterDataNode
does not exist and therefore removes the empty filter row.
2021-12-23 11:02:10 +08:00
AMOS bot
529150a7d8 Automatically generated installer lang files 2021-12-23 00:07:26 +00:00
Petr Skoda
56f79b2da5 MDL-73269 dev: add requirements to composer.json 2021-12-23 07:21:47 +13:00
Sara Arjona
9394ec0f27 Merge branch 'MDL-73405_311' of https://github.com/stronk7/moodle into MOODLE_311_STABLE 2021-12-22 17:20:49 +01:00
Sara Arjona
c6f4cac946 Merge branch 'MDL-73380-311' of git://github.com/paulholden/moodle into MOODLE_311_STABLE 2021-12-22 16:59:13 +01:00
Sara Arjona
21a59229a9 Merge branch 'MDL-73256-311' of git://github.com/paulholden/moodle into MOODLE_311_STABLE 2021-12-22 16:39:49 +01:00
Sara Arjona
36765f08a9 Merge branch 'MDL-69023-M311_mod-lti-conflicts-with-text-alignment-in-chat-messages' of https://github.com/ziegenberg/moodle into MOODLE_311_STABLE 2021-12-22 16:28:05 +01:00
Jun Pataleta
acb63ae043 Merge branch 'MDL-73046-311' of https://github.com/junpataleta/moodle into MOODLE_311_STABLE 2021-12-22 18:50:54 +08:00
Frederik Milling Pytlick
343d3f42d4 MDL-73046 media_html5video: Fixed .mov files
.mov files will now have the mimetype 'video/mp4' instead of 'video/quicktime'. (Only if the user's browser is chromium-based)
2021-12-22 18:45:48 +08:00
Shamim Rezaie
51ebf938b7 Merge branch 'MDL-73348_311' of https://github.com/stronk7/moodle into MOODLE_311_STABLE 2021-12-22 21:20:15 +11:00
AMOS bot
7295679d8f Automatically generated installer lang files 2021-12-22 00:07:29 +00:00
Andrew Nicols
f58768ee9e MDL-72701 unit tests: Fix broken @covers annotations 2021-12-21 09:24:06 +08:00
Matthew Hilton
90d21c6351 MDL-71949 backup: Fix userid and add backup ID to logging 2021-12-21 11:18:31 +10:00
AMOS bot
c8da07ae5f Automatically generated installer lang files 2021-12-21 00:07:26 +00:00
Paul Holden
b8d2dfc18d MDL-73425 phpunit: document expected class and filename layout. 2021-12-20 18:55:32 +00:00
Marina Glancy
363cf89cee MDL-73420 core: make static cache compatible with PHP8.1 2021-12-20 17:07:23 +01:00
Shamim Rezaie
fe8e792113 Merge branch 'MDL-73175-311' of https://github.com/NoelDeMartin/moodle into MOODLE_311_STABLE 2021-12-20 11:00:21 +11:00
Eloy Lafuente (stronk7)
e14c046a17 MDL-73405 libraries: php80 compatibility fix to Horde Imap Client
The fix is already available upstream for versions 2.30.4 and up
See https://github.com/horde/Imap_Client/pull/13
2021-12-19 12:26:53 +01:00
Eloy Lafuente (stronk7)
d02364e83b MDL-73405 phpunit: dataset fixes
This was detected when working in the renaming of test names:
- Fix file name, it was incorrectly named .test.php, now _test.php.
- Add namespace and rename testcase name to match file name.
- Fix php80 deprecation message about optional and required params
  order.
2021-12-19 12:26:53 +01:00
AMOS bot
ebc715ceb2 Automatically generated installer lang files 2021-12-19 00:07:25 +00:00
Eloy Lafuente (stronk7)
eac985d755 MDL-73348 phpunit: normalize all privacy provider tests
As far as now all them have correct privacy level2 namespace:
- Move them to "privacy" subdir.
- Rename the files to "provider_test.php", this includes old
  privacy_test.php and privacy_provider_test.php files
- Rename the testcase to provider_test too (to match file name)

Also, change some relative paths and comments to point to new
locations.
2021-12-17 14:21:09 +01:00
Eloy Lafuente (stronk7)
d6e00bc466 MDL-73348 phpunit: privacy and privacy_provider testcase names
All privacy_test and privacy_provider_test classes:

- Namespaced with component\privacy.
- Fixed incorrect use statements with leading backslash.
- Changed code to point to global scope when needed.
- Renamed a few files to make all be privacy_test or privacy_provider_test.php
- All them passing individually.
- Complete runs passing too.
2021-12-17 14:21:09 +01:00
Paul Holden
a8a8555b4f MDL-73402 block_admin_bookmarks: slightly relax section cleaning.
Allow '/' character in external page names.
2021-12-17 11:59:21 +00:00