Commit Graph

255 Commits

Author SHA1 Message Date
Andrew Nicols 436688d74b MDL-87648 core: Support multiple tests within a check 2026-01-22 11:26:09 +08:00
Andrew Nicols 55ab5d6758 MDL-87648 router: Add check report data for router configuration 2026-01-22 11:26:06 +08:00
Huong Nguyen abfe94823c Merge branch 'MDL-86058-allow-enable-disable-tasks-from-cli-with-pending-upgrade' of https://github.com/duyhuynhdev/moodle 2026-01-12 13:55:14 +08:00
Luca Bösch 2195a490b3 MDL-85576 cli: add noreply email option to cli install. 2025-11-27 13:48:21 +01:00
Dmitrii Metelkin 6cc8acc61d MDL-87173 core: make cli for killing sessions more flexible 2025-11-17 21:16:27 +11:00
Brendan Heywood f63aed7459 MDL-84504 cli: Add config logging for cli maintenance mode 2025-09-22 10:18:29 +10:00
Huong Nguyen 5bffa8b245 Merge branch 'MDL-85984' of https://github.com/paulholden/moodle 2025-09-12 09:03:43 +07:00
Paul Holden bddbe33c9c MDL-85984 admin: verbose CLI info if trying to set hardcoded config. 2025-09-01 16:17:47 +02:00
guillaumebarat e28c9c12ae MDL-85335 cli: Allow uninstall of sub-plugin when parent missing 2025-08-12 15:06:23 +10:00
dustinhuynh 60ff6cfd12 MDL-86058 core_task: enable disable tasks with a pending upgrade 2025-08-06 10:10:39 +10:00
Andrew Nicols a99dd29975 MDL-86049 core: Do not use the component cache before purge
When trying to resolve a corrupt cache where it is not possible to
complete the Moodle setup/bootstrap, it is necessary to ignore the
current cache to load the cache purging infrastructure.
2025-07-21 12:24:37 +08:00
Andrew Nicols ba80ee68fb MDL-83424 core: Move admin/cli scripts to root directory
Note: Plugin-specific CLI directories cannot be moved.
2025-07-14 09:16:32 +07:00
Andrew Nicols f747c15cbf MDL-83424 core: Restructure Moodle codebase 2025-07-12 17:51:38 +08:00
meirzamoodle 16111a3359 MDL-84058 cli: Add a backup check for course module names
Co-authored-by: Jun Pataleta <jun@moodle.com>
2025-04-08 06:27:49 +07:00
Daniel Ziegenberg c23d5edb0f MDL-83334 core: Remove deprecated constant E_STRICT
One of the error levels PHP previously emitted was E_STRICT, on code
that was not strictly correct to ensure interoperability and forward
compatibility. PHP 7.0 converted the majority of existing E_STRICT
warnings to E_NOTICE, and since PHP 8.0, all E_STRICT notices have
changed to E_NOTICE.

Because all of the E_STRICT notices are upgraded to E_NOTICE since PHP
8.0, PHP 8.4 deprecates the E_STRICT constant.

The E_STRICT constant is deprecated in PHP 8.4. Using the constant
anywhere in PHP code now emits a deprecation notice in PHP 8.4 and
later.

The E_STRICT constant will be removed in PHP 9.0.

PHP core and core extensions since PHP 8.0 and later do not emit
E_STRICT notices at all. It is safe to assume that any PHP applications
that run on PHP 8.0 and later will never encounter E_STRICT notices, and
error reporting and handling can be safely updated to ignore E_STRICT
notices.

See: https://php.watch/versions/8.4/E_STRICT-deprecated

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2025-03-04 20:38:04 +01:00
meirzamoodle c26cc0e005 MDL-83172 dml: Remove Oracle from LMS 2025-01-13 17:11:55 +07:00
Brendan Heywood 7382ba057f MDL-84079 cli: Fix deprecation warning 2025-01-02 15:04:49 +11:00
david adamson 7d82486029 MDL-83852 core: Fix web install fatal error 2024-12-03 13:07:32 +11:00
Andrew Nicols f31d9ebc8c MDL-82158 core: Remove uses of cache/lib.php 2024-08-20 15:47:14 +08:00
Andrew Nicols be3482f339 MDL-82747 core: Provide a standard way to register the Autoloader 2024-08-12 13:49:37 +08:00
Andrew Nicols 60d8671224 MDL-81919 core: Prioritise autoloader in install 2024-06-10 14:20:26 +08:00
Jun Pataleta 3856addfdd Merge branch 'MDL-67667-main' of https://github.com/andrewnicols/moodle 2024-04-12 12:41:39 +08:00
Andrew Nicols 6f1df841f7 MDL-67667 core: Deprecate and removal task blocking
There are inherent issues with task blocking which mean that it has
never worked properly. It is also very buggy and can lead to massive
performance issues with task processing.

It is almost impossible to deprecate this in a staged fashion because
various APIs use the methods and it is not possible to determine which
are API uses and which are other valid uses.

