32955 Commits

Author SHA1 Message Date
Leon Stringer
7c70eb8e89 MDL-78776 database: Remove MyISAM migration
Remove functionality to migrate from MyISAM, and remove tests of whether
the existing database is using this.

Support for MyISAM was dropped in Moodle 2.9 (MDL-46064) so it should
not be possible for any subsequent Moodle version to be using this.

The only remaining MyISAM-aware code is the environment check via
check_database_storage_engine() to prevent installation/upgrade if the
database is set to use this.
2024-06-28 16:00:06 +01:00
Sara Arjona
510e8db405
NOBUG: Add upgrade notes 2024-06-20 16:30:46 +02:00
Huong Nguyen
966d5308a5
Merge branch 'MDL-78773' of https://github.com/paulholden/moodle 2024-06-20 11:06:01 +07:00
Jun Pataleta
e5be35a15b
Merge branch 'MDL-82246-main' of https://github.com/andrewnicols/moodle 2024-06-20 11:41:54 +08:00
Andrew Nicols
5f512be7b9
MDL-82246 tiny_recordrtc: Correct string name for insecure alert title 2024-06-20 10:57:31 +08:00
Huong Nguyen
cafc34d8b4
Merge branch 'MDL-82169' of https://github.com/paulholden/moodle 2024-06-20 09:18:38 +07:00
Sara Arjona
8c3ef8d4cc
Merge branch 'MDL-81665' of https://github.com/paulholden/moodle 2024-06-19 17:08:43 +02:00
Sara Arjona
414c640655
Merge branch 'MDL-81659' of https://github.com/paulholden/moodle 2024-06-19 16:00:48 +02:00
Sara Arjona
438ecde725
Merge branch 'MDL-82181' of https://github.com/paulholden/moodle 2024-06-19 15:42:22 +02:00
Sara Arjona
a210aea91c
Merge branch 'MDL-77665-main' of https://github.com/laurentdavid/moodle 2024-06-19 07:35:17 +02:00
Huong Nguyen
ebae7fbae4
Merge branch 'MDL-81523' of https://github.com/stronk7/moodle 2024-06-19 09:52:10 +07:00
Andrew Nicols
40938bd83b
Merge branch 'MDL-81739-main' of https://github.com/davewoloszyn/moodle 2024-06-18 22:33:14 +08:00
Paul Holden
e47957af26
MDL-82191 core: add closing backtick to upgrade note, correct todo. 2024-06-18 12:16:33 +01:00
Paul Holden
3724f682b3
Merge branch 'MDL-82191-main' of https://github.com/andrewnicols/moodle into main 2024-06-18 12:11:23 +01:00
Paul Holden
74d85b0a90
Merge branch 'MDL-82156-main' of https://github.com/andrewnicols/moodle into main 2024-06-18 12:00:03 +01:00
Huong Nguyen
58dbb96ce5
Merge branch 'MDL-82148' of https://github.com/stronk7/moodle 2024-06-18 16:27:22 +07:00
Huong Nguyen
e7a432c01d
Merge branch 'MDL-82133' of https://github.com/lostrogit/moodle 2024-06-17 15:53:00 +07:00
Laurent David
7bf85150b9 MDL-77665 core_h5p: Allow deployment if user has been deleted
* If user has been deleted we consider that the content can be deployed
by a user who can deploy other packages
* Add behat test to cover for this use case
* Fix the content bank generator as it was failing to upload the content
as the given user
2024-06-17 06:31:18 +02:00
Eloy Lafuente (stronk7)
adb4a5aade
MDL-82148 phpunit: Remove all cases of multiple @coversDefaultClass
Only one by class is allowed (to be used as shortcut exclusively)
2024-06-15 21:43:31 +02:00
Eloy Lafuente (stronk7)
674497a12c
MDL-81523 phpunit: Add all missing setUp/tearDown parent calls
All setUp(), tearDown(), setUpBeforeClass() and tearDownAfterClass()
must, always, call to parent, to ensure that everything is properly
set and cleaned.

While in a lot of situations this is not needed (parents may not
have anything to run), with PHPUnit >= 10 this can become more
important because we are going to move the reset code from current
placement @ runBare() to setUp()/tearDown().

Note that all the changes performed in this commit have been detected
and fixed by moodle-cs (ParentSetUpTearDownSniffTest).
2024-06-14 16:04:57 +02:00
Andrew Nicols
574ea2a02d
MDL-82156 core: Remove manually loaded classes
These classes were all introduced in Moodle 4.4.

