Cameron Ball
bc9c536335
MDL-74548 backup: Unit tests for course copy refactor
2022-06-29 09:13:29 +08:00
Cameron Ball
29df52af19
MDL-74548 backup: Refactor course copies
...
This patch modifies the way copy data is shared in order to mitigate potential race conditions
and ensure that the serialised controller stored in the DB is always in a valid state.
The restore controller is now considered the "source of truth" for all information about the
copy operation. Backup controllers can no longer contain information about course copies.
As copy creation is not atomic, it is still possible for copy controllers to become orphaned or
exist in an invalid state. To mitigate this the backup cleanup task has been modified to call
a new helper method copy_helper::cleanup_orphaned_copy_controllers.
Summary of changes in this patch:
- Copy data must now be passed through the restore controller's constructor
- base_controller::get_copy has been deprecated in favour of restore_controller::get_copy
- base_controller::set_copy has been deprecated without replacement
- core_backup\copy\copy has been deprecated, use copy_helper.class.php's copy_helper instead
- backup_cleanup_task will now clean up orphaned controllers from copy operations that went awry
Thanks to Peter Burnett for assiting with testing this patch.
2022-06-29 09:13:29 +08:00
Simey Lameze
c85b88c1b6
MDL-74967 core: deprecate groupmember hack from USER object
2022-06-29 04:55:42 +08:00
Jun Pataleta
9a6d3bb3ba
Merge branch 'MDL-74701-master' of https://github.com/HuongNV13/moodle
2022-06-28 23:51:17 +08:00
Jun Pataleta
81faa8184e
Merge branch 'MDL-74906-master' of https://github.com/snake/moodle
2022-06-28 23:33:04 +08:00
Jun Pataleta
a60a2ad04b
Merge branch 'MDL-29717-master' of https://github.com/marinaglancy/moodle
2022-06-28 22:24:59 +08:00
Juan Leyva
6969d2834b
MDL-74862 tool_mobile: Allow to disable QR login IP checks
2022-06-28 12:18:58 +02:00
Shamim Rezaie
34d55890f3
Merge branch 'MDL-73121' of https://github.com/paulholden/moodle
2022-06-28 16:08:30 +10:00
Dani Palou
341039b13b
MDL-74864 forum: Allow specifying group in discussions generator
2022-06-28 06:59:39 +02:00
Jun Pataleta
6dbfb3bd36
Merge branch 'MDL-68867-master' of https://github.com/lameze/moodle
2022-06-28 11:24:11 +08:00
Jun Pataleta
b2bc76e0f7
Merge branch 'MDL-74929-master' of https://github.com/bmbrands/moodle
2022-06-28 11:07:48 +08:00
Jun Pataleta
15608738d9
Merge branch 'MDL-74781_master' of https://github.com/aya-saad1/moodle
2022-06-28 10:44:47 +08:00
Jun Pataleta
4ff322db08
Merge branch 'MDL-69905-master' of https://github.com/lameze/moodle
2022-06-27 22:41:01 +08:00
Juan Leyva
51c9c709a9
MDL-75058 course: Fix support for dates on WebServices
2022-06-27 15:29:36 +02:00
Jun Pataleta
d4fe1b3065
MDL-75072 mod_forum: Drop usecoursefullname forum setting
2022-06-27 17:48:59 +08:00
Jun Pataleta
564d0d73f4
MDL-75072 mod_forum: Revert the patch for MDL-74623
...
This reverts commit bd6fdd70d6
.
2022-06-27 17:39:13 +08:00
Paul Holden
2d6139242c
MDL-74671 phpunit: remove file/directory coverage duplicates.
2022-06-27 10:16:14 +01:00
Ilya Tregubov
37020ba162
Merge branch 'MDL-74691-master' of https://github.com/snake/moodle
2022-06-27 08:30:18 +04:00
Aya Saad
165d983214
MDL-74781 search: Fix heading repetition in global search page
2022-06-26 10:38:22 +02:00
Aya Saad
8be0dfc928
MDL-74379 language: injecting am/pm in date string
...
patching the date_format_string() function in moodlelib to add am/pm for languages that don't suuport it.
2022-06-26 10:36:52 +02:00
Paul Holden
721f7a01e8
MDL-74777 reportbuilder: report filter by category/sub-categories.
...
AMOS BEGIN
CPY [choosecategory,core_grades],[categoryselect,core_reportbuilder]
AMOS END
2022-06-24 11:44:50 +01:00
Paul Holden
1dba7152d0
MDL-74595 calendar: consistent breadcrumbs navigating site calendar.
...
Take #3 , see also 7a529cc8
and 81b0d053
.
2022-06-24 10:14:49 +01:00
Paul Holden
52992d993c
MDL-73568 admin: show accepted types for stored file config settings.
...
Re-factor existing code to make use of file manager class that renders
these details for us by default.
Co-authored-by: Simey Lameze <simey@moodle.com>
2022-06-24 10:13:09 +01:00
Shamim Rezaie
1657669d98
MDL-74741 javascript: Set the role of d&d links to button
2022-06-24 14:24:18 +10:00
Shamim Rezaie
584468c6b0
MDL-74741 javascript: A11y fix for dialogues visible from beginning
2022-06-24 14:24:17 +10:00
Jun Pataleta
ceb41588d2
weekly release 4.1dev
2022-06-24 11:59:02 +08:00
Jun Pataleta
9c61045945
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
2022-06-24 11:58:59 +08:00
Yan Kudriavtsev
18dcdd7763
MDL-69905 block: order of activities in the block Recent Activity
...
The order of actions in the "Recent Actions" block has been changed to
descending
2022-06-24 11:30:23 +08:00
Rodrigo Mady da Silva
892047d3c8
MDL-74827 core_webservice: Add enablecustomreports in WS get_site_info
2022-06-23 12:00:43 -03:00
Rodrigo Mady da Silva
fad1926b98
MDL-74825 tool_mobile: Add customusermenuitems in mobile WS get_config
2022-06-23 08:47:15 -03:00
stevando
05dcc9eb12
MDL-74981 mod_quiz: set limited width on overrides pages
2022-06-23 18:01:56 +08:00
stevando
d04d70bb60
MDL-74981 mod_assign: set limited width on overrides pages
2022-06-23 18:01:39 +08:00
Jun Pataleta
fc76c284b1
Merge branch 'MDL-74623_master_v2' of https://github.com/TomoTsuyuki/moodle
2022-06-23 11:55:30 +08:00
Jun Pataleta
24b826f38d
Merge branch 'MDL-69939' of https://github.com/paulholden/moodle
2022-06-23 09:53:44 +08:00
Jun Pataleta
79b54a59a4
Merge branch 'MDL-74713' of https://github.com/paulholden/moodle
2022-06-23 09:51:50 +08:00
Jun Pataleta
626d0fe77f
Merge branch 'MDL-73156-master' of https://github.com/michael-milette/moodle
2022-06-23 09:50:41 +08:00
Jun Pataleta
271c69fd84
Merge branch 'MDL-74785' of https://github.com/danmarsden/moodle
2022-06-23 09:48:47 +08:00
Paul Holden
eb44a074fb
MDL-75054 reportbuilder: fix docblock for adding column callback.
...
Parameter type is now preserved, since ea45aefe
.
2022-06-22 23:57:26 +01:00
Juan Leyva
a3201673be
MDL-75048 mod_quiz: Use new way to check if subcats are included
2022-06-22 18:14:05 +02:00
Jun Pataleta
8ff58878e7
Merge branch 'MDL-72948' of https://github.com/NeillM/moodle
2022-06-22 23:16:16 +08:00
Neill Magill
6fb4a3b56e
MDL-72948 messaging: Minimise fields used in query
...
Most of the fields in the query are not needed and are discarded
soon after visibility checks are made.
2022-06-22 10:11:18 +01:00
Shamim Rezaie
1296d39194
Merge branch 'master-MDL-71468-v4' of https://github.com/golenkovm/moodle
2022-06-22 14:54:01 +10:00
Mikhail Golenkov
9e074f2436
MDL-74736 task: Log adhoc task id and its custom data
2022-06-22 10:33:25 +10:00
Simey Lameze
24cd968683
MDL-68867 calendar: remove dependency on USER->groupmember hack
2022-06-22 07:56:41 +08:00
Víctor Déniz
ed249020ea
Merge branch 'MDL-72486-unproxied-logging' of https://github.com/brendanheywood/moodle
2022-06-21 19:23:06 +01:00
Jun Pataleta
8059552597
Merge branch 'MDL-73212' of https://github.com/stronk7/moodle
2022-06-21 23:50:51 +08:00
Eloy Lafuente (stronk7)
b4a86ff674
MDL-73212 gha: Allow parameters to be passed via secret
...
We are disabling the -v (verbose) option, used by default. Still,
now we support a secret (that can be added to everyone's repository)
to accept any PHPUnit's command line options and run the tests with
them.
Some examples:
phpunit_options = -v (to keep the verbose option enabled)
phpunit_options = --testdox (to print information about every test...)
... (basically anything supported by the CLI).
Also, we are raising here the environment from Ubuntu 18.04 to 20.04
(self tested by GHA, heh)
2022-06-21 16:54:13 +02:00
Rodrigo Mady da Silva
62bee73724
MDL-74826 tool_mobile: Add reportbuilder option in disabledfeatures
2022-06-21 11:30:49 -03:00
Shamim Rezaie
3d5ad1c391
MDL-75028 theme_boost: fix the inline edit tooltip for RTL
2022-06-21 17:30:26 +10:00
Jun Pataleta
767a1e74be
MDL-74812 gradingform_rubric: Add radiogroup role properly
...
Do not add the radiogroup role to the rubric criterion when the rubric
table is being displayed on edit or preview modes.
2022-06-21 12:24:42 +08:00