Commit graph

109454 commits

Author SHA1 Message Date
Sara Arjona
aebc13a62d Merge branch 'MDL-75963-master' of https://github.com/meirzamoodle/moodle 2023-05-22 12:15:58 +02:00
Sara Arjona
fa8c3be540 Merge branch 'MDL-78225' of https://github.com/paulholden/moodle 2023-05-22 12:04:07 +02:00
sam marshall
a2af6bd669 MDL-78092 Cache: Modinfo locking with Redis store does not work
The feature added in 4.1 to lock the modinfo cache does not work when
using Redis, because:

* The API to acquire a cache lock is confusing, and the code did not
  check that it successfully acquired a lock before going on to build
  the cache anyway.

* Unlike the other types of cache lock, the Redis store did not retry
  the lock for a timeout period before giving up and failing.

This change fixes both points.
2023-05-22 10:43:14 +01:00
Jun Pataleta
4233e9e61e Merge branch 'MDL-78157-master' of https://github.com/andrewnicols/moodle 2023-05-22 15:29:41 +08:00
Andrew Nicols
9b174fd3cc
MDL-78157 js: Be more careful about inserting missing module names
It is perfectly legitimate to create and/or use a method named `define`
in JS outside of RequireJS.

Unfortunately our requirejs.php wrapper is dumb and does not understand
this.

In the long term we need to stop doing this at all. We really should be
able to already, but every time I try to something prevents it.

In the interim, this change adds a secondary check to see if there is an
existing define which _does_ have the right name in it already.
2023-05-22 14:40:41 +08:00
Jun Pataleta
21b6a7c615 Merge branch 'MDL-78323-master' of https://github.com/andrewnicols/moodle 2023-05-22 14:28:35 +08:00
Andrew Nicols
0aaea71650
MDL-78323 gradereport_grader: Fix jsdoc syntax 2023-05-22 09:23:27 +08:00
Meirza
e95540d9ff MDL-77341 mnet: 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.
2023-05-20 21:37:01 +07:00
Andrew Nicols
07a1dc04f8 MDL-74954 core: Add hook discovery feature 2023-05-20 11:03:46 +02:00
Petr Skoda
99a7a7c782 MDL-74954 core: add Hooks based on PSR-14 2023-05-20 11:03:46 +02:00
AMOS bot
bf481ff790 Automatically generated installer lang files 2023-05-20 00:13:59 +00:00
Paul Holden
695fa397f2
MDL-77532 cohort: include custom fields in cohort report entity. 2023-05-19 18:11:50 +01:00
Paul Holden
5961c2d9cd
MDL-76471 enrol: report filter on enrolment instance custom name. 2023-05-19 17:39:55 +01:00
Paul Holden
a3c5606fd2
MDL-75640 completion: report entity column for completion criteria. 2023-05-19 17:27:50 +01:00
Eloy Lafuente (stronk7)
ff8a9478b2
MDL-78016 dml: Add Oracle support for OFFSET ... FETCH clauses
Since Oracle 12, these statements (providing the same than the
well-known LIMIT clauses in MySQL and PostgreSQL) are available,