Originally they were scheduled for removal in MDL-81134, but now that we
have MDL-82156 we can remove them immediately as the autoloader now
checks for the presence of a newer class and resets if that class is not
present in the autoloader cache.
2024-06-14 12:28:56 +08:00
Andrew Nicols
434c191ff3
MDL-82156 core: Check that key classes are present for classloader 2024-06-14 12:28:55 +08:00
Andrew Nicols
ca985c79c6
MDL-82156 core: Move core_component cache validity check to own method 2024-06-14 12:28:55 +08:00
Andrew Nicols
8c1ab804b3
MDL-82191 core: Deprecated unused stale libraries 2024-06-14 09:27:42 +08:00
Ilya Tregubov
788f0e6f0a NOBUG: Add upgrade notes 2024-06-14 08:56:53 +08:00
Huong Nguyen
6b0c51a2ca
Merge branch 'MDL-81781' of https://github.com/paulholden/moodle 2024-06-13 10:12:37 +07:00
Huong Nguyen
50b0cd3cbd
Merge branch 'MDL-69514' of https://github.com/pedrojordao/moodle 2024-06-13 09:53:53 +07:00
Huong Nguyen
a7b3e9030d
Merge branch 'MDL-82155' of https://github.com/paulholden/moodle 2024-06-13 09:02:43 +07:00
Sara Arjona
b1b3f409fc
Merge branch 'MDL-81942' of https://github.com/paulholden/moodle 2024-06-12 15:47:54 +02:00
Paul Holden
ed25832cc7
MDL-82181 tiny_media: correctly determine whether to show dropzone. 2024-06-12 14:16:00 +01:00
Paul Holden
f4d4f1ca6a
MDL-81942 user: guests should respect default site homepage setting. 2024-06-12 11:34:59 +01:00
Jun Pataleta
1db19bc5bf
Merge branch 'MDL-64325-main' of https://github.com/kevpercy/moodle 2024-06-12 16:36:30 +08:00
Huong Nguyen
bb267a11ad
Merge branch 'MDL-80967-main' of https://github.com/StudiUM/moodle 2024-06-12 14:45:40 +07:00
Huong Nguyen
110f5b5132
Merge branch 'MDL-81515' of https://github.com/timhunt/moodle 2024-06-12 14:08:14 +07:00
Carlos Castillo
5f93155c8c MDL-82133 reportbuilder: Move out RB exceptions to the L2 namespace 2024-06-12 09:02:29 +02:00
Sara Arjona
79de3b6ec4
Merge branch 'MDL-82157-main' of https://github.com/andrewnicols/moodle 2024-06-12 07:09:24 +02:00
Andrew Nicols
980a84958d
MDL-82157 core: Deprecate print_grade_menu 2024-06-12 11:30:54 +08:00
Jun Pataleta
03ca4e0bf8
Merge branch 'MDL-81742-main' of https://github.com/roland04/moodle 2024-06-12 11:13:51 +08:00
Huong Nguyen
96d29ef71b
Merge branch 'MDL-81522' of https://github.com/stronk7/moodle 2024-06-12 08:46:31 +07:00
Paul Holden
c63e3c5756
MDL-82169 user: remove access to non-existent $options array. 2024-06-11 21:24:27 +01:00
Mikel Martín
f61201c947 MDL-81742 mod_feedback: Improve 'Edit' page navigation
- Remove 'Use template' from edit page tertiary navigation
- Create a new 'Actions' menu in the tertiary naviagation
- Move 'Import' tertiary navigation to the actions menu
- Move 'Export' button to the actions menu
- Move 'Save as new template' to the actions menu
- Convert add question select into an action menu
- Fix related behat scenarios
2024-06-11 15:30:33 +02:00
Eloy Lafuente (stronk7)
6c35a65e1a
MDL-81522 phpunit: Add a few non-void return types to tests
This is the final (3rd) commit, where we are adding missing
return types to a few tests (using @depends) which return
types are non-void, but something really returned (for consume
by the dependent test).
2024-06-11 11:55:08 +02:00
Eloy Lafuente (stronk7)
4f7631113c
MDL-81522 phpunit: Add missing void return type to all tests #2
This commit includes more changes, all them also adding the :void
return type to unit tests missing them.

The difference is that all these changes, while also detected
perfectly by the moodle.PHPUnit.TestReturnType sniff, were not
auto-fixed (like the previous commit ones), because all them
do include some "return" statement and, for safety, we don't
fix them.

All the cases have been visually inspected and confirmed that
the existing "return" statements always belong to anon
functions within the test body and not the test own return statement.
2024-06-11 11:55:08 +02:00
Eloy Lafuente (stronk7)
01148a0816
MDL-81522 phpunit: Add missing void return type to all tests
While this change is not 100% required now, it's good habit
and we are checking for it since Moodle 4.4.

All the changes in this commit have been applied automatically
using the moodle.PHPUnit.TestReturnType sniff and are, exclusively
adding the ": void" return types when missing.
2024-06-11 11:55:07 +02:00
Huong Nguyen
d8d395cb19
Merge branch 'MDL-68540-main' of https://github.com/davewoloszyn/moodle 2024-06-11 15:28:59 +07:00
Jun Pataleta
2c1af4fd9e
Merge branch 'MDL-81428-main' of https://github.com/HuongNV13/moodle 2024-06-11 13:41:58 +08:00
Andrew Nicols
12a5c8d366
MDL-81919 core: Correct mapped class location 2024-06-11 10:50:13 +07:00
David Woloszyn
954617d3e3 MDL-68540 form: Correctly target editors in node tree
This fix solves the hideIf and disabledIf form conditions that were not
correctly targetting the editor due to a name attribute mismatch.
2024-06-11 13:05:38 +10:00
Paul Holden
b0eae5fa03
MDL-82155 core: define/correct third party library names. 2024-06-10 19:50:52 +01:00
Sara Arjona
e336e0660d
Merge branch 'MDL-80644_upgrade-http-factory' of https://github.com/ziegenberg/moodle 2024-06-10 16:55:01 +02:00