Commit Graph

2617 Commits

Author SHA1 Message Date
Andrew Nicols 611008d6eb Merge branch 'MDL-85366-500' of https://github.com/djarran/moodle into MOODLE_500_STABLE 2025-10-17 08:47:05 +08:00
Brendan Heywood a3209bb547 MDL-84504 core: Allow setting config and logging with one call 2025-09-22 10:15:17 +10:00
hieuvu f13043c44b MDL-85701 mod_quiz: Move delete activities before questions.
Make sure the question is not used when activities has been deleted.
2025-08-06 10:25:17 +07:00
djarrancotleanu e00381381a MDL-85366 core: Add proper PHPMailer handling of .ics files 2025-07-08 17:07:07 +10:00
Brendan Heywood f3ab1afd05 MDL-84070 core: Fix race conditions setting user preferences 2025-04-22 08:39:17 +07:00
Simey Lameze 68ee911165 MDL-75971 behat: add email handling capabilities to Behat 2025-04-03 13:37:16 +08:00
Andrew Nicols a61a4d0355 Merge branch 'MDL-84591_main' of https://github.com/marxjohnson/moodle 2025-03-21 07:53:40 +08:00
Nathan Nguyen 224b6eb39a MDL-80984 gradepenalty: add penalty feature 2025-03-19 23:00:51 +08:00
Jun Pataleta 56183c786e Merge branch 'MDL-81714_main' of https://github.com/marxjohnson/moodle 2025-03-18 12:57:55 +08:00
Mark Johnson b746bcd186 MDL-81714 grades: Make large regrades asynchronous
Currently, large courses can take a long time to perform a full regrade.
This is currently handled with a progress bar to prevent frontend
timeouts while the regrade takes place. However, because it can take so
long a teacher may not want to wait with the page open for several
minutes, particularly if they are performing several operations that
trigger a regrade.

This adds a new async flag to grade_regrade_final_grades which is true
by default. Instead of performing the regrade immediately, this queues
an instance of \core\task\regrade_final_grades for the course, which
will be executed in the background.

It is advisable to always leave the async flag set true, except in the
following scenarios:
- Automated tests.
- The regrade_final_grades task which actually wants to do the
calculations immediately.
- When you have performed a check to determine that the regrade process
is unlikely to take a long time, for example there are only a small
number of grade items.
2025-03-14 16:01:04 +00:00
Jun Pataleta 1a622c6742 Merge branch 'MDL-65233-main-no-midnight' of https://github.com/sim642/moodle 2025-03-13 12:21:28 +08:00
Mark Johnson c9828a8105 MDL-84591 questions: Save question in use when a course is deleted
question_category_delete_safe checks if questions in the category to be
deleted are in use, and if so, saves them to a new qbank instance to
avoid breaking existing quizzes.

However, if the whole course is being deleted, the qbank is created in
the current course as question_category_delete_safe does not know is is
about to be deleted, and the questions are lost when the deletion
occurs.

This change passes down a flag to question_category_delete_safe so it
knows it was called as part of a whole course deletion, and moves saved
questions to the site course instead of the current course.
2025-03-11 11:00:40 +00:00
Sara Arjona 5354e2af6c Merge branch 'MDL-82399' of https://github.com/paulholden/moodle 2025-03-05 16:35:10 +01:00
Simmo Saan 38c7985705 MDL-65233 course: remove usergetmidnight from reset time shift 2025-02-12 21:53:09 +02:00
Paul Holden c78793beb3 MDL-82399 admin: allow selective purging of courses cache from UI.
Equivalent to the same functionality in the CLI tool in 5e05ad570f.
2025-01-30 13:56:57 +00:00
Jake Dallimore d6f0443308 MDL-79843 core: prevent callback use for deprecated plugins 2025-01-28 14:42:19 +08:00
Huong Nguyen 7fd11604da Merge branch 'MDL-81821-main' of https://github.com/roland04/moodle 2024-11-28 13:23:54 +08:00
Mikel Martín 636ab0fba9 MDL-81821 theme_boost: Refactor font utility classes for BS5 2024-11-26 15:17:30 +01:00
Shamim Rezaie 0af9b5ca7e Merge branch 'MDL-71378_main' of https://github.com/SimonasAdams/moodle 2024-11-25 18:21:18 +11:00
Jun Pataleta e5a241a02c Merge branch 'MDL-71257-main' of https://github.com/junpataleta/moodle 2024-11-21 11:33:32 +08:00
David Woloszyn 2be5e7e18d MDL-71257 dml: Rename master/slave to primary/replica 2024-11-21 11:17:51 +08:00
Simon Adams a0cf3d2da5 MDL-71378 core_question & mod_quiz: Refactor deprecated contexts 2024-11-18 10:22:59 +00:00
Simon Adams 776d1e40e4 MDL-71378 mod_qbank: Add question bank management 2024-11-15 15:18:47 +00:00
Simon Adams 78d73cc9b7 MDL-71378 mod_qbank: Add initial plugin structure 2024-11-15 15:18:46 +00:00
Huong Nguyen 43784b0d98 Merge branch 'MDL-46739_main' of https://github.com/marxjohnson/moodle 2024-11-14 09:26:43 +07:00
Tim Hunt 8f9b57d5d3 MDL-46739 user preferences: change value column to TEXT.
Other similar columns config.value and config_plugins.value are TEXT, so
it is surprising that this column is different, and that has lead to
bugs in the past, so we should make it consistent.
2024-11-11 11:33:52 +00:00
meirzamoodle c299f69e9f MDL-61232 core: Remove process_email.php and anything related to it 2024-10-30 04:51:27 +07:00
Huong Nguyen d1cced3864 Merge branch 'MDL-83296' of https://github.com/marinaglancy/moodle 2024-10-03 08:44:21 +07:00
Marina Glancy 7015c67d7c MDL-83296 user: store defaulthomepage as a relative url 2024-09-27 14:31:26 +01:00
Huong Nguyen cf4fe9d924 Merge branch 'MDL-82483' of https://github.com/paulholden/moodle 2024-09-27 11:15:40 +07:00
ferranrecio c643b6e887 MDL-83008 course: make subection completion not editable 2024-09-11 09:44:21 +07:00
Sara Arjona e812811b11 Merge branch 'MDL-81767-main' of https://github.com/roland04/moodle 2024-09-03 19:35:20 +02:00
Mikel Martín a0fa76c86b MDL-81767 courseformat: Add module quickcreation feature
- Add new 'FEATURE_QUICKCREATE' plugin feature that indicates the module can
  be created with a single click. It will use its own 'quickcreatename' defined
  string as the initial default name.
