moodle.git
6 months agoMDL-84213 reportbuilder: add course "do not force" field options.
Paul Holden [Tue, 14 Jan 2025 21:06:54 +0000 (21:06 +0000)]
MDL-84213 reportbuilder: add course "do not force" field options.

Where course entity select elements theme, language and calendar are
defined we should prepend with "Do not force" in order to match the
interface when editing the same fields.

The select filter has been updated to ensure it supports empty values
when switched to simplified version (a0ef4bb8) as well as improving
validation to ensure only present options can be used for filtering.

6 months agoweekly release 5.0dev
Huong Nguyen [Fri, 31 Jan 2025 02:20:03 +0000 (09:20 +0700)]
weekly release 5.0dev

6 months agoNOBUG: Add upgrade notes
Huong Nguyen [Fri, 31 Jan 2025 02:20:03 +0000 (09:20 +0700)]
NOBUG: Add upgrade notes

6 months agoNOBUG: Fixed file access permissions
Huong Nguyen [Fri, 31 Jan 2025 02:19:49 +0000 (09:19 +0700)]
NOBUG: Fixed file access permissions

6 months agoMerge branch 'install_main' of https://git.in.moodle.com/amosbot/moodle-install
Huong Nguyen [Fri, 31 Jan 2025 02:19:45 +0000 (09:19 +0700)]
Merge branch 'install_main' of https://git.in.moodle.com/amosbot/moodle-install

6 months agoMerge branch 'MDL-83152' of https://github.com/paulholden/moodle
Sara Arjona [Thu, 30 Jan 2025 11:28:51 +0000 (12:28 +0100)]
Merge branch 'MDL-83152' of https://github.com/paulholden/moodle

6 months agoMDL-83152 mod_glossary: observe pending entries sort order.
Paul Holden [Thu, 30 Jan 2025 10:56:06 +0000 (10:56 +0000)]
MDL-83152 mod_glossary: observe pending entries sort order.

Ascending/descending should be compared in a case-insensitive manner
because apparently we use both lower/upper cases for each.

6 months agoMerge branch 'MDL-79281_main' of https://github.com/cwarwicker/moodle
Huong Nguyen [Thu, 30 Jan 2025 04:13:07 +0000 (11:13 +0700)]
Merge branch 'MDL-79281_main' of https://github.com/cwarwicker/moodle

6 months agoMerge branch 'MDL-84103-main' of https://github.com/andelacruz/moodle
Huong Nguyen [Thu, 30 Jan 2025 04:09:43 +0000 (11:09 +0700)]
Merge branch 'MDL-84103-main' of https://github.com/andelacruz/moodle

6 months agoMerge branch 'MDL-84095-main' of https://github.com/meirzamoodle/moodle
Huong Nguyen [Thu, 30 Jan 2025 03:50:44 +0000 (10:50 +0700)]
Merge branch 'MDL-84095-main' of https://github.com/meirzamoodle/moodle

6 months agoMerge branch 'MDL-84275' of https://github.com/paulholden/moodle
Huong Nguyen [Thu, 30 Jan 2025 03:27:27 +0000 (10:27 +0700)]
Merge branch 'MDL-84275' of https://github.com/paulholden/moodle

6 months agoMerge branch 'MDL-84114-main' of https://github.com/lucaboesch/moodle
Huong Nguyen [Thu, 30 Jan 2025 03:02:37 +0000 (10:02 +0700)]
Merge branch 'MDL-84114-main' of https://github.com/lucaboesch/moodle

6 months agoMerge branch 'MDL-79843-main-fix' of /Users/jun/Work/moodles/integration_main/moodle
Jun Pataleta [Thu, 30 Jan 2025 02:57:59 +0000 (10:57 +0800)]
Merge branch 'MDL-79843-main-fix' of /Users/jun/Work/moodles/integration_main/moodle

6 months agoMDL-79843 tests: Remove unnecessary whitespace
Jun Pataleta [Thu, 30 Jan 2025 02:55:39 +0000 (10:55 +0800)]
MDL-79843 tests: Remove unnecessary whitespace

6 months agoMerge branch 'MDL-84339' of https://github.com/paulholden/moodle
Huong Nguyen [Thu, 30 Jan 2025 02:40:19 +0000 (09:40 +0700)]
Merge branch 'MDL-84339' of https://github.com/paulholden/moodle