Just let's switch to use them, removing the old complex ROWNUM
based queries needed before to provide limits support.
2023-05-19 17:47:57 +02:00
Anupama Sarjoshi
73d29dc1ce MDL-78176 Question: Fix D&D onto image and D&D markers theme issue 2023-05-19 16:16:36 +01:00
Jun Pataleta
2e1c6fd43e weekly release 4.3dev 2023-05-19 21:13:46 +08:00
Jun Pataleta
c5ab4c9474 Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install 2023-05-19 21:13:43 +08:00
Eloy Lafuente (stronk7)
af9cf5f00c
Merge branch 'MDL-77576' of https://github.com/stronk7/moodle 2023-05-19 11:20:31 +02:00
Eloy Lafuente (stronk7)
b171f57cd5
MDL-77576 matrix: Bump version to today
All master versions need to be > than the previous
release (4.2) versions. To avoid overlapping to happen.
2023-05-19 11:20:29 +02:00
Jun Pataleta
2ec6022d9c
Merge branch 'MDL-77733-master-fix' of https://github.com/lameze/moodle 2023-05-19 11:40:16 +08:00
Eloy Lafuente (stronk7)
3ee151f674
Merge branch 'MDL-76900-fix' of https://github.com/paulholden/moodle 2023-05-19 11:40:16 +08:00
Jun Pataleta
4420901074
Merge branch 'MDL-78116-master' of https://github.com/andrewnicols/moodle 2023-05-19 11:40:15 +08:00
Andrew Nicols
a176e8b63a
Merge branch 'MDL-77451-master' of https://github.com/rezaies/moodle 2023-05-19 11:40:15 +08:00
Jun Pataleta
e5a6de0d49
Merge branch 'MDL-78135' of https://github.com/paulholden/moodle 2023-05-19 11:40:15 +08:00
Andrew Nicols
dc01f7df8d
Merge branch 'MDL-78260' of https://github.com/timhunt/moodle 2023-05-19 11:40:14 +08:00
Andrew Nicols
1c62909d2e
Merge branch 'MDL-78151' of https://github.com/paulholden/moodle 2023-05-19 11:40:14 +08:00
Andrew Nicols
e177eff0f8
Merge branch 'MDL-77733-master' of https://github.com/lameze/moodle 2023-05-19 11:40:14 +08:00
Andrew Nicols
88b5313950
MDL-78317 behat: Remove finally deprecated methods
These methods are all very old and well out of the deprecation
timeframe. These are all ready for final removal per policy.
2023-05-19 10:57:42 +08:00
Andrew Nicols
1c9e122df7 MDL-77733 behat: Remove extraneous no-axe option
There is no need for no-axe if we make axe a boolean value. We already
have automatic support for negated boolean flags.
2023-05-19 10:32:53 +08:00
Mark Johnson
bdc75b3015 MDL-75696 quiz: Fix restoring pre-4.0 quizzes with random questions
Restoring multiple quizzes from a pre-4.0 backup was broken when
the quizzes shared a random question. This is because after the
first quiz created a set reference in place of the random question,
it deleted the question record so it was not there for the second
quiz to use. This change tracks the IDs of random questions so
they can be deleted at the end.
2023-05-18 15:53:36 +01:00
Mark Johnson
a47ebb50b3 MDL-75696 quiz: Set default value for includingsubcategories on restore 2023-05-18 15:53:36 +01:00
Mark Johnson
b6b48be55d MDL-75696 backup: Fix backup version checks
Several version checks were incorrectly using
restore_controller::info::moodle_release instead of moodle_version as a
version number. This replaces all of those checks with a common pair of
methods to make the checks clearer and more maintainable.
2023-05-18 15:53:35 +01:00
Paul Holden
3894fa9460
MDL-76900 roles: improve Oracle support for entity description column.
Specifically during column grouping/aggregation, we need to avoid CLOB
datatype inconsistencies (ORA-00932).
2023-05-18 11:37:37 +01:00
Paul Holden
0f134c563d
MDL-78308 output: better parsing of custom menu item configuration.
Previously certain values would cause deprecation notices in PHP8.1.
2023-05-18 10:19:22 +01:00
David Woloszyn
da81f260f0 MDL-78005 editor_tiny: Declared vars to supress error logging 2023-05-18 12:57:56 +10:00
Jun Pataleta
5fd0a514af Merge branch 'master_MDL-78048' of https://github.com/mattporritt/moodle 2023-05-18 10:16:11 +08:00
Ilya Tregubov
63290dc925
Merge branch 'MDL-76900' of https://github.com/paulholden/moodle 2023-05-18 09:22:15 +08:00
Paul Holden
19e05f0e34
MDL-71183 course: final removal of deprecated 311 renderer method. 2023-05-17 11:38:20 +01:00
Tim Hunt
9be598a77f MDL-78260 quiz stats: fix View details for random questions 2023-05-17 09:09:13 +01:00
Rajneel Totaram
4def049e4f MDL-77983 core_user: Avoid passing nulls to base64_decode 2023-05-17 19:40:29 +12:00
Ilya Tregubov
dfc0b2a2fd
Merge branch 'MDL-77700' of https://github.com/paulholden/moodle 2023-05-17 15:14:22 +08:00
Ilya Tregubov
1ff7767b70
Merge branch 'MDL-78152' of https://github.com/paulholden/moodle 2023-05-17 15:06:45 +08:00
Paul Holden
f500b2d878
MDL-76900 course: add enrolment/role entities to participants source.
Deprecate columns/filters from current enrolment entity, to be
replaced by corresponding elements from each of the new entities.
2023-05-17 08:02:44 +01:00
Paul Holden
8f7bff9789
MDL-76900 reportbuilder: allow for deprecation of entity elements.
Don't allow deprecated columns/filters to be added to new custom
reports. Where they already exist, emit deprecation debugging.
2023-05-17 08:02:06 +01:00
Sara Arjona
36de54c1f8 Merge branch 'MDL-77350-master' of https://github.com/meirzamoodle/moodle 2023-05-17 08:27:26 +02:00
Ilya Tregubov
8a45a67bab
Merge branch 'MDL-75372-url_blocked' of https://github.com/catalyst/moodle 2023-05-17 11:44:25 +08:00
David Woloszyn
5bad9bd064 MDL-77252 course: Show notification depending on room status 2023-05-17 10:22:24 +10:00
AMOS bot
58941e316e Automatically generated installer lang files 2023-05-17 00:11:04 +00:00
David Woloszyn
d38cc920c5 MDL-77252 core_communication: Get room status and notifications 2023-05-17 10:06:11 +10:00