Commit graph

4574 commits

Author SHA1 Message Date
David Woloszyn
4807a4dd5f MDL-43056 tool_uploadcourse: Add capability to upload courses from file
An entrypoint capability has been added that allows accessing the
upload tool. Further relevant capability checks are then performed
depending on the action being taken during the upload process.

Co-authored-by: Marina Glancy <marina@moodle.com>
2024-01-31 11:29:33 +11:00
Paul Holden
066cfa41a6
MDL-80485 tool_lp: consistent activity icon element styling. 2024-01-30 11:27:22 +00:00
Mark Johnson
2f351c5a8e
MDL-80736 libraries: Move AWS helper code from factor_sms to core\aws 2024-01-29 09:15:19 +00:00
Jun Pataleta
245edd9a11
Merge branch 'MDL-73008-master' of https://github.com/jleyva/moodle 2024-01-29 14:42:08 +08:00
Paul Holden
4efe3927d8
MDL-80727 tool_task: replace hard-coded adhoc task runner strings. 2024-01-25 22:42:25 +00:00
Paul Holden
87091e7b7c
MDL-80124 admin: prevent deletion of pre-installed preset definitions. 2024-01-25 21:51:41 +00:00
Huong Nguyen
ff96c6f05c Merge branch 'MDL-80224' of https://github.com/paulholden/moodle 2024-01-25 11:01:09 +07:00
Huong Nguyen
ccc9bf6b60 Merge branch 'MDL-76671-master' of https://github.com/jleyva/moodle 2024-01-25 10:23:56 +07:00
Sara Arjona
176736c6f9
Merge branch 'MDL-78888' of https://github.com/paulholden/moodle 2024-01-24 13:25:48 +01:00
Sara Arjona
eb03b6622d
Merge branch 'MDL-80396-main' of https://github.com/roland04/moodle 2024-01-24 12:29:50 +01:00
Sara Arjona
8b36abdb9d
Merge branch 'MDL-80259-main' of https://github.com/roland04/moodle 2024-01-24 09:16:12 +01:00
Paul Holden
c009abd938
MDL-80512 tool_task: absolute path to required library file. 2024-01-23 09:14:27 +00:00
Mikel Martín
a198884333 MDL-80259 theme_boost: Refactor badge helper classes for Bootstrap 5 2024-01-23 08:27:23 +01:00
Jun Pataleta
10744550e6
Merge branch 'MDL-79029-main' of https://github.com/ferranrecio/moodle 2024-01-23 09:26:30 +08:00
Sara Arjona
1643b2110e
Merge branch 'MDL-80418-main' of https://github.com/aanabit/moodle 2024-01-22 16:13:46 +01:00
Ferran Recio
f4adbc8a11 MDL-79029 behat: replace deprecated behat steps 2024-01-22 11:12:28 +01:00
Jun Pataleta
412db652c7
Merge branch 'MDL-80461-main' of https://github.com/sarjona/moodle 2024-01-22 16:17:21 +08:00
Sara Arjona
e6f75b59a3
MDL-80248 course: Display only content for the General section 2024-01-19 12:03:36 +01:00
Mikel Martín
d98c7eda66 MDL-80396 theme: Refactor media helper class dropped in BS5 2024-01-19 10:38:38 +01:00
Sara Arjona
2a708f985a
MDL-80461 courseformat: Use choicedropdown for the format setting
In MDL-79985 a new form element was created to display a new generic
dropdown with extra information like a description or an icon on each
option.

This commits replaces the select for the course format form element in
the Course settings page with this new component.
2024-01-19 09:37:42 +01:00
Sara Arjona
69ee5c3395
MDL-80461 courseformat: Fix tests after replacing topic/week 2024-01-19 08:53:18 +01:00
Andrew Nicols
d8775cf935
Merge branch 'MDL-80591' of https://github.com/stronk7/moodle 2024-01-18 10:56:13 +08:00
Paul Holden
accb66f905
MDL-78888 tool_uploaduser: case-insensitive email matching on upload. 2024-01-17 09:01:05 +00:00
Paul Holden
b2da42527a
MDL-78417 tool_uploaduser: handle empty default in custom menu field. 2024-01-17 08:55:48 +00:00
Huong Nguyen
95c2217ba6 Merge branch 'MDL-80260' of https://github.com/paulholden/moodle 2024-01-17 10:17:06 +07:00
Ilya Tregubov
75c58549e3 Merge branch 'MDL-69615-main' of https://github.com/HuongNV13/moodle 2024-01-16 10:56:27 +08:00
Ilya Tregubov
d3b8694114 Merge branch 'MDL-79076-master-2' of https://github.com/marinaglancy/moodle 2024-01-16 09:48:02 +08:00
Marina Glancy
e9abb3a5de MDL-79076 output: convert callback before_standard_html_head 2024-01-15 15:33:42 +00:00
Paul Holden
3b2019a3e3
MDL-29261 tool_uploaduser: warn user about invalid data values. 2024-01-15 15:14:56 +00:00
Juan Leyva
db13a26f74 MDL-76671 tool_mobile: Allow OAuth launches after accepting policies 2024-01-15 13:13:09 +01:00
Amaia Anabitarte
4e6d39f539 MDL-80418 core_course: Homogenize titles in modedit 2024-01-15 12:56:16 +01:00
Huong Nguyen
badf45d722 MDL-69615 privacy: Use task trait for unit tests 2024-01-15 11:18:36 +07:00
Eloy Lafuente (stronk7)
9f10626533
MDL-80591 phpunit: Coding style cleanup both CLI scripts
While the init.php was cleaned up not long ago, let's
re-review it (small detail only) and proceed to, also,
clean up the util.php one.