6 months agoMerge branch 'MDL-83862_main' of https://github.com/marxjohnson/moodle
Huong Nguyen [Thu, 30 Jan 2025 02:35:02 +0000 (09:35 +0700)]
Merge branch 'MDL-83862_main' of https://github.com/marxjohnson/moodle

6 months agoMerge branch 'MDL-83297-maxgradesperpage' of https://github.com/dragos5436/moodle
Huong Nguyen [Thu, 30 Jan 2025 02:28:38 +0000 (09:28 +0700)]
Merge branch 'MDL-83297-maxgradesperpage' of https://github.com/dragos5436/moodle

6 months agoMerge branch 'MDL-84323-main' of https://github.com/sarjona/moodle
Huong Nguyen [Thu, 30 Jan 2025 02:19:58 +0000 (09:19 +0700)]
Merge branch 'MDL-84323-main' of https://github.com/sarjona/moodle

6 months agoMerge branch 'MDL-84049-main' of https://github.com/sarjona/moodle
Huong Nguyen [Thu, 30 Jan 2025 02:13:50 +0000 (09:13 +0700)]
Merge branch 'MDL-84049-main' of https://github.com/sarjona/moodle

6 months agoMDL-84103 imscc: Behat test for import IMS Cartridge to course
Angelia Dela Cruz [Wed, 22 Jan 2025 07:01:41 +0000 (15:01 +0800)]
MDL-84103 imscc: Behat test for import IMS Cartridge to course

6 months agoMerge branch 'MDL-84264-main' of https://github.com/pmaneggia/moodle
Sara Arjona [Wed, 29 Jan 2025 15:52:52 +0000 (16:52 +0100)]
Merge branch 'MDL-84264-main' of https://github.com/pmaneggia/moodle

6 months agoMerge branch 'MDL-84243-main' of https://github.com/ferranrecio/moodle
Sara Arjona [Wed, 29 Jan 2025 15:47:35 +0000 (16:47 +0100)]
Merge branch 'MDL-84243-main' of https://github.com/ferranrecio/moodle

6 months agoMerge branch 'MDL-84226' of https://github.com/paulholden/moodle
Sara Arjona [Wed, 29 Jan 2025 15:22:11 +0000 (16:22 +0100)]
Merge branch 'MDL-84226' of https://github.com/paulholden/moodle

6 months agoMerge branch 'MDL-84242' of https://github.com/paulholden/moodle
Sara Arjona [Wed, 29 Jan 2025 14:52:03 +0000 (15:52 +0100)]
Merge branch 'MDL-84242' of https://github.com/paulholden/moodle

6 months agoMerge branch 'MDL-84205' of https://github.com/paulholden/moodle
Sara Arjona [Wed, 29 Jan 2025 10:16:39 +0000 (11:16 +0100)]
Merge branch 'MDL-84205' of https://github.com/paulholden/moodle

6 months agoMerge branch 'MDL-84320-main' of https://github.com/raortegar/moodle
Sara Arjona [Wed, 29 Jan 2025 07:57:18 +0000 (08:57 +0100)]
Merge branch 'MDL-84320-main' of https://github.com/raortegar/moodle

6 months agoMerge branch 'MDL-84129' of https://github.com/paulholden/moodle
Sara Arjona [Wed, 29 Jan 2025 07:49:59 +0000 (08:49 +0100)]
Merge branch 'MDL-84129' of https://github.com/paulholden/moodle

6 months agoMerge branch 'MDL-84214' of https://github.com/paulholden/moodle
Sara Arjona [Wed, 29 Jan 2025 07:39:21 +0000 (08:39 +0100)]
Merge branch 'MDL-84214' of https://github.com/paulholden/moodle

6 months agoMerge branch 'MDL-84148' of https://github.com/paulholden/moodle
Sara Arjona [Wed, 29 Jan 2025 07:30:11 +0000 (08:30 +0100)]
Merge branch 'MDL-84148' of https://github.com/paulholden/moodle

6 months agoMerge branch 'MDL-79819' of https://github.com/jonof/moodle
Sara Arjona [Wed, 29 Jan 2025 07:18:29 +0000 (08:18 +0100)]
Merge branch 'MDL-79819' of https://github.com/jonof/moodle

