Jun Pataleta [Thu, 2 Mar 2023 04:57:28 +0000 (12:57 +0800)]
MDL-75012 core: Fix upgrade.txt conflicts
Jun Pataleta [Thu, 2 Mar 2023 04:34:34 +0000 (12:34 +0800)]
Merge branch 'MDL-75012-master-5' of https://github.com/andrewnicols/moodle
Andrew Nicols [Thu, 2 Mar 2023 04:06:27 +0000 (12:06 +0800)]
Merge branch 'MDL-77386-master' of https://github.com/ferranrecio/moodle
Andrew Nicols [Thu, 2 Mar 2023 04:05:07 +0000 (12:05 +0800)]
Merge branch 'MDL-76825-master' of https://github.com/meirzamoodle/moodle
Jun Pataleta [Thu, 2 Mar 2023 04:02:44 +0000 (12:02 +0800)]
Merge branch 'MDL-75719-master-4' of https://github.com/ilyatregubov/moodle
Andrew Nicols [Tue, 28 Feb 2023 03:01:10 +0000 (11:01 +0800)]
MDL-75012 js: Full build of all grunt things
Andrew Nicols [Tue, 28 Feb 2023 02:17:15 +0000 (10:17 +0800)]
MDL-75012 js: Bump Babel dependencies
Please note that whilst some dependencies have higher versions
available, these are not compatible at this time.
Andrew Nicols [Tue, 28 Feb 2023 02:24:04 +0000 (10:24 +0800)]
MDL-75012 js: Remove unused babel-preset-minify dependency
Andrew Nicols [Fri, 24 Feb 2023 01:22:14 +0000 (09:22 +0800)]
MDL-75012 js: Drop support for modules built pre-babel
We now include more polyfills than we have ever done, and some of these
cause false-positives on our code to address modules which do not have a
name.
We started adding module names to modules in Moodle 3.8 at _build_ time
and kept support for modules which were not transpiled using Babel
before that point.
We no longer need to support this as all pre-3.8 Moodle versions are
long out of support. The most recent to go out of support was Moodle
3.5, which went completely out of support in May 2021.
We should not support code written and minified without a transpilation
phase from this time any longer.
Andrew Nicols [Thu, 2 Mar 2023 03:49:38 +0000 (11:49 +0800)]
MDL-77141 gradereport_user: Adjust course name to fix test
Andrew Nicols [Thu, 2 Mar 2023 03:49:00 +0000 (11:49 +0800)]
Merge branch 'MDL-77141-master' of https://github.com/lucaboesch/moodle
Jake Dallimore [Thu, 2 Mar 2023 03:42:23 +0000 (11:42 +0800)]
Merge branch 'MDL-77461-master' of https://github.com/andrewnicols/moodle
Jake Dallimore [Thu, 2 Mar 2023 03:27:04 +0000 (11:27 +0800)]
Merge branch 'MDL-77400-master' of https://github.com/dpalou/moodle
Andrew Nicols [Thu, 2 Mar 2023 03:18:34 +0000 (11:18 +0800)]
Merge branch 'MDL-77368' of https://github.com/paulholden/moodle
Andrew Nicols [Thu, 2 Mar 2023 03:16:57 +0000 (11:16 +0800)]
Merge branch 'MDL-61458' of https://github.com/paulholden/moodle
Andrew Nicols [Thu, 2 Mar 2023 03:05:54 +0000 (11:05 +0800)]
MDL-77461 behat: Use get_course_id instead of DB fetch
Ilya Tregubov [Fri, 20 Jan 2023 06:41:04 +0000 (14:41 +0800)]
MDL-75719 completion: Add Behat scenario for completion states.
Ilya Tregubov [Tue, 17 Jan 2023 01:53:30 +0000 (09:53 +0800)]
MDL-75719 completion: Fix unit tests and Behat tests.
Fix tests since we changed behavior of completions (completion
state an UI).
Ilya Tregubov [Tue, 17 Jan 2023 01:59:56 +0000 (09:59 +0800)]
MDL-75719 completion: Fix viewed criteria.
When we unlock completion criteria and save changes 'viewed' criteria
still should be completed if user has viewed activity before. Seems
that that was broken by recent changes. Fixing here.
Ilya Tregubov [Tue, 17 Jan 2023 01:37:14 +0000 (09:37 +0800)]
MDL-75719 completion: Fix completion state for hidden grade items.
For hidden grade items we used to mark students as completed if
they have any grade. But this was not working correctly when we
also set pass grade for activity and completion criteria based
on pass grade. So we will have these completion states
Competion criteria 'Receive grade':
No grade - COMPLETION_INCOMPLETE
Grade visible, achieved passing grade - COMPLETION_COMPLETE_PASS
Grade visible, failed passing grade - COMPLETION_COMPLETE_FAIL
Grade hidden - COMPLETION_COMPLETE
Completion criteris 'Receive passing grade'
No grade - COMPLETION_INCOMPLETE
Grade visible, achieved passing grade - COMPLETION_COMPLETE_PASS
Grade visible, failed passing grade - COMPLETION_COMPLETE_FAIL
Grade hidden, achieved passing grade - COMPLETION_COMPLETE_PASS
Grade hidden, failed passing grade - COMPLETION_COMPLETE_FAIL_HIDDEN
Jake Dallimore [Thu, 2 Mar 2023 02:55:45 +0000 (10:55 +0800)]
Merge branch 'MDL-77318-master' of https://github.com/Utdanningsdirektoratet/moodle
Andrew Nicols [Thu, 2 Mar 2023 02:46:49 +0000 (10:46 +0800)]
Merge branch 'MDL-77150' of https://github.com/roland04/moodle
Andrew Nicols [Thu, 2 Mar 2023 02:38:15 +0000 (10:38 +0800)]
Merge branch 'MDL-75534-master-forum-usermodified-zero' of https://github.com/mudrd8mz/moodle
Jake Dallimore [Thu, 2 Mar 2023 02:12:43 +0000 (10:12 +0800)]
Merge branch 'MDL-76298' of https://github.com/timhunt/moodle
Jun Pataleta [Thu, 2 Mar 2023 01:46:02 +0000 (09:46 +0800)]
Merge branch 'MDL-77413-master' of https://github.com/andelacruz/moodle
Andrew Nicols [Thu, 2 Mar 2023 01:26:13 +0000 (09:26 +0800)]
Merge branch 'MDL-77391' of https://github.com/jrchamp/moodle
Andrew Nicols [Thu, 2 Mar 2023 01:24:44 +0000 (09:24 +0800)]
Merge branch 'MDL-77321' of https://github.com/paulholden/moodle
Andrew Nicols [Thu, 2 Mar 2023 01:23:49 +0000 (09:23 +0800)]
Merge branch 'MDL-77412' of https://github.com/sumaiyamannan/moodle
Andrew Nicols [Thu, 2 Mar 2023 01:23:05 +0000 (09:23 +0800)]
Merge branch 'MDL-40600-master-duplicate_section' of https://github.com/alexmorrisnz/moodle
Andrew Nicols [Thu, 2 Mar 2023 01:19:14 +0000 (09:19 +0800)]
Merge branch 'MDL-77135-master' of https://github.com/aanabit/moodle
Andrew Nicols [Thu, 2 Mar 2023 01:14:06 +0000 (09:14 +0800)]
Merge branch 'MDL-75753-master' of https://github.com/call-learning/moodle
Andrew Nicols [Thu, 2 Mar 2023 01:13:09 +0000 (09:13 +0800)]
MDL-77277 theme_boost: Add reference to CL update
Andrew Nicols [Thu, 2 Mar 2023 01:11:22 +0000 (09:11 +0800)]
Merge branch 'MDL-77277-master' of https://github.com/skodak/moodle
Jun Pataleta [Thu, 2 Mar 2023 00:58:28 +0000 (08:58 +0800)]
Merge branch 'MDL-74586-master-sqlrss' of https://github.com/mudrd8mz/moodle
Jun Pataleta [Thu, 2 Mar 2023 00:42:15 +0000 (08:42 +0800)]
Merge branch 'MDL-76938_restore_comments' of https://github.com/davosmith/moodle
Jun Pataleta [Wed, 1 Mar 2023 15:59:40 +0000 (23:59 +0800)]
Merge branch 'MDL-77430' of https://github.com/stronk7/moodle
Jun Pataleta [Wed, 1 Mar 2023 15:54:34 +0000 (23:54 +0800)]
Merge branch 'MDL-77417' of https://github.com/stronk7/moodle
Petr Skoda [Wed, 1 Mar 2023 12:01:18 +0000 (13:01 +0100)]
MDL-77277 theme_boost: remove Bootstrap version reference
Jun Pataleta [Wed, 1 Mar 2023 09:08:07 +0000 (17:08 +0800)]
Merge branch 'MDL-77250-master' of https://github.com/lameze/moodle
Jake Dallimore [Wed, 1 Mar 2023 04:43:58 +0000 (12:43 +0800)]
Merge branch 'MDL-76897' of https://github.com/timhunt/moodle
Andrew Nicols [Wed, 1 Mar 2023 03:14:36 +0000 (11:14 +0800)]
Merge branch 'MDL-77299-master' of https://github.com/meirzamoodle/moodle
Meirza [Tue, 28 Feb 2023 02:47:16 +0000 (09:47 +0700)]
MDL-77299 mod_quiz: Added missing class properties.
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
Co-authored-by: Tim Hunt <t.j.Hunt@open.ac.uk>
Meirza [Wed, 8 Feb 2023 16:37:33 +0000 (23:37 +0700)]
MDL-77299 question: Added class properties that are not declared.
In PHP 8.2 and later, setting a value to an undeclared class property is
deprecated and emits a deprecation notice.
So we need to add missing class properties that still need to be declared.
Co-authored-by: Tim Hunt <t.j.Hunt@open.ac.uk>
Andrew Nicols [Wed, 1 Mar 2023 02:54:13 +0000 (10:54 +0800)]
Merge branch 'MDL-58945' of https://github.com/timhunt/moodle
Andrew Nicols [Wed, 1 Mar 2023 02:53:08 +0000 (10:53 +0800)]
Merge branch 'MDL-68776' of https://github.com/paulholden/moodle
Andrew Nicols [Wed, 1 Mar 2023 02:51:26 +0000 (10:51 +0800)]
Merge branch 'MDL-74585' of https://github.com/paulholden/moodle
Andrew Nicols [Wed, 1 Mar 2023 02:49:21 +0000 (10:49 +0800)]
Merge branch 'MDL-77322_basicauth_checkbox' of https://github.com/leonstr/moodle
Andrew Nicols [Wed, 1 Mar 2023 02:46:09 +0000 (10:46 +0800)]
Merge branch 'MDL-72727' of https://github.com/paulholden/moodle
Petr Skoda [Fri, 17 Feb 2023 12:05:17 +0000 (13:05 +0100)]
MDL-77277 tool_componentlibrary: import Bootstrap v4.6.2
Petr Skoda [Wed, 18 Jan 2023 15:21:30 +0000 (16:21 +0100)]
MDL-77277 theme_boost: import Bootstrap v4.6.2
Paul Holden [Thu, 2 Feb 2023 21:56:10 +0000 (21:56 +0000)]
MDL-61458 tool_lp: remove custom cohort autocomplete form selector.
The previous commit replaced the only remaining usage of it with the
equivalent core cohort form element. Prior to that,
21a0008f had done
the same.
Mikel Martín [Fri, 10 Feb 2023 14:18:12 +0000 (15:18 +0100)]
MDL-77150 reportbuilder: Fix report attributes classes are ignored
Fix report attributes with key 'class' being ingored when adding them to report classes.
Mikel Martín [Tue, 7 Feb 2023 13:51:36 +0000 (14:51 +0100)]
MDL-77150 core_table: Fix classes added as columnsattributes are ignored
Fix columnattributes with key 'class' being ingored by adding them to every 'column_class'.
Jonathan Champ [Thu, 23 Feb 2023 19:01:53 +0000 (14:01 -0500)]
MDL-77391 question admin: further improve query peformance in qtypes.php
Andrew Nicols [Tue, 28 Feb 2023 15:03:49 +0000 (23:03 +0800)]
Merge branch 'MDL-77425' of https://github.com/stronk7/moodle
Andrew Nicols [Tue, 28 Feb 2023 15:02:57 +0000 (23:02 +0800)]
Merge branch 'MDL-73018_bump-travis-and-gha-to-use-php81-instead-of-php80' of https://github.com/ziegenberg/moodle
David Mudrák [Mon, 27 Feb 2023 17:26:41 +0000 (18:26 +0100)]
MDL-74586 rss: Make rss_get_userid_from_token() use table index
Due to missing `AND k.script = 'rss'` condition, the query did not make
use of the existing script-value compound index defined for the table.
So it had to perform the full sequential scan for all rows when
searching for the token. This had serious performance issues on sites
with many users, especially in case on non-existing token / key.
Eloy Lafuente (stronk7) [Tue, 28 Feb 2023 10:34:21 +0000 (11:34 +0100)]
MDL-77430 plugininfo: php81 deprecation warnings on missing plugins
Whenever some plugin is missing from disk but installed, the plugins
page (and the upgrade) shows them as "missing from disk". Still, the
code tries to do things with their directory that, now, is null.
That was silently defaulting to '' in previous php versions, but
php81 emits a deprecated warning. So we have to check for them.
Jun Pataleta [Tue, 28 Feb 2023 10:26:12 +0000 (18:26 +0800)]
Merge branch 'MDL-76992-master' of https://github.com/aanabit/moodle
Daniel Ziegenberg [Sun, 22 May 2022 18:25:51 +0000 (20:25 +0200)]
MDL-73018 ci: Move highest PHP to 8.1 (from current 8.0)
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
Dani Palou [Tue, 28 Feb 2023 08:06:33 +0000 (09:06 +0100)]
MDL-77400 reportbuilder: Fix enrolment status return type
Amaia Anabitarte [Wed, 8 Feb 2023 21:28:41 +0000 (22:28 +0100)]
MDL-76992 core_courseindex: Apply indentation in the course index
Angelia Dela Cruz [Tue, 28 Feb 2023 09:12:48 +0000 (17:12 +0800)]
MDL-77413 Behat: Minor changes to optimise the existing tests
Angelia Dela Cruz [Mon, 27 Feb 2023 05:46:21 +0000 (13:46 +0800)]
MDL-77413 Behat: Add coverage to verify groups can have a picture
Jun Pataleta [Tue, 28 Feb 2023 07:46:54 +0000 (15:46 +0800)]
Merge branch 'MDL-77248-master' of https://github.com/andrewnicols/moodle
Andrew Nicols [Wed, 15 Feb 2023 14:08:20 +0000 (22:08 +0800)]
MDL-77248 mod_bigbluebuttonbn: Remove unused dpa pages
Andrew Nicols [Wed, 15 Feb 2023 04:05:02 +0000 (12:05 +0800)]
MDL-77248 mod_bigbluebuttonbn: Set dpa accepted when creating activities
This only applies when creating activities using the test data
generator.
Andrew Nicols [Mon, 13 Feb 2023 14:11:43 +0000 (22:11 +0800)]
MDL-77248 core: Move pre_enable_plugin_actions callback to enable_plugin
Note: The original callback was incorrectly using the $PAGE output,
which cannot be relied upon in this callback. The best we can do here is
to add a notification to explain the situation.
Andrew Nicols [Mon, 13 Feb 2023 05:31:33 +0000 (13:31 +0800)]
MDL-77248 core_admin: Tidy up coding style of admin/modules
Andrew Nicols [Wed, 22 Feb 2023 07:17:36 +0000 (15:17 +0800)]
MDL-75012 js: Put shifter on a diet
This commit switches to a new custom version of Shifter which sees it
put on a massive diet.
Many of the standard Shifter features are totally unused by Moodle, but
they add dependency spaghetti. Some of those dependencies will start to
cause us issues as they have not been updated for a very long time, are
no longer maintained, and are no longer compatible with anything
resembling a recent version of NodeJS.
Andrew Nicols [Tue, 7 Feb 2023 04:12:23 +0000 (12:12 +0800)]
MDL-75012 js: Bump shifter to new version
This resolves an issue identified in 77083 which identified that GitHub
hashes shouldn't be treated as repeatable.
Whilst GitHub have reverted this change, it's still worth making this
change.
Andrew Nicols [Fri, 3 Feb 2023 14:48:04 +0000 (22:48 +0800)]
MDL-75012 js: Use our own jsdoc wrapper
grunt-jsdoc is abandoned and only works with an older version of jsdoc.
This is a very simple wrapper around jsdoc itself.
Andrew Nicols [Fri, 3 Feb 2023 13:36:41 +0000 (21:36 +0800)]
MDL-75012 js: Audit fix
Andrew Nicols [Fri, 3 Feb 2023 13:28:41 +0000 (21:28 +0800)]
MDL-75012 js: Bump node-sass
Andrew Nicols [Fri, 3 Feb 2023 05:47:50 +0000 (13:47 +0800)]
MDL-75012 js: Update browserslist
To avoid build changes we exclude older versions of Android browser
Andrew Nicols [Fri, 3 Feb 2023 03:24:18 +0000 (11:24 +0800)]
MDL-75012 js: Bump stylelint and components
Andrew Nicols [Fri, 3 Feb 2023 02:54:57 +0000 (10:54 +0800)]
MDL-75012 js: Remove grunt-contrib-uglify
We stopped using this when we updated our processes to support ESMs in
MDL-62497. Removal of the dependency was missed at the time.
Andrew Nicols [Fri, 3 Feb 2023 02:18:57 +0000 (10:18 +0800)]
MDL-75012 js: Bump standard dependencies
This change bumps dependencies which have no impact upon the build
process
Andrew Nicols [Fri, 4 Nov 2022 04:35:37 +0000 (12:35 +0800)]
MDL-75012 core: Bump NodeJS version requirements
Jun Pataleta [Tue, 28 Feb 2023 02:07:01 +0000 (10:07 +0800)]
Merge branch 'MDL-76956-master' of https://github.com/sammarshallou/moodle
Jun Pataleta [Tue, 28 Feb 2023 02:05:04 +0000 (10:05 +0800)]
Merge branch 'MDL-77276-master' of https://github.com/sarjona/moodle
Jun Pataleta [Tue, 28 Feb 2023 01:45:32 +0000 (09:45 +0800)]
Merge branch 'MDL-76990-master' of https://github.com/aanabit/moodle
Paul Holden [Mon, 27 Feb 2023 17:21:46 +0000 (17:21 +0000)]
MDL-72727 mod_forum: prevent default favourite toggle click event.
Allow the repository call to the web service method to complete before
re-directing, otherwise the call may not complete and/or races against
the page reload causing random Behat errors.
Sumaiya Javed [Mon, 27 Feb 2023 21:39:00 +0000 (10:39 +1300)]
MDL-77412 reportbuilder: Make groupconcat aggregation method sortable.
Paul Holden [Mon, 27 Feb 2023 21:09:39 +0000 (21:09 +0000)]
MDL-77321 reportbuilder: cache list of loaded reports per user.
Since
0188af39 we've cached loaded reports, however there was an
edge case in those report sources that relied on the current user
as part of their own initialization (e.g. checking capabilities).
Co-authored-by: Marina Glancy <marina@moodle.com>
Tim Hunt [Mon, 27 Feb 2023 17:44:33 +0000 (17:44 +0000)]
MDL-76897 quiz: fix incorrect StdClass
Tim Hunt [Fri, 24 Feb 2023 15:16:23 +0000 (15:16 +0000)]
MDL-76897 quiz: deprecate unused quiz_calculate_best_attempt
Tim Hunt [Fri, 24 Feb 2023 14:27:25 +0000 (14:27 +0000)]
MDL-76897 quiz: quiz_save_best_grade -> recompute_final_grade
also, the associated quiz_calculate_best_grade (only used here)
moved to a protected method.
Tim Hunt [Fri, 24 Feb 2023 13:43:48 +0000 (13:43 +0000)]
MDL-76897 quiz: quiz_set_grade -> update_quiz_maximum_grade
Tim Hunt [Wed, 8 Feb 2023 21:49:11 +0000 (21:49 +0000)]
MDL-76897 quiz: quiz_update_all_final_grades -> grade_calculator
Tim Hunt [Wed, 8 Feb 2023 18:08:47 +0000 (18:08 +0000)]
MDL-76897 quiz: quiz_update_all_attempt_sumgrades -> grade_calculator
Tim Hunt [Mon, 27 Feb 2023 17:43:32 +0000 (17:43 +0000)]
MDL-76897 quiz: get the context more efficiently where possible
Tim Hunt [Wed, 8 Feb 2023 17:41:39 +0000 (17:41 +0000)]
MDL-76897 quiz: streamline initalisation of $quiz, $cm, $course
Amaia Anabitarte [Wed, 8 Feb 2023 16:04:04 +0000 (17:04 +0100)]
MDL-76990 core_course: Recover move right/left functionality
Eloy Lafuente (stronk7) [Mon, 27 Feb 2023 11:18:51 +0000 (12:18 +0100)]
MDL-77425 travis: Ensure databases shutdown have time to complete
This is only randomly affecting to Moodle 4.2 with PostgreSQL 13
that, for some reason, returns the control to the script before
some files (.pid) have been deleted as part of the database
shutdown.
It seems that adding 1 second of sleep it's enough to workaround
that problem (there are examples of that in various Travis discussions).
So we are adding here 2 seconds, to ensure we are in the safe side
towards consistent passes. And we are applying the same strategy
also to the MySQL installation, just to keep them 100% parallel.
Paul Holden [Thu, 2 Feb 2023 11:31:27 +0000 (11:31 +0000)]
MDL-61458 tool_cohortroles: switch to core user/cohort form elements.
Remove last dependency on tool_lp plugin.
Paul Holden [Mon, 27 Feb 2023 10:38:51 +0000 (10:38 +0000)]
Merge branch 'MDL-77288-master' of https://github.com/lucaboesch/moodle
Eloy Lafuente (stronk7) [Mon, 27 Feb 2023 08:33:08 +0000 (09:33 +0100)]
MDL-77417 behat: behat_error_handler meets deprecation error types
Right now, any E_DEPRECATED, E_USER_DEPRECATED error type leads
to exception in behat runs, because the behat error handled is
not aware of them. See MDL-38041 for the initial implementation.
We don't want that to happen and they must behave like other "low"
error types (notices, warnings...), that will be reported in logs
or output, but won't trigger any exception, so the test can continue.
This commit just adds those 2 "new" error types to the handler,
providing the very same behaviour for them than the rest.
Meirza [Thu, 16 Feb 2023 02:46:59 +0000 (09:46 +0700)]
MDL-76825 tiny: restyling link on focus for sufficient colour contrast.
Text elements must have sufficient colour contrast against the background,
restyling the link element when it is focused is to ensure colour contrast of at least 4.5:1
Meirza [Wed, 15 Feb 2023 11:06:50 +0000 (18:06 +0700)]
MDL-76825 tiny_media: Make IDs and labels unique.