113156 Commits

Author SHA1 Message Date
Guillaume Barat
05c23b4c70 MDL-79959 repository: Add custom field picker for SSO identification. 2024-03-27 13:07:46 +10:00
Sara Arjona
c895def59b
on-demand release 4.4dev+ 2024-03-26 12:31:36 +01:00
Jun Pataleta
35dcf18395
Merge branch 'MDL-80875-main' of https://github.com/sarjona/moodle 2024-03-26 12:05:40 +08:00
Jun Pataleta
dc3583e88b
Merge branch 'MDL-81233-main' of https://github.com/andrewnicols/moodle 2024-03-26 11:19:42 +08:00
Jun Pataleta
638de6002a
Merge branch 'MDL-80384-main' of https://github.com/junpataleta/moodle 2024-03-26 11:16:34 +08:00
Huong Nguyen
b283ca354e
Merge branch 'MDL-78551-main' of https://github.com/safatshahin/moodle 2024-03-26 10:08:06 +07:00
Jun Pataleta
da27f51bea
MDL-80384 courseformat: Set activity icon alt text on editing mode
From a warning using WAVE:
* The title attribute value for images that lack an alt attribute value
will be presented to screen reader users. However, providing image
content in the alt attribute typically provides better accessibility,
and should be used in most cases. The title attribute will generate a
mouse hover tooltip which may or may not be desired - this tooltip will
not be presented to touch screen or keyboard users.
2024-03-26 11:01:01 +08:00
Safat
c172dce46d MDL-78551 core: Version bump 2024-03-26 13:53:39 +11:00
Safat
b9db825c37 MDL-78551 core: Register hook callbacks and dispatchers 2024-03-26 13:53:39 +11:00
Safat
abed8cddbf MDL-78551 core_communication: Add hook listeners 2024-03-26 13:53:39 +11:00
Safat
fc7127e867 MDL-78551 core_access: Add support for hooks api 2024-03-26 13:53:39 +11:00
Safat
968897b653 MDL-78551 core_enrol: Add support for hooks api 2024-03-26 13:53:39 +11:00
Safat
99b7dc147f MDL-78551 core_course: Add hooks api for course updates 2024-03-26 13:53:39 +11:00
Safat
d2c5d26190 MDL-78551 core_user: Add hooks api for user updates 2024-03-26 13:53:39 +11:00
Safat
ae8cae6d9a MDL-78551 core_group: Add hooks api for group and membership 2024-03-26 13:53:39 +11:00
Jun Pataleta
556347c4f1
Merge branch 'MDL-81266' of https://github.com/stronk7/moodle 2024-03-26 10:34:47 +08:00
Sara Arjona
2e318211cf
Merge branch 'MDL-81277-main' of https://github.com/laurentdavid/moodle 2024-03-25 17:15:29 +01:00
Sara Arjona
f088e9d610
Merge branch 'MDL-81246-main' of https://github.com/HuongNV13/moodle 2024-03-25 17:01:40 +01:00
Jun Pataleta
281fecbd54
Merge branch 'MDL-78885-main' of https://github.com/rezaies/moodle 2024-03-25 23:37:57 +08:00
Eloy Lafuente (stronk7)
b2131ceff7
MDL-81266 phpunit: Document the changes in lib/upgrade.txt 2024-03-25 16:21:53 +01:00
Eloy Lafuente (stronk7)
4c2f8b3a91
MDL-81266 phpunit: Remove expect(Deprecation|Notice|Warning|Error)
PHPUnit 9.6 has deprecated all the expect(Deprecation|Notice|Warning|Error)
assertions, so we have to move away from them.

In core, we only had 2 cases, one easily fixed by getting rid of it,
because, for php >= 80 it's an assert-able exception.

And the other replaced with code that, temporarily, sets a custom
error handler that converts any specified E_ to an asset-able
exception.

Note that tests playing with error handlers should, always, be
run in separate process, to avoid problems or conflicts with
PHPUnit / Moodle own error handlers.
2024-03-25 16:21:53 +01:00
Daniel Ziegenberg
08027e408c
MDL-81281 phpunit: assertObjectHasAttribute is deprecated
To be integrated as part of MDL-81266

When running PHPUnit 9.6 we get the following deprecation warnings:
"assertObjectHasAttribute() is deprecated and will be removed in PHPUnit
10. Refactor your test to use assertObjectHasProperty() instead."

So we replace all instances of assertObjectHasAttribute with
assertObjectHasProperty.

PHPUnit justifies the change with:
> PHPUnit currently refers to "fields" (see above) as "attributes". This
> is (or will become) confusing considering the introduction of
> attributes in PHP 8 and their support in PHPUnit.  PHPUnit will be
> changed to use the term "property" instead of "attribute" where "field"
> is meant.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-03-25 16:21:45 +01:00
Daniel Ziegenberg
87267da39d
MDL-81281 phpunit: assertObjectNotHasAttribute is deprecated
To be integrated as part of MDL-81266

When running PHPUnit 9.6 we get the following deprecation warnings:
"assertObjectNotHasAttribute() is deprecated and will be removed in PHPUnit
10. Refactor your test to use assertObjectNotHasProperty() instead."

So we replace all instances of assertObjectNotHasAttribute with
assertObjectNotHasProperty.