6 months agoMerge branch 'MDL-84355-main' of https://github.com/andrewnicols/moodle
Sara Arjona [Wed, 29 Jan 2025 07:09:43 +0000 (08:09 +0100)]
Merge branch 'MDL-84355-main' of https://github.com/andrewnicols/moodle

6 months agoMerge branch '83617-fix-grader-report-url-main' of https://github.com/DSI-Universite...
Sara Arjona [Wed, 29 Jan 2025 07:00:41 +0000 (08:00 +0100)]
Merge branch '83617-fix-grader-report-url-main' of https://github.com/DSI-Universite-Rennes2/moodle

6 months agoMerge branch 'MDL-83152' of https://github.com/paulholden/moodle
Sara Arjona [Wed, 29 Jan 2025 06:49:20 +0000 (07:49 +0100)]
Merge branch 'MDL-83152' of https://github.com/paulholden/moodle

6 months agoMerge branch 'MDL-79907-main' of https://github.com/andrewgos/moodle
Sara Arjona [Wed, 29 Jan 2025 06:46:31 +0000 (07:46 +0100)]
Merge branch 'MDL-79907-main' of https://github.com/andrewgos/moodle

6 months agoMDL-79843 core: Fully reset the component cache for some tests
Andrew Nicols [Wed, 29 Jan 2025 02:42:43 +0000 (10:42 +0800)]
MDL-79843 core: Fully reset the component cache for some tests

6 months agoMDL-84355 phpunit: Exclude fixtures from testsuite search
Andrew Nicols [Wed, 29 Jan 2025 02:54:17 +0000 (10:54 +0800)]
MDL-84355 phpunit: Exclude fixtures from testsuite search

6 months agoMDL-84355 phpunit: Correct test path for component configs
Andrew Nicols [Wed, 29 Jan 2025 03:27:51 +0000 (11:27 +0800)]
MDL-84355 phpunit: Correct test path for component configs

6 months agoMerge branch 'MDL-73700_remove-all-the-old-php-version-checks-from-core' of https...
Sara Arjona [Tue, 28 Jan 2025 18:43:36 +0000 (19:43 +0100)]
Merge branch 'MDL-73700_remove-all-the-old-php-version-checks-from-core' of https://github.com/ziegenberg/moodle

6 months agoMDL-73700 lti: remove old PHP version check
Daniel Ziegenberg [Wed, 20 Mar 2024 09:10:31 +0000 (10:10 +0100)]
MDL-73700 lti: remove old PHP version check

As MDL-73016 set the minimum supported PHP version for Moodle 4.4 and up
to PHP 8.1 we can now safely remove this check. It was introduced with
MDL-73523 because of deprecated openssl_x509_free(), openssl_pkey_free()
and openssl_free_key() functions.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
6 months agoMDL-73700 backup: remove old PHP version check
Daniel Ziegenberg [Mon, 20 Jan 2025 15:00:25 +0000 (16:00 +0100)]
MDL-73700 backup: remove old PHP version check

As MDL-73016 set the minimum supported PHP version for Moodle 4.4 and up
to PHP 8.1 we can now safely remove this check.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
6 months agoMDL-73700 environment: Remove the deprecated igbinary322_version check
Daniel Ziegenberg [Wed, 20 Mar 2024 09:10:31 +0000 (10:10 +0100)]
MDL-73700 environment: Remove the deprecated igbinary322_version check

As MDL-73016 set the minimum supported PHP version for Moodle 4.4 and up
to PHP 8.1 we can now remove the check PHP version 7.2 in combination
with the igbinary extension version.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
6 months agoMDL-73700 backup: remove old PHP version check
Daniel Ziegenberg [Wed, 20 Mar 2024 09:10:31 +0000 (10:10 +0100)]
MDL-73700 backup: remove old PHP version check

As MDL-73016 set the minimum supported PHP version for Moodle 4.4 and up
to PHP 8.1 we can now safely switch to php_serialize as the serialize
handler.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
6 months agoMDL-73700 mlbackend: remove old PHP version check
Daniel Ziegenberg [Mon, 2 Sep 2024 10:21:53 +0000 (12:21 +0200)]
MDL-73700 mlbackend: remove old PHP version check

As MDL-73016 set the minimum supported PHP version for Moodle 4.4 and up
to PHP 8.1 we can now safely remove this check. As the lang string
`errorphp7required` is particular to mlbackend php plugin we are going
for direct deletion instead of regular deprecation.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
6 months agoMDL-73700 core: remove testing code for old PHP version
Daniel Ziegenberg [Mon, 2 Sep 2024 09:19:13 +0000 (11:19 +0200)]
MDL-73700 core: remove testing code for old PHP version