- Add new 'core_courseformat\external\create_module' web service to create new
  modules with the quickcreate featuer in the course page.
- Add a new 'create_module' state action.
2024-09-03 13:35:04 +02:00
Trisha Milan e52fbd2f84 MDL-66151 Performance: Session Manager modularisation
Storage of session metadata has moved into the session handler class.
This allows for other classes to fully control session handling and
removes the dependancy on the core sessions database table.

Previously, the standard method of interaction with the
session metadata was direct DB calls; this may break other plugins as there
are now proper APIs available through the session manager.

Co-authored-by: Darren Cocco <moodle@darren.cocco.id.au>
Co-authored-by: Trisha Milan <trishamilan@catalyst-au.net>
Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2024-09-03 13:04:04 +10:00
Paul Holden 5d45fa48a9 MDL-82483 tag: update the max length constant to match schema. 2024-08-29 10:37:55 +01:00
Huong Nguyen 508dd8c77e Merge branch 'MDL-82110-main' of https://github.com/andrewnicols/moodle 2024-08-21 17:43:11 +07:00
Andrew Nicols 4e4a6c6580 MDL-82110 core: Remove debugging for unmigrated hooks in unit tests 2024-08-20 20:28:50 +08:00
Huong Nguyen dca18ebca3 Merge branch 'MDL-81634-main' of https://github.com/andrewnicols/moodle 2024-08-20 09:30:44 +07:00
Ilya Tregubov 555d183cbe Merge branch 'MDL-82171-muc-sited' of https://github.com/brendanheywood/moodle 2024-08-05 11:18:26 +08:00
Shamim Rezaie 221d30fe56 Merge branch 'MDL-82384-main' of https://github.com/jwcatau/moodle 2024-08-03 23:55:44 +10:00
Andrew Nicols 024e36be17 MDL-81634 core: Fix all implicitly defined nullables
Note: This does not impact third-party libraries.
2024-08-02 14:11:12 +08:00
James Williams 1889d7c494 MDL-82384 core: Alter logic to only purge muc OR course caches. 2024-08-01 18:56:18 +10:00
Huong Nguyen 610450c944 Merge branch 'MDL-80064-main' of https://github.com/meirzamoodle/moodle 2024-08-01 10:41:23 +07:00
meirzamoodle 699daafc64 MDL-64148 core: Make email greetings consistent
Some email body strings use first names as greetings,
some use full names, and some do not.

Using the first name for greeting makes it consistent and
a bit more "personal".
2024-07-30 22:40:47 +07:00
meirzamoodle 020259dbad MDL-64148 core: Deprecate reset_password_and_mail 2024-07-30 22:40:47 +07:00
meirzamoodle 2bd774d432 MDL-80064 authentication: password can be null
The Open ID Connect plugin uses null for the password,
which makes the internal password update fail to proceed.
Allowing null resolved the problem.

As a note, there is a potential issue if the authentication method has
a false return for the prevent_local_password because it will trigger
the hash_internal_user_password() where  the $password can not be null.
Since this only addresses the oauth2 issue, we should ignore it.
2024-07-29 15:49:47 +07:00
Paul Holden 9d621f5da1 MDL-82066 user: define methods for handling default homepage URLs.
Per the previous commit, default homepage configuration (set either
for the site or as a user preference) can now be extended by third
party hook callbacks, in which case a URL is stored.
2024-07-10 17:12:31 +01:00
Brendan Heywood 7327fdd40e MDL-82171 core: Rewarm bootstrap.php after a cache purge 2024-07-09 10:46:37 +10:00
Ilya Tregubov f0d194089f Merge branch 'MDL-81647-main' of https://github.com/andrewnicols/moodle 2024-07-02 09:26:13 +08:00
Paul Holden 751aa2efc3 MDL-81920 core: move emoticon manager class into autoload namespace. 2024-06-26 14:23:30 +01:00