PHPUnit justifies the change with:
> PHPUnit currently refers to "fields" (see above) as "attributes". This
> is (or will become) confusing considering the introduction of
> attributes in PHP 8 and their support in PHPUnit.  PHPUnit will be
> changed to use the term "property" instead of "attribute" where "field"
> is meant.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-03-25 16:21:07 +01:00
Sara Arjona
8e1e0dbfb4
Merge branch 'MDL-80088' of https://github.com/paulholden/moodle 2024-03-25 16:20:25 +01:00
Eloy Lafuente (stronk7)
51bc492569
MDL-81266 composer: PHPUnit 9.6, Behat to 3.14 and other deps
Bump to PHPUnit 9.6 towards warning in advance about
stuff that will be removed for PHPUnit 10, namely:
 - expect[Deprecation|Error|Notice|Warning] methods.
 - assert[Object|Class][Not]Has[Static]Attribute methods.
 - withConsecutive()
 - TestCase::getMockClass()
 - "Test" suffix for abstract test case classes.

The behat bump is only applied to 402_STABLE and up, all them
requiring PHP 8.0 as a minimum. And generated following the
instructions in the dev docs.
2024-03-25 14:33:34 +01:00
Laurent David
d983fee151 MDL-80384 core_courseformat: Remove activty icon link
* Remove the link over the image icon for an activity and use
the title attribute for the tooltip
2024-03-25 13:25:56 +01:00
Laurent David
199a644d48 MDL-81277 lib: Update atto codemirror to 5.65.16 2024-03-25 13:17:58 +01:00
Sara Arjona
978f7aad72
Merge branch 'MDL-79368-main' of https://github.com/roland04/moodle 2024-03-25 13:01:03 +01:00
Sara Arjona
2fecfa597b
MDL-80875 uploadcourse: Fix params validation 2024-03-25 08:09:19 +01:00
Andrew Nicols
430c63b39e
MDL-80300 mod_quiz: Integration coding fixups 2024-03-25 15:07:16 +08:00
Andrew Nicols
8bd1242d78
Merge branch 'mdl-80300-main-refactor' of https://github.com/matthewhilton/moodle 2024-03-25 15:06:50 +08:00
Ilya Tregubov
d1a34c7d23 Merge branch 'MDL-63128-main' of https://github.com/meirzamoodle/moodle 2024-03-25 14:23:53 +08:00
meirzamoodle
c700e4f8a9 MDL-63128 core_cache: Add new is_cluster_available helper
The ::is_cluster_available() will return true if the PHP support redis cluster.
2024-03-25 12:47:40 +07:00
meirzamoodle
b7452d44de MDL-63128 core: Add support for use redis cluster as session handler
Co-authored-by: Avi Levy <avi@sysbind.co.il>
2024-03-25 12:47:40 +07:00
meirzamoodle
6a28e0641e MDL-63128 cachestore_redis: Support Redis cluster as cache store
Co-authored-by: Daniel Thee Roperto <daniel@theeroperto.com>
Co-authored-by: Avi Levy <avi@sysbind.co.il>
2024-03-25 12:47:40 +07:00
Jake Dallimore
7b1ff9658c
Merge branch 'MDL-79239-master' of https://github.com/ssj365/moodle 2024-03-25 12:25:51 +08:00
Andrew Nicols
c748baffc1
Merge branch 'MDL-80827-main' of https://github.com/stevandoMoodle/moodle 2024-03-25 11:43:28 +08:00
Huong Nguyen
c53fc0e0c9
Merge branch 'MDL-79829-main' of https://github.com/laurentdavid/moodle 2024-03-25 09:22:20 +07:00
Huong Nguyen
890eb4bd0b
Merge branch 'MDL-81074-main' of https://github.com/andrewnicols/moodle 2024-03-25 09:15:12 +07:00
Andrew Nicols
f1718680ce
MDL-81074 core: Simplify strftime tests 2024-03-25 09:51:25 +08:00
Luca Bösch
b2af5134b8
MDL-81074 core: align core_date::strftime results for numeric and string 2024-03-25 09:51:25 +08:00
Andrew Nicols
624a1d8169
MDL-81074 core: Add assertTimeStringMatches PHPUnit Assertion
Also raised as https://github.com/sebastianbergmann/phpunit/issues/5757
2024-03-25 09:51:25 +08:00
Sara Arjona
342319339f
on-demand release 4.4dev+ 2024-03-22 14:03:42 +01:00
Sara Arjona
d0c545d2fb
NOBUG: Fixed file access permissions 2024-03-22 14:03:42 +01:00
Sara Arjona
fa8213c3d7
NOBUG: Fixed SVG browser compatibility 2024-03-22 14:03:38 +01:00
Jun Pataleta
f150d5016d
Merge branch 'MDL-81132-master' of https://github.com/jleyva/moodle 2024-03-22 11:57:23 +08:00
Jun Pataleta
b690ef2429
Merge branch 'MDL-81313-main' of https://github.com/snake/moodle 2024-03-22 11:47:56 +08:00
Jun Pataleta
e366db6c55
Merge branch 'MDL-80843' of https://github.com/paulholden/moodle 2024-03-22 11:34:23 +08:00
Ilya Tregubov
9f10899178 Merge branch 'MDL-80099_main' of https://github.com/marxjohnson/moodle 2024-03-22 11:07:55 +08:00
Ilya Tregubov
7e9a20640b Merge branch 'MDL-81319' of https://github.com/stronk7/moodle 2024-03-22 09:29:38 +08:00