Because of PHP bug #70322 two different behaviours were tested (see
MDL-51863). Since those 10 year old PHP versions are way outdated there
is no reason to test for them any longer.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
6 months agoMDL-73700 core: remove unused functions and strings from installer
Daniel Ziegenberg [Sat, 31 Aug 2024 23:51:09 +0000 (01:51 +0200)]
MDL-73700 core: remove unused functions and strings from installer

While searching for no longer needed PHP 5.x & 7.0 checks, the
`phpversionhelp` lang string and, subsequently, the `memorylimithelp`
lang string and the `install_helpbutton()` and
`install_print_help_page()` functions were discovered. According to
comments on MDL-2787 and MDL-64482 they are no longer in use since
Moodle 1.x (approximately), neither reachable since some good versions
ago. With MDL-17458 (commit 3b09331066a91c51a2de1676ca8179ca7c90f64b),
the function `print_compatibility_row()` was gone, and it seems like it
was the only place calling `install_helpbutton()`. And
`install_helpbutton()` was the only place where a link to the help mode
(e.g.  `install.php?help=$helpfield`) ever surfaced.  As both lang
strings and functions are particular to the installer and never could
have been used outside of it, we are going for direct deletion instead
of regular deprecation.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
6 months agoMDL-73700 fileconverter_googledrive: remove old PHP version workaround
Daniel Ziegenberg [Thu, 25 Jul 2024 17:24:33 +0000 (19:24 +0200)]
MDL-73700 fileconverter_googledrive: remove old PHP version workaround

As MDL-73016 set the minimum supported PHP version for Moodle 4.4 and up
to PHP 8.1 we can now safely write this as a one-liner.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
6 months agoMDL-73700 lib: remove old PHP version check
Daniel Ziegenberg [Wed, 20 Mar 2024 11:30:01 +0000 (12:30 +0100)]
MDL-73700 lib: remove old PHP version check

As MDL-73016 set the minimum supported PHP version for Moodle 4.4 and up
to PHP 8.1 we can now safely remove this check.

As it was decided that we will not upgrade this library from upstream
any more (see MDL-52465) we can probably safely remove this. This change
is one of a long series of earlier changes. See readme_moodle.txt.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
6 months agoMDL-73700 core: remove old PHP version check
Daniel Ziegenberg [Wed, 20 Mar 2024 09:10:31 +0000 (10:10 +0100)]
MDL-73700 core: remove old PHP version check

As MDL-73016 set the minimum supported PHP version for Moodle 4.4 and up
to PHP 8.1 we can now safely remove this check. It was introduced with
MDL-75945  because a new signature was introduced to ImagePolygon
functions from PHP 8.1 with the previous signature deprecated in 8.1.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
6 months agoMDL-73700 repository: remove old PHP version check
Daniel Ziegenberg [Wed, 20 Mar 2024 09:10:31 +0000 (10:10 +0100)]
MDL-73700 repository: remove old PHP version check

As MDL-73016 set the minimum supported PHP version for Moodle 4.4 and up
to PHP 8.1 we can now safely remove this check. It was introduced with
MDL-73523 because of deprecated openssl_x509_free(), openssl_pkey_free()
and openssl_free_key() functions.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
6 months agoMDL-73700 mnet: remove old PHP version check
Daniel Ziegenberg [Wed, 20 Mar 2024 09:10:31 +0000 (10:10 +0100)]
MDL-73700 mnet: remove old PHP version check

As MDL-73016 set the minimum supported PHP version for Moodle 4.4 and up
to PHP 8.1 we can now safely remove this check. It was introduced with
MDL-73523 because of deprecated openssl_x509_free(), openssl_pkey_free()
and openssl_free_key() functions.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
6 months agoMDL-73700 enrol_lti: remove old PHP version check
Daniel Ziegenberg [Wed, 20 Mar 2024 09:10:31 +0000 (10:10 +0100)]
MDL-73700 enrol_lti: remove old PHP version check

