Commit graph

116828 commits

Author SHA1 Message Date
Mark Johnson
bf4107159c
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.
2025-01-27 10:48:24 +00:00
Mark Johnson
2d56d31054
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.
2025-01-27 10:48:24 +00:00
Mark Johnson
8629645d34
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.
2025-01-27 10:48:23 +00:00
Sara Arjona
da2d0571ab
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.
2025-01-27 10:34:26 +01:00
raortegar
30d5527981 MDL-84320 editor_tiny: Update tiny version in thirdpartylbs.xml 2025-01-24 11:38:02 +01:00
Jun Pataleta
94ef115f5c
Merge branch 'MDL-83989-main' of https://github.com/clransom/moodle 2025-01-24 15:52:25 +08:00
Sara Arjona
33135d96ca
MDL-84049 badges: Remove default apiversion value
Remove the default value for the apiversion field in the
badge_external_backpack table.
2025-01-24 07:05:11 +01:00
Marty
fca896d4df
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.
2025-01-23 14:49:05 -05:00
Luca Bösch
ce00976762 MDL-84114 quiz: style the question version pulldown nicely. 2025-01-23 18:39:30 +01:00
Sara Arjona
bcf06a0484
weekly release 5.0dev 2025-01-23 17:34:50 +01:00
Sara Arjona
80e559acbf
NOBUG: Add upgrade notes 2025-01-23 17:34:50 +01:00
Sara Arjona
2a91b07430
Merge branch 'install_main' of https://git.in.moodle.com/amosbot/moodle-install 2025-01-23 17:34:42 +01:00
Katie Ransom
4586f57df5 MDL-83989 file upload: Filemanager breaks if you drop file outside of it 2025-01-23 16:31:11 +00:00
Huong Nguyen
bb72db2074
Merge branch 'MDL-82767-main-v03' of https://github.com/ferranrecio/moodle 2025-01-23 11:18:50 +07:00
Huong Nguyen
5fbd4b6555
Merge branch 'MDL-83869-main' of https://github.com/ferranrecio/moodle 2025-01-23 11:15:26 +07:00
Jun Pataleta
2beee5c41e
Merge branch 'MDL-83848-main-v2' of https://github.com/lameze/moodle into MDL-83848-main-test 2025-01-23 12:13:41 +08:00
Huong Nguyen
8ad2dc02a1
Merge branch 'MDL-83751' of https://github.com/paulholden/moodle 2025-01-23 10:48:16 +07:00
Huong Nguyen
2cc07fc0e1
Merge branch 'MDL-76566' of https://github.com/paulholden/moodle 2025-01-23 10:44:03 +07:00
Huong Nguyen
f0ac76efdb
MDL-82977 AI: Version bump 2025-01-23 09:43:14 +07:00
Huong Nguyen
40fd9b8d22
Merge branch 'main_MDL-82977' of https://github.com/mattporritt/moodle 2025-01-23 09:36:50 +07:00
Simey Lameze
5af7da720b 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.
2025-01-23 10:31:30 +08:00
Huong Nguyen
9c69c2c15d
Merge branch 'MDL-83763-main' of https://github.com/meirzamoodle/moodle 2025-01-23 09:24:02 +07:00
Huong Nguyen
b079c7c7f2
Merge branch 'MDL-81685_matrix_homeserver_name_main' of https://github.com/mark-webster-catalyst/moodle 2025-01-23 09:16:47 +07:00
Huong Nguyen
39220c7ac1
Merge branch 'MDL-84101-main' of https://github.com/lameze/moodle 2025-01-23 09:08:27 +07:00
Huong Nguyen
318f00580c
Merge branch 'MDL-84249-main' of https://github.com/lameze/moodle 2025-01-23 09:02:11 +07:00
Angelia Dela Cruz
e9fc27e6f6 MDL-84101 message: Behat test for managing notification options 2025-01-23 07:32:10 +08:00
Jun Pataleta
de6f1dfe4c
Merge branch 'MDL-83035-main' of https://github.com/lameze/moodle 2025-01-22 21:55:43 +08:00
ferran
53886acba6 MDL-83869 tool_componentlibrary: collapsable section page 2025-01-22 11:36:27 +01:00
ferran
46318e53d0 MDL-83869 output: new collapsable section component 2025-01-22 11:36:27 +01:00
ferran
d91b897549 MDL-82767 mod_qbank: fix delete action url 2025-01-22 10:35:23 +01:00
ferran
a438da66ca MDL-82767 core_courseformat: deprecate edits in mod.php and view.php
Most edit logic embed directly into course/view.php and course/mod.php
is now redirected to course/format/update.php. This commit add
deprecations messages to the old get params so it can be removed in
Moodle 6.0 for good.
2025-01-22 10:35:23 +01:00
ferran
fec5bf61f4 MDL-82767 core_courseformat: replace old urls by update urls
Now there is course/format/update.php all course actions menus must
point to the new one instead of keep pointing at the course/view.php and
course/mod.php.
2025-01-22 10:35:23 +01:00
ferran
03c530cc9b MDL-82767 core_courseformat: new update.php to execute actions in course
Since Moodle 4.0, most course edit actions can be executed using the
core_courseformat_course_edit webservice using only four parameters
(courseid, ids, targetsectionid and targetcmid). However, some actions
logic is still replicated and embed in course/view.php and
course/mod.php files since the beginning of time. Now the
course/update.php offers a non-ajax way of executing the same actions
and replace the old replicated ways of doing the same.
2025-01-22 10:35:23 +01:00
Huong Nguyen
13f10c22c4
Merge branch 'MDL-83339-main' of https://github.com/laurentdavid/moodle 2025-01-22 15:22:55 +07:00
Huong Nguyen
80684906c0
Merge branch 'MDL-81070-main' of https://github.com/StudiUM/moodle 2025-01-22 15:18:37 +07:00
Huong Nguyen
02221d8328
Merge branch 'MDL-78365' of https://github.com/pedrojordao/moodle 2025-01-22 15:10:55 +07:00
Huong Nguyen
1414b38e0f
Merge branch 'MDL-83850-master' of https://github.com/danghieu1407/moodle 2025-01-22 10:31:41 +07:00
Simey Lameze
750b7a57bc MDL-83035 behat: add missing attribute and final polishing
Signed-off-by: Simey Lameze <simey@moodle.com>
2025-01-22 10:06:53 +08:00
Matt Porritt
179b229a68 MDL-82977 AI: Provider instances
Update the OpenAI provider plugin to support provider instances.
2025-01-22 08:43:26 +11:00
Matt Porritt
d3858cc992 MDL-82977 AI: Provider instances
Update the Azure AI provider plugin to support provider instances.
2025-01-22 08:43:25 +11:00
Matt Porritt
368114c7cd MDL-82977 AI: Provider instances
Create provider instances for AI povider plugins.
Each provider plugin can now have multiple instances,
allowing for different configurations and models using
the same base provider.
2025-01-22 08:43:13 +11:00
Paul Holden
b8fbe89d98
MDL-84275 factor_totp: format site fullname for authenticator setup. 2025-01-21 21:32:54 +00:00
dragos5436
b054c7eaf5 MDL-83297 gradereport_grader: Make maxgradesperpage configurable
After deploying to our production environment, we noticed that for large gradebooks, having a max of 200,000 grades per
page was still too high and resulted in the gradebook page crashing or failing to load entirely. This commit will make
this value configurable (e.g. ->maxgradesperpage = 70000) rather than a constant so that other institutions can tune it.