Note that both will raise an error about missing MOODLE_INTERNAL
check, but that's expected, they are CLI scripts, independent
from Moodle's bootstrap, so they don't have config.php required
either.
2024-01-13 18:46:45 +01:00
Eloy Lafuente (stronk7)
5f31b37e1d
MDL-80591 phpunit: delegate run to phpunit binary
Instead of manually including composer's auto-loading
stuff and then run PHPUnit\TextUI\Command::main(), now
we are using the PHPUnit "binary".

That way behaviour should be 100% the same than
running vendor/bin/phpunit (recommended instead of util.php --run).

Also, note that, for other util.php commands, we still need
composer's auto-loading to happen, so we have moved it immediately
after the --run command.

Finally, a few more file_exists() conditions have been added
to ensure that PHPUnit is properly installed. Redundant but...
2024-01-13 18:13:52 +01:00
Jun Pataleta
24c4e47788
Merge branch 'MDL-80526-master' of https://github.com/ScottVerbeek/moodle 2024-01-12 17:44:38 +08:00
ScottVerbeek
b364ace6c7 MDL-80526 tool_filetypes: Test required icons in test_get_file_icons
The test now checks for the required icons, without needing to specify a count.
Allowing developers to add custom icons to the folder pix/f/mycustomicon.svg without needing to alter any unit test.
2024-01-11 14:45:09 +10:00
Ilya Tregubov
8c8f98b244 Merge branch 'MDL-79608' of https://github.com/paulholden/moodle 2024-01-11 11:17:31 +08:00
Sara Arjona
7b74196dd8
MDL-80096 tool: Remove illegal whitespaces 2024-01-08 17:15:29 +01:00
Ferran Recio
b9f78ef45c MDL-80096 tool_generator: execute behat generators in current instance
This is a new feature in tool_generator to execute a feature file
containing only generator steps. This new tool can be used to prepared
testing scenarios for complex issues that requires manual testing.
2024-01-08 16:47:09 +01:00
Paul Holden
a9d0af8df2
MDL-79608 tool_task: link to adhoc task page from corresponding check. 2023-12-21 15:25:01 +00: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
bd3af64741 MDL-79128 adhoc_task: Added 'Never' status for ad-hoc task Next run
Co-authored-by: Stevani Andolo <stevani.andolo@moodle.com>
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
Paul Holden
012dd24a43
MDL-80260 tool_mfa: fix all factor report table alignment per auth. 2023-12-19 12:20:34 +00:00
Ferran Recio
02de5b79fd MDL-79985 output: prepare dropdown components for forms
Add new features to the dropdown components (dialog and status) needed
for using them in quick forms. Now the dialog dropdown have methods to
disable the dropdown button (to disable the field). The status dropdown
has one minor style bugfix and the selected item styles are now stored
as a data attribute.
2023-12-19 09:33:45 +01:00
Ilya Tregubov
6a300c0850 Merge branch 'MDL-79938-main' of https://github.com/sammarshallou/moodle 2023-12-14 08:49:47 +08:00
Ilya Tregubov
10a8e9536e MDL-78511 tool_mfa: Fix version for sms plugin. 2023-12-14 08:34:09 +08:00
sam marshall
c219e1224a MDL-79938 Behat: Add steps to support multiple tabs 2023-12-12 16:42:13 +00:00
Paul Holden
27ef49c277
MDL-80224 tool_uploaduser: better user defaults per site configuration.
Improve use of `core_user` type/default/choice definitions when setting
fields in the "Default values" form, used on upload.
2023-12-12 10:12:52 +00:00
raortegar
e894123a4d MDL-78511 tool_mfa: SMS factor include behat tests anf fix validation 2023-12-12 10:49:30 +01:00