As MDL-73016 set the minimum supported PHP version for Moodle 4.4 and up
to PHP 8.1 we can now safely remove this check. It was introduced with
MDL-73523 because of deprecated openssl_x509_free(), openssl_pkey_free()
and openssl_free_key() functions.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
7 months agoMerge branch 'MDL-83079-main' of https://github.com/HuongNV13/moodle
Huong Nguyen [Tue, 28 Jan 2025 10:04:08 +0000 (17:04 +0700)]
Merge branch 'MDL-83079-main' of https://github.com/HuongNV13/moodle

7 months agoMDL-83079 core: Make signal handlers run during non CLI scripts
Frederik Milling Pytlick [Tue, 10 Sep 2024 11:23:14 +0000 (13:23 +0200)]
MDL-83079 core: Make signal handlers run during non CLI scripts

7 months agoMerge branch 'MDL-84333-main' of https://github.com/ferranrecio/moodle
Huong Nguyen [Tue, 28 Jan 2025 09:28:09 +0000 (16:28 +0700)]
Merge branch 'MDL-84333-main' of https://github.com/ferranrecio/moodle

7 months agoMerge branch 'MDL-79843-main-2-squashed' of https://github.com/snake/moodle
Andrew Nicols [Tue, 28 Jan 2025 06:47:10 +0000 (14:47 +0800)]
Merge branch 'MDL-79843-main-2-squashed' of https://github.com/snake/moodle

7 months agoMDL-79843 core: test covering hook events for deprecated plugins
Jake Dallimore [Thu, 25 Jul 2024 04:33:32 +0000 (12:33 +0800)]
MDL-79843 core: test covering hook events for deprecated plugins

Verifies that listeners are excluded if they are from a deprecated
plugin type.

7 months agoMDL-79843 core_access: test covering capabilities for deprecated plugins
Jake Dallimore [Thu, 25 Jul 2024 04:31:49 +0000 (12:31 +0800)]
MDL-79843 core_access: test covering capabilities for deprecated plugins

Access APIs still support the deprecated plugin during deprecation.

7 months agoMDL-79843 core_external: test covering services for deprecated plugins
Jake Dallimore [Thu, 25 Jul 2024 04:28:24 +0000 (12:28 +0800)]
MDL-79843 core_external: test covering services for deprecated plugins

This just asserts that web services provided by deprecated plugins can
still be used (similar to how their APIs can still be used during the
deprecation period).

7 months agoMDL-79843 core_adminpresets: skip deprecated plugin types during apply
Jake Dallimore [Thu, 25 Jul 2024 04:26:46 +0000 (12:26 +0800)]
MDL-79843 core_adminpresets: skip deprecated plugin types during apply

Presets are stored in the DB and may contain config for plugins which
have since been deprecated. This just makes sure these are skipped when
trying to apply the preset.

7 months agoMDL-79843 core_task: changes to support deprecated plugin types
Jake Dallimore [Thu, 25 Jul 2024 04:21:03 +0000 (12:21 +0800)]
MDL-79843 core_task: changes to support deprecated plugin types

This ensures:
- existing adhoc tasks will run and be cleared from the queue
- new adhoc tasks cannot be scheduled
- scheduled tasks cannot be listed or fetched via scheduling
Given the nature of the task API, since all tasks are just objects,
a manually created task can still be run via its ::execute() method.

7 months agoMDL-79843 core_event: test covering events for deprecated plugin types
Jake Dallimore [Thu, 25 Jul 2024 04:19:15 +0000 (12:19 +0800)]
MDL-79843 core_event: test covering events for deprecated plugin types

7 months agoMDL-79843 core: prevent callback use for deprecated plugins
Jake Dallimore [Thu, 25 Jul 2024 04:17:25 +0000 (12:17 +0800)]
MDL-79843 core: prevent callback use for deprecated plugins

7 months agoMDL-79843 core: install/upgrade/admin supporting plugintype deprecation
Jake Dallimore [Thu, 25 Jul 2024 04:14:05 +0000 (12:14 +0800)]
MDL-79843 core: install/upgrade/admin supporting plugintype deprecation

This change:
- reports deprecated plugins during upgrade (informational only)
- reports deprecated plugins via site admin, permitting uninstall
- adds env check to block site install/upgrade when phase 2 deprecated
(deleted) plugins are detected. They must be uninstalled to continue.

7 months agoMDL-79843 core: add plugin_manager tests for plugintype deprecation
Jake Dallimore [Thu, 25 Jul 2024 03:52:42 +0000 (11:52 +0800)]
MDL-79843 core: add plugin_manager tests for plugintype deprecation