In reality there has been little-to-no uptake on the use of this feature
and it should just be removed.
2024-04-12 12:34:20 +08:00
James Williams 5e05ad570f MDL-80985 core: Add --courses argument to purge_caches.php 2024-04-08 18:34:13 +10:00
Ilya Tregubov 247d5d2823 Merge branch 'MDL-79564_master_v2' of https://github.com/TomoTsuyuki/moodle 2023-11-16 09:33:14 +08:00
Ilya Tregubov fbcf939527 Merge branch 'MDL-75616-master' of https://github.com/davewoloszyn/moodle 2023-11-16 09:22:43 +08:00
Tomo Tsuyuki 453eaf6c57 MDL-79564 cli: Add import CLI 2023-11-15 17:36:06 +11:00
David Saylor 863b0822b2 MDL-75616 backup: Use standard temp directory for extraction 2023-11-13 11:04:17 +11:00
Tomo Tsuyuki 839bf730b9 MDL-79563 cli: Add options for backup/restore CLI 2023-11-10 10:16:31 +11:00
Charles Fulton 1af1cd3b49 MDL-79090 task: add enable and disable cli commands 2023-08-28 10:33:25 -04:00
Paul Holden c1c000aa15 MDL-71421 core: deprecate openssl fallbacks in encryption library.
Since c66dc591 the PHP Sodium library is required, negating the need
for the OpenSSL equivalent. Remove fallbacks where possible, leaving
only the ability to decrypt legacy OpenSSL-encrypted content (with
debugging).
2023-08-01 12:10:36 +01:00
raortegar b914f01316 MDL-75195 core: Added supportemail option to install_database.php 2023-07-11 11:13:03 +02:00
Ilya Tregubov cfbb0ea4d5 Merge branch 'MDL-70975-adhoc-carneval' of https://github.com/catalyst/moodle 2023-04-13 09:07:58 +08:00
Andrew Nicols eb1b172397 Merge branch 'MDL-65471-outageless' of https://github.com/Peterburnett/moodle 2023-04-06 08:36:25 +02:00
Peter Burnett 027c770eab MDL-65471 upgrade: framework to reduce maintenance mode 2023-04-06 11:38:26 +10:00
Srdjan 6d9aaa8412 MDL-70975 task: Support for running only failed ad hoc tasks
* CLI adhoc_task.php: new option --failed
2023-04-05 11:05:23 +10:00
Srdjan fa61fce08d MDL-70975 task: Support for limiting the number of adhoc tasks to run
* CLI adhoc_task.php: new option --taskslimit
* CLI adhoc_task.php: --execute option is implied when other options are given
* core\task\manager::get_next_adhoc_task(): new param $number
  for limiting number of tasks to run
2023-04-05 11:05:18 +10:00
Srdjan 3491ea1650 MDL-70975 task: Support for running adhoc tasks filtered by class
* CLI adhoc_task.php: new option --classname
* core\task\manager::get_next_adhoc_task(): new param $classname
  for filtering tasks
2023-04-05 11:00:46 +10:00
Srdjan 9405b5aa6d MDL-70975 task: Support for running adhoc tasks by id
* CLI adhoc_task.php: new option --id
* cron::run_adhoc_task($taskid) for running tasks by id
* core\task\manager::get_adhoc_task($taskid) for retreival/locking
2023-04-05 10:55:18 +10:00
Stephan Robotta b86719f9d0 MDL-77385 cli: CLI script to modify emailstop flag for users 2023-03-28 20:23:23 +02:00
Andrew Nicols 9ec46c232d MDL-77186 core: Move all uses of cronlib to new class 2023-03-13 21:21:13 +08:00
Andrew Nicols 1b59967d71 MDL-77186 core: Add a new keepalive setting to cron 2023-03-13 21:19:55 +08:00
Andrew Nicols fbeb9f8952 MDL-77186 core: Improve coding style for cron.php 2023-03-13 21:19:36 +08:00
Mikhail Golenkov 04e2e00976 MDL-74991 CLI: Add a script to delete courses 2022-10-10 14:40:23 +11:00
Sujith Haridasan 73d604369d MDL-71062 core: Step 1 deprecation of print_error function 2022-07-13 08:20:54 +05:30
Eric Merrill 5d7509392d MDL-74182 core_task: Obey CFG debug settings 2022-03-13 23:57:13 -04:00
Simey Lameze f88bcdb041 MDL-72984 cli: add support email option to cli install 2021-12-20 13:24:38 +08:00
Sara Arjona 42895003e4 MDL-73145 install: Apply site preset if defined in config
A new setting, $CFG->setsitepresetduringinstall, has been added to
config file, to let admins define the site admin preset to be applied
during the Moodle installation.

Besides, a new parameter, "--sitepreset" has been also added
to admin/cli/install.php, to let define it too when running the
upgrade process using CLI.
2021-12-09 09:48:44 +01:00
cperves a457b85eb2 MDL-71778 admin: patch for hard-set check filter 2021-08-31 12:32:14 +08:00
Leon Stringer 267aa870d3 MDL-71476 core_cli: Remove MyISAM migration
Remove support for migrating MySQL databases using the old MyISAM storage
engine to the InnoDB storage engine.  MyISAM was supported up to Moodle
2.8 (dropped in 2.9: MDL-46064).  Beyond Moodle 3.3 -- the highest version
that can upgrade from 2.8 -- this functionality was no longer applicable.
2021-05-19 08:27:19 +01:00