Ilya Tregubov
219510b7d9
Merge branch 'MDL-79527' of https://github.com/timhunt/moodle
2024-02-07 09:26:46 +08:00
Jun Pataleta
9406820aa1
Merge branch 'MDL-80693-main' of https://github.com/sammarshallou/moodle
2024-02-07 08:33:04 +08:00
Huong Nguyen
149dd7bfa9
MDL-80713 Unit Tests: Message sink improvement
...
- Added a new method called get_messages_by_component()
This method will help to retreive the redirected messages
of specific component only
- Added a new method called get_messages_by_component_and_type()
This method will help to retreive the redirected messages
of specific component and type only
2024-02-05 09:23:41 +07:00
Tim Hunt
049bff63bc
MDL-79527 questions: category tree loading handling bad data
...
It should always be the case that a question category and its parent
category belong to the same context. However, over the years, we have
observed that this becomes violated by some data in some Moodle sites.
(The suspicion is that this is a backup/restor bug of some sort which
has never been tracked down.)
Since this happens, we should make the code robust to it, which is what
this change does. It ensure that when loading child categories, we only
consider ones in the same context.
2024-02-02 11:26:57 +00:00
Jun Pataleta
b979257e88
Merge branch 'MDL-74775-main' of https://github.com/HuongNV13/moodle
2024-02-01 11:47:16 +08:00
Huong Nguyen
379e48c1fd
MDL-74775 adhoc_task: Do not clear the timecreated of failed tasks
2024-01-29 09:57:33 +07:00
Paul Holden
a767e0a78c
MDL-78311 core: fix host parameter type cleaning by IPv4 address.
2024-01-25 23:36:06 +00:00
Ilya Tregubov
32fe5a74ed
Merge branch 'MDL-80098' of https://github.com/paulholden/moodle
2024-01-25 10:20:05 +08:00
Ilya Tregubov
6de142b0a2
Merge branch 'MDL-80409' of https://github.com/paulholden/moodle
2024-01-25 09:49:59 +08:00
Sara Arjona
634e3594fe
Merge branch 'MDL-76723-main' of https://github.com/junpataleta/moodle
2024-01-24 13:12:15 +01:00
sam marshall
975daef935
MDL-80693 core_user: search() fails if no standard identify fields
2024-01-22 11:38:01 +00:00
Ferran Recio
a15f0a857b
MDL-79029 behat: new add activity steps
2024-01-22 11:12:28 +01:00
Andrew Nicols
746926220f
Merge branch 'MDL-80201-main' of https://github.com/junpataleta/moodle
2024-01-18 11:34:16 +08:00
Sara Arjona
ff519c1f65
Merge branch 'MDL-80187-main' of https://github.com/ferranrecio/moodle
2024-01-17 17:33:12 +01:00
Ferran Recio
557099a81e
MDL-80187 core_courseformat: create and delete section methods
2024-01-17 10:39:13 +01:00
Paul Holden
e187e13947
MDL-80098 core: correct arguments for invalidmoduleid exceptions.
...
The "invalid module ID" should be passed as the `$a` constructor
argument.
2024-01-17 08:58:49 +00:00
Jun Pataleta
06146da7cb
Merge branch 'MDL-80005-main-squashed' of https://github.com/andrewnicols/moodle
2024-01-17 16:52:33 +08:00
Andrew Nicols
b05fc42db9
MDL-80005 core: Emit deprecation notices for params
...
Most params are formally deprecated here. This was originally planned
for MDL-80042, but I realised that having an emit, and final param is a
very useful option going forward.
This patch also moves the is_deprecated(), and related methods to the
\core\deprecated attribute.
2024-01-17 12:19:45 +08:00
Andrew Nicols
d937e01550
MDL-80005 core: Move all param validation methods
2024-01-16 22:54:46 +08:00
Andrew Nicols
0d7d5d2e56
MDL-80005 core: Move clean_param and PARAM definitions
...
Move these into a new enum object which ensures that all content is
together.
2024-01-16 22:53:55 +08:00
Ilya Tregubov
12203eea69
Merge branch 'MDL-79130-master' of https://github.com/stevandoMoodle/moodle
2024-01-16 16:26:48 +08:00
Ilya Tregubov
75c58549e3
Merge branch 'MDL-69615-main' of https://github.com/HuongNV13/moodle
2024-01-16 10:56:27 +08:00
Huong Nguyen
028c0384a2
MDL-69615 core_backup: Send backup report email once the tasks are done
2024-01-16 09:32:19 +07:00
Marina Glancy
e9abb3a5de
MDL-79076 output: convert callback before_standard_html_head
2024-01-15 15:33:42 +00:00
Huong Nguyen
a75e325fdc
Merge branch 'MDL-80229-main' of https://github.com/davewoloszyn/moodle
2024-01-11 10:35:42 +07:00
Stevani Andolo
2425e07db3
MDL-79130 task_adhoc: Defined max retry constant
2024-01-10 10:17:42 +08:00
Paul Holden
b98fd96084
MDL-71733 behat: final removal of deprecated 400 step definitions.
2024-01-04 12:43:52 +00:00
Sara Arjona
58285c6afb
Merge branch 'MDL-80186-main' of https://github.com/ferranrecio/moodle
2024-01-02 13:27:27 +01:00
Paul Holden
f75881f263
MDL-80409 dataformat: final removal of deprecated download method.
2023-12-21 15:31:00 +00:00
Ferran Recio
837dc7e852
MDL-80186 course: adding new fields to delegate sections logic
2023-12-20 12:02:51 +01:00
Ilya Tregubov
e80f5e1f6e
Merge branch 'MDL-79128-main' of https://github.com/HuongNV13/moodle
2023-12-20 16:12:35 +08:00
Huong Nguyen
f13392d230
MDL-79128 adhoc_task: Implement failed ad-hoc task cleanup
...
Co-authored-by: Stevani Andolo <stevani.andolo@moodle.com >
2023-12-20 13:55:13 +07:00
Huong Nguyen
6c047c40b7
MDL-79128 adhoc_task: Only rerun the allowed task
...
Co-authored-by: Stevani Andolo <stevani.andolo@moodle.com >
2023-12-20 13:55:13 +07:00
Huong Nguyen
a44f14c79e
MDL-79128 adhoc_task: Implement no-retry task
...
Co-authored-by: Stevani Andolo <stevani.andolo@moodle.com >
Including in this commit:
- Added a new counter called attemptsavailable for ad-hoc task
- PHPUnit test for the new feature
2023-12-20 13:55:13 +07:00
Ilya Tregubov
1e83b9eba7
Merge branch 'MDL-79985-master' of https://github.com/ferranrecio/moodle
2023-12-20 09:06:08 +08:00
Ferran Recio
3344354641
MDL-79985 forms: add choicedropdown form element
...
The new quick form field uses a choice list to display a dropdown
component inside a form. Apart from que quick form code, the patch also
include a small improvement to the choicelist class to disable empty
values. This small patch is needed because the quickform field won't
allow empty values.
2023-12-19 09:43:35 +01:00
Jun Pataleta
9dcffb4a93
MDL-76723 core_external: Handle format properties properly
...
- If a text format property defines the 'optional' attribute as true,
then the $required parameter that
is passed to \core\external\exporter::get_format_structure() should be
VALUE_OPTIONAL.
- If a default value is provided for a format property,
\core\external\exporter::get_format_structure() should pass the default
value to the external_format_value constructor.
- Added validation for external_format_value for the default parameter.
Debugging will be shown in case an invalid default value is passed.
- Amended unit tests for better coverage.
2023-12-19 15:48:07 +08:00
Frédéric Massart
e0829fe58b
MDL-76723 core_external: Test invalid required value for format fields
2023-12-19 15:48:07 +08:00
Jun Pataleta
6f28538750
MDL-80201 core: Check for default format value for exporter::export()
2023-12-19 15:42:08 +08:00
Ilya Tregubov
6a300c0850
Merge branch 'MDL-79938-main' of https://github.com/sammarshallou/moodle
2023-12-14 08:49:47 +08:00
Sara Arjona
0c699e9e06
Merge branch 'MDL-74778-main' of https://github.com/roland04/moodle
2023-12-13 17:44:22 +01:00
sam marshall
c219e1224a
MDL-79938 Behat: Add steps to support multiple tabs
2023-12-12 16:42:13 +00:00
Jun Pataleta
030def7a46
Merge branch 'MDL-80079-master' of https://github.com/andrewnicols/moodle
2023-12-06 21:59:47 +08:00
Sara Arjona
7ac70d80b2
Merge branch 'MDL-55640-main' of https://github.com/sammarshallou/moodle
2023-12-05 16:01:49 +01:00
Mikel Martín
cc8d4b1358
MDL-74778 course: Final removal of format.js
...
The format.js files in format weeks and format topic were deprecated
since 4.0.
Removing those files and code occurrences.
2023-12-04 12:40:39 +01:00
Sara Arjona
33ffa3b6a2
Merge branch 'MDL-80185' of https://github.com/paulholden/moodle
2023-12-04 11:00:38 +01:00
sam marshall
2077ae03f8
MDL-55640 setuplib: test_localcachedir fails sporadically
2023-11-30 13:56:11 +00:00
Ilya Tregubov
37737a92d6
Merge branch 'MDL-79890-master' of https://github.com/andrewnicols/moodle
2023-11-30 10:44:35 +08:00
Ferran Recio
93cb5b090a
MDL-79999 course: save session cache by id
...
The course modinfo cache now stores sections no matter the section
number. This will be needed when delegated sections will be implemented.
2023-11-29 15:16:36 +01:00
David Woloszyn
09c1a4caa7
MDL-80229 core: Add tolerance to min_get_minimum_revision
2023-11-24 15:49:16 +11:00