This change also includes a small extension to testable_plugin_manager,
allowing it to load a fixture plugininfo class for mock plugintypes from
the respective mock type directory root instead of requiring the
plugininfo be located in lib/classes/plugininfo. This prevents debugging
calls during mock use in tests.

7 months agoMDL-79843 core: support deprecated plugin types in plugin_manager APIs
Jake Dallimore [Thu, 25 Jul 2024 03:33:47 +0000 (11:33 +0800)]
MDL-79843 core: support deprecated plugin types in plugin_manager APIs

This change:
- Adds param to plugin_manager::get_plugins() to permit return of
plugininfo for deprecated/deleted plugins, defaulting to false for
b/c.
- ensures plugininfo represents the deprecation state, via:
-- base::is_deprecated() and
-- base::is_deleted()
- ensures plugin_manager supports deprecated/deleted plugins in the
following APIs:
-- plugin_manager::get_present_plugins()
-- plugin_manager::get_installed_plugins()
-- plugin_manager::get_plugin_info()
-- plugin_manager::get_plugintype_root()
-- plugin_manager::can_uninstall_plugin()
-- plugin_manager::get_uninstall_url()

The above changes facilitate listing/reporting on deprecated or deleted
plugins in install, upgrade or site admin views.

7 months agoMDL-79843 core: add component tests covering plugintype deprecation
Jake Dallimore [Thu, 25 Jul 2024 03:14:47 +0000 (11:14 +0800)]
MDL-79843 core: add component tests covering plugintype deprecation

Note: these tests impact \core\component caches and must be run in a
separate process to prevent impact on other tests.

7 months agoMDL-79843 core: add test fixtures supporting plugin deprecation tests
Jake Dallimore [Thu, 25 Jul 2024 03:18:08 +0000 (11:18 +0800)]
MDL-79843 core: add test fixtures supporting plugin deprecation tests

This change adds the following fake plugintype+plugins for testing
\core\component:
- mock plugintype 'fake'
- mock plugin 'fake_fullfeatured'
- mock subplugintype for the 'fake' plugintype, 'fullsubtype'
- mock subplugintype for the 'fake' plugintype, 'fulldeprecatedsubtype'
- mock subplugintype for the 'fake' plugintype, 'fulldeletedsubtype'
- various mock implementations for APIs like access, events,
web services, hooks, legacy callbacks and class callbacks.

7 months agoMDL-79843 core: support mocking of deprecated plugins and subplugins
Jake Dallimore [Thu, 25 Jul 2024 03:09:37 +0000 (11:09 +0800)]
MDL-79843 core: support mocking of deprecated plugins and subplugins

This adds support to the existing, shallow fakeplugin mocks provided by:
- advanced_testcase::add_mocked_plugintype() and
- advanced_testcase::add_mocked_plugin()
and adds new methods for deep mocking fakeplugins:
- advanced_testcase::add_full_mocked_plugintype()
- advanced_testcase::deprecate_full_mocked_plugintype()
- advanced_testcase::delete_full_mock_plugintype()
Deep mocking is required to test \core\component itself.

7 months agoMDL-79843 core: add plugintype deprecation support to core component
Jake Dallimore [Thu, 25 Jul 2024 03:01:15 +0000 (11:01 +0800)]
MDL-79843 core: add plugintype deprecation support to core component

By default, for backward-compatibility, these plugin types and plugins
are not returned from existing APIs.

7 months agoMerge branch 'MDL-81195-main' of https://github.com/martygilbert/moodle
Jun Pataleta [Tue, 28 Jan 2025 02:53:10 +0000 (10:53 +0800)]
Merge branch 'MDL-81195-main' of https://github.com/martygilbert/moodle

7 months agoAutomatically generated installer lang files
AMOS bot [Tue, 28 Jan 2025 00:07:51 +0000 (00:07 +0000)]
Automatically generated installer lang files

7 months agoMDL-84339 ai: move deprecated component lang strings to correct place.
Paul Holden [Mon, 27 Jan 2025 16:41:22 +0000 (16:41 +0000)]
MDL-84339 ai: move deprecated component lang strings to correct place.

7 months agoMDL-84243 core_courseformat: fix course index completion icon
ferran [Mon, 27 Jan 2025 16:20:20 +0000 (17:20 +0100)]
MDL-84243 core_courseformat: fix course index completion icon