Co-authored-by: Leon Stringer <leon.stringer@ucl.ac.uk>
2025-01-21 13:34:04 +00:00
Daniel Ziegenberg
08ca969323
MDL-83035 behat: deprecate admin presets behat steps
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2025-01-21 13:39:42 +01:00
Mark Webster
f6cb62dc2e
MDL-81685 communication_matrix: Adds Matrix homeserver name setting
Allows setting a homeserver name for instances where
usernames do not follow the pattern @user:homeserverurl
2025-01-21 12:38:06 +00:00
Huong Nguyen
2eb108ec40
MDL-84191 qbank_viewquestiontext: Fix Behat failures 2025-01-21 17:13:21 +07:00
Laurent David
95c780ac2f MDL-83339 course_format: Unify init params for course editor
* Replace all selectors based on ID (getElementById) by querySelector
* Replaces element-id by '#element-id' in the init method
2025-01-21 07:12:04 +01:00
meirzamoodle
86e0f4146f MDL-83763 core_my: Update docs path link on Dashboard and My Course 2025-01-21 11:29:49 +07:00
Huong Nguyen
a93ce36da5
Merge branch 'MDL-82944-main' of https://github.com/davewoloszyn/moodle 2025-01-21 11:23:18 +07:00
Huong Nguyen
30e8f22849
Merge branch 'MDL-84191_main' of https://github.com/cwarwicker/moodle 2025-01-21 10:38:32 +07:00