Jun Pataleta [Sat, 7 May 2022 11:34:45 +0000 (19:34 +0800)]
Moodle release 3.10.11
Eloy Lafuente (stronk7) [Fri, 6 May 2022 13:58:40 +0000 (15:58 +0200)]
weekly release 3.10.10+
Jake Dallimore [Tue, 26 Apr 2022 08:52:20 +0000 (16:52 +0800)]
MDL-73736 core_auth: Fix concurrency issue in login_attempt_failed()
This patch wraps the login_failed_count logic in a resource lock and
forces a user preferences cache reload. Each thread must wait for the
lock and must fetch the current count before incrementing it. This
ensures that login_failed_count is correct across threads and that the
lockout threshold is correctly honoured.
Co-Authored-By: Sujith Haridasan <sujith@moodle.com>
Michael Hawkins [Thu, 31 Mar 2022 10:17:31 +0000 (18:17 +0800)]
MDL-74333 badges: Check profile criteria valid when reviewing
Ferran Recio [Thu, 21 Apr 2022 11:43:34 +0000 (13:43 +0200)]
MDL-71623 core_search: fix user document visibility
Paul Holden [Fri, 29 Apr 2022 15:09:35 +0000 (16:09 +0100)]
MDL-74612 cohort: use data generator for populating cohort members.
AMOS bot [Sat, 23 Apr 2022 00:07:30 +0000 (00:07 +0000)]
Automatically generated installer lang files
AMOS bot [Tue, 12 Apr 2022 00:07:31 +0000 (00:07 +0000)]
Automatically generated installer lang files
Amaia Anabitarte [Thu, 24 Mar 2022 16:40:10 +0000 (17:40 +0100)]
MDL-74318 core_user: Description field as hidden on profile
Paul Holden [Tue, 15 Mar 2022 00:10:25 +0000 (00:10 +0000)]
MDL-74204 mod_assign: escape identity fields in allocate marker form.
Ilya Tregubov [Fri, 8 Apr 2022 10:39:55 +0000 (16:39 +0600)]
weekly release 3.10.10+
AMOS bot [Thu, 7 Apr 2022 00:07:28 +0000 (00:07 +0000)]
Automatically generated installer lang files
Mihail Geshoski [Mon, 21 Mar 2022 15:07:19 +0000 (23:07 +0800)]
MDL-74189 tool_moodlenet: Add upgrade step to remove irrelevant data
Upgrade step to identify all existing cases where users have linked
their MoodleNet profile on the site and remove the related data from
the database. Due to some recent changes on the MoodleNet platform,
this data is now irrelevant and can no longer be used to authenticate
on the MoodleNet platform.
Mihail Geshoski [Mon, 21 Mar 2022 14:49:01 +0000 (22:49 +0800)]
MDL-74189 tool_moodlenet: Update language strings
Updates the existing language strings in order to provide more accurate
instructions on how users can link existing their MoodleNet profile on
the site.
AMOS bot [Wed, 6 Apr 2022 00:07:26 +0000 (00:07 +0000)]
Automatically generated installer lang files
Sara Arjona [Tue, 5 Apr 2022 11:24:51 +0000 (13:24 +0200)]
weekly release 3.10.10+
Ilya Tregubov [Mon, 4 Apr 2022 03:17:49 +0000 (09:17 +0600)]
MDL-74096 mlbackend_python: Update mlbackend version.
AMOS bot [Mon, 4 Apr 2022 00:07:25 +0000 (00:07 +0000)]
Automatically generated installer lang files
Eloy Lafuente (stronk7) [Wed, 30 Mar 2022 17:12:13 +0000 (19:12 +0200)]
MDL-70014 tool_customlang: Workaround to make behat happier
This is a BEHAT_RUNNING only hack, so it doesn't affect normal
operations at all. What it achieves is to reduce the number of
strings loaded when customising a lang pack from current 31K ones
to the just needed ones for Behat testing purposes.
That way we avoid the random failures that are happening more and
more (while the "en" lang pack grows) and also save some precious
minutes in every behat run.
Also, unrelated, a couple of tiny changes:
- Modified constant (that was really outdated) to current number
of lang strings (so the progress bar behaves better).
- Remove an elseif occurrence because it was hurting my eyes.
Sara Arjona [Fri, 1 Apr 2022 14:40:50 +0000 (16:40 +0200)]
weekly release 3.10.10+
Eloy Lafuente (stronk7) [Thu, 31 Mar 2022 08:21:13 +0000 (10:21 +0200)]
MDL-72446 behat: Ensure that the day reset happens on enabled element
Before this change we were setting the month day to 1 unconditionally
and that was working ok for enabled by default elements.
But in a number or cases we were doing that against disabled elements
so the day reset was not happening. Now we wait for the element to
be enabled and only then proceed with the day reset.
Backed with tests using disabled form elements, so we have now
both enabled and disabled fields covered.
AMOS bot [Thu, 31 Mar 2022 00:07:28 +0000 (00:07 +0000)]
Automatically generated installer lang files
AMOS bot [Sat, 26 Mar 2022 00:07:24 +0000 (00:07 +0000)]
Automatically generated installer lang files
Víctor Déniz [Fri, 25 Mar 2022 15:00:31 +0000 (15:00 +0000)]
weekly release 3.10.10+
AMOS bot [Wed, 23 Mar 2022 00:07:22 +0000 (00:07 +0000)]
Automatically generated installer lang files
Sara Arjona [Tue, 22 Mar 2022 16:05:22 +0000 (17:05 +0100)]
MDL-74184 behat: Unrelated, remove the @skip_interim tag
This commit is UNRELATED to the MDL-74184, but we need the
@skip_interim tag removed to a couple of scenarios that were
causing lots of noise and failures @ci infrastructure.
MDL-74265 was created to deal with this issue but these jobs
are now passing, and nothing has been changed...
So we are using MDL-74184 (this extra commit) to remove that
tag (sorry for the noise).
AMOS bot [Tue, 22 Mar 2022 00:07:25 +0000 (00:07 +0000)]
Automatically generated installer lang files
Sara Arjona [Fri, 18 Mar 2022 15:28:20 +0000 (16:28 +0100)]
weekly release 3.10.10+
Sara Arjona [Fri, 18 Mar 2022 12:27:04 +0000 (13:27 +0100)]
MDL-74116 behat: Unrelated, add the @skip_interim tag
This commit is UNRELATED to the MDL-74116, but we need the
@skip_interim tag added to a couple of scenarios that are
causing lots of noise and failures @CI infrastructure.
MDL-74265 has been created to deal with this issue.
So we are using MDL-74116 (this extra commit) to add that tag
(sorry for the noise).
Andrew Nicols [Tue, 8 Mar 2022 05:56:45 +0000 (13:56 +0800)]
MDL-74116 behat: Fix browser instantiation for Selenium 4
Jun Pataleta [Sat, 12 Mar 2022 04:39:19 +0000 (12:39 +0800)]
Moodle release 3.10.10
AMOS bot [Sat, 12 Mar 2022 00:07:25 +0000 (00:07 +0000)]
Automatically generated installer lang files
Ilya Tregubov [Fri, 11 Mar 2022 10:19:52 +0000 (16:19 +0600)]
weekly release 3.10.9+
Tim Hunt [Tue, 8 Mar 2022 17:03:57 +0000 (17:03 +0000)]
MDL-74130 question behat: Update tests to use the new navigation steps
Tim Hunt [Tue, 8 Mar 2022 16:08:41 +0000 (16:08 +0000)]
MDL-74130 question behat: support I am on ... page or key qbank pages
Amaia Anabitarte [Mon, 7 Mar 2022 12:57:00 +0000 (13:57 +0100)]
MDL-74075 core_badges: Check accepted criterias
Michael Hawkins [Tue, 8 Mar 2022 04:11:23 +0000 (12:11 +0800)]
MDL-74074 badges: Ensure profile criteria exists before completion check
Paul Holden [Thu, 13 Jan 2022 23:00:57 +0000 (23:00 +0000)]
MDL-72972 tool_uploaduser: observe capability to delete users.
cescobedo [Fri, 11 Feb 2022 11:42:10 +0000 (12:42 +0100)]
MDL-71722 h5plib_v124: Add required changes after lib upgrade
cescobedo [Fri, 11 Feb 2022 11:40:46 +0000 (12:40 +0100)]
MDL-71722 h5plib_v124: Upgrade ckeditor to 4.17.1
Ilya Tregubov [Mon, 10 Jan 2022 12:39:46 +0000 (14:39 +0200)]
MDL-71703 lib: update phpmailer to 6.5.3
Eloy Lafuente (stronk7) [Tue, 8 Mar 2022 09:02:01 +0000 (10:02 +0100)]
weekly release 3.10.9+
Juan Leyva [Tue, 1 Mar 2022 11:16:53 +0000 (12:16 +0100)]
MDL-74042 vimeo: Support security hash for restricted videos
AMOS bot [Tue, 1 Mar 2022 00:07:31 +0000 (00:07 +0000)]
Automatically generated installer lang files
AMOS bot [Sat, 26 Feb 2022 00:07:31 +0000 (00:07 +0000)]
Automatically generated installer lang files
Ilya Tregubov [Fri, 25 Feb 2022 17:23:43 +0000 (19:23 +0200)]
weekly release 3.10.9+
AMOS bot [Thu, 24 Feb 2022 00:07:31 +0000 (00:07 +0000)]
Automatically generated installer lang files
Andrew Nicols [Wed, 16 Feb 2022 03:26:29 +0000 (11:26 +0800)]
MDL-73899 behat: Fix coding style issues to change third-party status
This commit removes the moodle-behat-extension from the list of
third-party libraries.
In order to do this properly, all pending coding-style issues are fixed.
In addition the following niceties have also been included:
* convert long form array() syntax to short form
* alphabetically sort class imports (use)
* remove unused class imports
* correct documentation
* Normalise whitespace in concat operators
* Remove unnecessary file docblocks
Sara Arjona [Tue, 22 Feb 2022 10:12:54 +0000 (11:12 +0100)]
weekly release 3.10.9+
Andrew Nicols [Fri, 18 Feb 2022 00:57:51 +0000 (08:57 +0800)]
MDL-73915 js: Switch amd minification to terser
Unfortunately the babel minify-mangle plugin seems to be abandoned and
in certain circumstances can be very buggy. The only safe options are to
disable it, or to switch to a different minification library.
Not minifying our javascript is not ideal, so this commit updates the
javascript tasks to use a rollup, combined with babel, and terser.
Babel still converts code from ES/UMD/AMD to AMD modules with the
relevant browser support, whilst terser minifies the code.
The rollup bundler handles tracking and creation of sourcemaps, and
supports better parallelisation of the tasks.
Since the upgrade to Node LTS/Gallium requires an upgrade to @babel/core
and eslint, which change the built files anyway, this seems like the
ideal time to make this change.
Andrew Nicols [Fri, 18 Feb 2022 00:52:45 +0000 (08:52 +0800)]
MDL-73915 js: Upgrade babel and eslint
AMOS bot [Mon, 21 Feb 2022 00:07:31 +0000 (00:07 +0000)]
Automatically generated installer lang files
Sara Arjona [Fri, 18 Feb 2022 14:03:43 +0000 (15:03 +0100)]
weekly release 3.10.9+
Andrew Nicols [Fri, 18 Feb 2022 00:29:59 +0000 (08:29 +0800)]
MDL-73915 js: Upgrade packages
Andrew Nicols [Fri, 18 Feb 2022 00:07:49 +0000 (08:07 +0800)]
MDL-73915 js: Switch to nodejs lts/gallium
Andrew Nicols [Thu, 17 Feb 2022 11:32:34 +0000 (19:32 +0800)]
MDL-73915 js: Upgrade node-sass
AMOS bot [Thu, 17 Feb 2022 00:07:28 +0000 (00:07 +0000)]
Automatically generated installer lang files
Andrew Nicols [Tue, 15 Feb 2022 06:56:59 +0000 (14:56 +0800)]
MDL-73883 behat: Display actual step during testing
Because of the way in which we check for exceptions, we always show the
following string during behat pretty output:
behat_hooks::i_look_for_exceptions()
We can easily modify this to only show this value when the
i_look_for_exceptions() test itself fails, but otherwise to show the
actual step that is run.
AMOS bot [Thu, 10 Feb 2022 00:07:46 +0000 (00:07 +0000)]
Automatically generated installer lang files
AMOS bot [Wed, 9 Feb 2022 00:07:31 +0000 (00:07 +0000)]
Automatically generated installer lang files
Eloy Lafuente (stronk7) [Mon, 7 Feb 2022 14:48:42 +0000 (15:48 +0100)]
MDL-72762 backup: Accept empty and whitespace-only UI labels.
This was causing problems when sections or activity names where
set to be empty or whitespace-only, with the PARAM_CLEANHTML
leading to exception.
Now they are supported and handled like (0xc2a0) to
allow the process to continue.
Added a few extra tests to confirm the behaviour.
Sara Arjona [Fri, 4 Feb 2022 17:18:32 +0000 (18:18 +0100)]
weekly release 3.10.9+
Eloy Lafuente (stronk7) [Sat, 29 Jan 2022 15:16:12 +0000 (16:16 +0100)]
MDL-73711 behat: Bump to Behat 3.10.x
Generated with php72, following the instructions at:
https://docs.moodle.org/dev/Composer
Note this also comes with a minor PHPUnit bump to 8.5.23.
AMOS bot [Sat, 29 Jan 2022 00:07:26 +0000 (00:07 +0000)]
Automatically generated installer lang files
Ilya Tregubov [Fri, 28 Jan 2022 18:17:01 +0000 (20:17 +0200)]
weekly release 3.10.9+
Eloy Lafuente (stronk7) [Thu, 27 Jan 2022 15:12:53 +0000 (16:12 +0100)]
MDL-73588 phpunit: Fix assertion to PHPUnit 8.5 one
This issue was backported from 311_STABLE that uses
PHPUnit 9.5, were the regexp assertion was renamed.
This just moves it back to the 8.5 one for 39 and 310 stables.
Frode Petterson [Sun, 16 Jan 2022 22:28:25 +0000 (23:28 +0100)]
MDL-73588 curl: Fix expected CURLOPT_FILE behavior
After
cbf9dfb the CURLOPT_FILE no longer behaves as expected. All
redirect responses are appended to the same stream resource. This fix
reverts back to the old behavior by setting the stream pointer back to
the beginning for each subsequent redirect.
AMOS bot [Wed, 26 Jan 2022 00:07:33 +0000 (00:07 +0000)]
Automatically generated installer lang files
Sara Arjona [Fri, 21 Jan 2022 14:00:52 +0000 (15:00 +0100)]
weekly release 3.10.9+
AMOS bot [Fri, 21 Jan 2022 00:07:36 +0000 (00:07 +0000)]
Automatically generated installer lang files
AMOS bot [Wed, 19 Jan 2022 00:07:32 +0000 (00:07 +0000)]
Automatically generated installer lang files
Eloy Lafuente (stronk7) [Sat, 15 Jan 2022 11:14:14 +0000 (12:14 +0100)]
Moodle release 3.10.9
Sara Arjona [Fri, 14 Jan 2022 10:14:06 +0000 (11:14 +0100)]
weekly release 3.10.8+
Paul Holden [Wed, 12 Jan 2022 11:07:34 +0000 (11:07 +0000)]
MDL-72772 gradereport_overview: account for users with parent roles.
Paul Holden [Thu, 25 Nov 2021 21:32:20 +0000 (21:32 +0000)]
MDL-72772 gradereport_overview: access checks for viewing grades.
AMOS bot [Wed, 12 Jan 2022 00:07:34 +0000 (00:07 +0000)]
Automatically generated installer lang files
Paul Holden [Wed, 10 Nov 2021 10:32:31 +0000 (10:32 +0000)]
MDL-72367 badges: require sesskey to remove badge alignment.
Dongsheng Cai [Mon, 25 Oct 2021 18:37:39 +0000 (05:37 +1100)]
MDL-71239 calendar: disallow manager role users edit user events
Jun Pataleta [Tue, 11 Jan 2022 13:29:59 +0000 (21:29 +0800)]
weekly release 3.10.8+
Adam Pawełczak [Tue, 20 Jul 2021 13:51:58 +0000 (15:51 +0200)]
MDL-69061 core: Fix admin path replacement with path to $CFG->admin
AMOS bot [Tue, 11 Jan 2022 00:07:28 +0000 (00:07 +0000)]
Automatically generated installer lang files
AMOS bot [Sat, 8 Jan 2022 00:07:25 +0000 (00:07 +0000)]
Automatically generated installer lang files
AMOS bot [Fri, 7 Jan 2022 00:07:33 +0000 (00:07 +0000)]
Automatically generated installer lang files
Ilya Tregubov [Thu, 6 Jan 2022 18:50:52 +0000 (20:50 +0200)]
weekly release 3.10.8+
Paul Holden [Wed, 1 Dec 2021 12:54:32 +0000 (12:54 +0000)]
MDL-69700 tests: clarify expected exceptions in unit tests.
Resolves some leftovers from MDL-67673, see
d95c3787.
Petr Skoda [Tue, 7 Dec 2021 01:10:29 +0000 (14:10 +1300)]
MDL-73272 behat: move behat extension to core
Sara Arjona [Thu, 30 Dec 2021 10:24:14 +0000 (11:24 +0100)]
weekly release 3.10.8+
AMOS bot [Thu, 30 Dec 2021 00:07:22 +0000 (00:07 +0000)]
Automatically generated installer lang files
AMOS bot [Tue, 28 Dec 2021 00:07:21 +0000 (00:07 +0000)]
Automatically generated installer lang files
AMOS bot [Mon, 27 Dec 2021 00:07:24 +0000 (00:07 +0000)]
Automatically generated installer lang files
AMOS bot [Sun, 26 Dec 2021 00:07:21 +0000 (00:07 +0000)]
Automatically generated installer lang files
Sara Arjona [Thu, 23 Dec 2021 15:29:44 +0000 (16:29 +0100)]
weekly release 3.10.8+
AMOS bot [Thu, 23 Dec 2021 00:07:23 +0000 (00:07 +0000)]
Automatically generated installer lang files
Petr Skoda [Tue, 7 Dec 2021 00:35:09 +0000 (13:35 +1300)]
MDL-73269 dev: add requirements to composer.json
Angelia Dela Cruz [Mon, 20 Sep 2021 02:12:08 +0000 (10:12 +0800)]
MDL-73021 behat: Use assign generators
Replace steps that manually add assignment instances via the UI
and use Behat generators. This improves the speed of Behat test
runs.
AMOS bot [Wed, 22 Dec 2021 00:07:26 +0000 (00:07 +0000)]
Automatically generated installer lang files
Andrew Nicols [Wed, 15 Sep 2021 13:15:08 +0000 (21:15 +0800)]
MDL-72701 unit tests: Fix broken @covers annotations
AMOS bot [Tue, 21 Dec 2021 00:07:23 +0000 (00:07 +0000)]
Automatically generated installer lang files
Eloy Lafuente (stronk7) [Sun, 19 Dec 2021 10:41:52 +0000 (11:41 +0100)]
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.
AMOS bot [Sun, 19 Dec 2021 00:07:22 +0000 (00:07 +0000)]
Automatically generated installer lang files