7 months agoMDL-83862 question: Improve documentation of $qbank parameters
Mark Johnson [Mon, 20 Jan 2025 14:00:29 +0000 (14:00 +0000)]
MDL-83862 question: Improve documentation of $qbank parameters

7 months agoMDL-84333 core_courseformat: fix page selector init
ferran [Mon, 27 Jan 2025 11:10:32 +0000 (12:10 +0100)]
MDL-84333 core_courseformat: fix page selector init

7 months agoMDL-83862 qbank_viewcreator: Add timemodified filter
Mark Johnson [Fri, 6 Dec 2024 14:51:03 +0000 (14:51 +0000)]
MDL-83862 qbank_viewcreator: Add timemodified filter

This adds a new filter for the timemodified, displayed
in the "Modified by" column. It uses the new core
datetime filter for the UI.

7 months agoMDL-83862 core: Add validation support for datafilters
Mark Johnson [Tue, 10 Dec 2024 11:29:27 +0000 (11:29 +0000)]
MDL-83862 core: Add validation support for datafilters

This allows filter fields to use client-side form validation attributes to check for valid values,
and adds a validation() method for filters to implement custom validation conditions.

In the event of a validation failure, the invalid filters will not be applied, and the URL will
not be updated to avoid user sharing a URL that will generate an error. Filter conditions should
still implement server-side validation and throw exceptions to avoid erroneous values being
manually inserted into the URL.

7 months agoMDL-83862 question: Add timemodified support to question generator.
Mark Johnson [Fri, 6 Dec 2024 17:02:14 +0000 (17:02 +0000)]
MDL-83862 question: Add timemodified support to question generator.

Previously it was not possible to manually specify the modified time for
a question in the test generator. This extends to the mechanism allowing
the modifying user to be specified (rather than using the current user)
to also allow the timemodified to be specified.

7 months agoMDL-83862 core: Add datetime datafilter
Mark Johnson [Fri, 6 Dec 2024 17:02:01 +0000 (17:02 +0000)]
MDL-83862 core: Add datetime datafilter

This adds a new datafilter Javascript class for a
datetime filter. This supports filtering by dates before,
after or between the selected value(s).

The fields for selecting datetimes in the filter use
<input type="datetime-local">, so this commit also adds
support for filling reading and writing those fields in
behat tests.

7 months agoMDL-84323 core_badges: Remove endorsement from JSON
Sara Arjona [Fri, 24 Jan 2025 14:09:12 +0000 (15:09 +0100)]
MDL-84323 core_badges: Remove endorsement from JSON

The endorsement has been removed from the JSON because, according to
the OBv2.0specification, it must not be included in either the badge
or the assertion.
Including it results in a format error, rendering the badge invalid.

7 months agoMDL-84320 editor_tiny: Update tiny version in thirdpartylbs.xml
raortegar [Fri, 24 Jan 2025 10:38:02 +0000 (11:38 +0100)]
MDL-84320 editor_tiny: Update tiny version in thirdpartylbs.xml

7 months agoMerge branch 'MDL-83989-main' of https://github.com/clransom/moodle
Jun Pataleta [Fri, 24 Jan 2025 07:52:25 +0000 (15:52 +0800)]
Merge branch 'MDL-83989-main' of https://github.com/clransom/moodle

7 months agoMDL-84049 badges: Remove default apiversion value
Sara Arjona [Fri, 20 Dec 2024 15:22:05 +0000 (16:22 +0100)]
MDL-84049 badges: Remove default apiversion value

Remove the default value for the apiversion field in the
badge_external_backpack table.

7 months agoMDL-81195 core_course: allow for daylight savings
Marty [Thu, 23 Jan 2025 19:39:42 +0000 (14:39 -0500)]
MDL-81195 core_course: allow for daylight savings

In timezones where daylight savings time is used, courses that start
on a Monday at 00:00 would display the week headings incorrectly
during the change forward.

When the time changes backwards, courses that have a start time of
Sunday at 23:00 also have a mislabeled week.

This attempts to use the DateTime() library, along with the user's
local timezone setting to display the correct day, rather than just
subtracting 86400.

7 months agoMDL-84114 quiz: style the question version pulldown nicely.
Luca Bösch [Thu, 23 Jan 2025 17:39:30 +0000 (18:39 +0100)]
MDL-84114 quiz: style the question version pulldown nicely.

7 months agoweekly release 5.0dev
Sara Arjona [Thu, 23 Jan 2025 16:34:50 +0000 (17:34 +0100)]
weekly release 5.0dev

7 months agoNOBUG: Add upgrade notes
Sara Arjona [Thu, 23 Jan 2025 16:34:50 +0000 (17:34 +0100)]
NOBUG: Add upgrade notes

7 months agoMerge branch 'install_main' of https://git.in.moodle.com/amosbot/moodle-install
Sara Arjona [Thu, 23 Jan 2025 16:34:42 +0000 (17:34 +0100)]
Merge branch 'install_main' of https://git.in.moodle.com/amosbot/moodle-install

7 months agoMDL-83989 file upload: Filemanager breaks if you drop file outside of it
Katie Ransom [Wed, 11 Dec 2024 16:51:16 +0000 (16:51 +0000)]
MDL-83989 file upload: Filemanager breaks if you drop file outside of it

7 months agoMerge branch 'MDL-82767-main-v03' of https://github.com/ferranrecio/moodle
Huong Nguyen [Thu, 23 Jan 2025 04:18:50 +0000 (11:18 +0700)]
Merge branch 'MDL-82767-main-v03' of https://github.com/ferranrecio/moodle

7 months agoMerge branch 'MDL-83869-main' of https://github.com/ferranrecio/moodle
Huong Nguyen [Thu, 23 Jan 2025 04:15:26 +0000 (11:15 +0700)]
Merge branch 'MDL-83869-main' of https://github.com/ferranrecio/moodle

7 months agoMerge branch 'MDL-83848-main-v2' of https://github.com/lameze/moodle into MDL-83848...
Jun Pataleta [Thu, 23 Jan 2025 04:13:41 +0000 (12:13 +0800)]
Merge branch 'MDL-83848-main-v2' of https://github.com/lameze/moodle into MDL-83848-main-test

7 months agoMerge branch 'MDL-83751' of https://github.com/paulholden/moodle
Huong Nguyen [Thu, 23 Jan 2025 03:48:16 +0000 (10:48 +0700)]
Merge branch 'MDL-83751' of https://github.com/paulholden/moodle

7 months agoMerge branch 'MDL-76566' of https://github.com/paulholden/moodle
Huong Nguyen [Thu, 23 Jan 2025 03:44:03 +0000 (10:44 +0700)]
Merge branch 'MDL-76566' of https://github.com/paulholden/moodle

7 months agoMDL-82977 AI: Version bump
Huong Nguyen [Thu, 23 Jan 2025 02:43:14 +0000 (09:43 +0700)]
MDL-82977 AI: Version bump

7 months agoMerge branch 'main_MDL-82977' of https://github.com/mattporritt/moodle
Huong Nguyen [Thu, 23 Jan 2025 02:36:50 +0000 (09:36 +0700)]
Merge branch 'main_MDL-82977' of https://github.com/mattporritt/moodle

7 months agoMDL-83848 core: unpin behat/gherkin dependency
Simey Lameze [Thu, 23 Jan 2025 00:09:15 +0000 (08:09 +0800)]
MDL-83848 core: unpin behat/gherkin dependency

This commit reverts 57dc5a7f17297c2a0dcffd47b3aecf5e1c228a713 "MDL-83470 composer: Require behat/gherkin 4.9.0 for now"
unpin behat/gherkin and fix Behat failures because of the update.

7 months agoMerge branch 'MDL-83763-main' of https://github.com/meirzamoodle/moodle
Huong Nguyen [Thu, 23 Jan 2025 02:24:02 +0000 (09:24 +0700)]
Merge branch 'MDL-83763-main' of https://github.com/meirzamoodle/moodle

7 months agoMerge branch 'MDL-81685_matrix_homeserver_name_main' of https://github.com/mark-webst...
Huong Nguyen [Thu, 23 Jan 2025 02:16:47 +0000 (09:16 +0700)]
Merge branch 'MDL-81685_matrix_homeserver_name_main' of https://github.com/mark-webster-catalyst/moodle

7 months agoMerge branch 'MDL-84101-main' of https://github.com/lameze/moodle
Huong Nguyen [Thu, 23 Jan 2025 02:08:27 +0000 (09:08 +0700)]
Merge branch 'MDL-84101-main' of https://github.com/lameze/moodle