Commit graph

4574 commits

Author SHA1 Message Date
Sara Arjona
774ea7ca29
MDL-82210 output: Add support to FontAwesome families
The solid family was chosen by default when Font Awesome was upgraded
from 4 to 6, but FA6 has more families, like regular or brands.
This commit adds only the fa class to the icon when no other family
class is used.
2024-07-12 10:59:00 +02:00
ferranrecio
5617445d42 MDL-81888 tool_generator: add cleanup scenario tag
The tool_generator creates a testing scenario that can
execute all steps from behat_data_generators (with some
limitations) and admin settings. With the patch the scenario file can
incorporate a cleanup steps to be executed when the manual test is done.
2024-07-12 10:32:54 +02:00
Ilya Tregubov
1432af6a2e Merge branch 'MDL-81661-main' of https://github.com/sarjona/moodle 2024-07-11 09:54:05 +08:00
Sara Arjona
82f5cc6829
Merge branch 'MDL-81886-main' of https://github.com/ferranrecio/moodle 2024-07-10 15:20:59 +02:00
ferranrecio
32e090561b MDL-81886 tool_generator: allow scenario outlines in testing features
The tool_generator creates a testing scenario that can execute
all steps from behat_data_generators (with some limitations).
However, it cannot set any admin settings, which limits the
tool's ability to generate many real test scenarios.
2024-07-10 12:27:08 +02:00
Daniel Ureña
0f21f6e374 MDL-82234 tool_mobile: Return display default login form 2024-07-05 12:43:17 +02:00
Sara Arjona
445de6070f
MDL-81661 theme: Set Moodle files after Font Awesome upgrade 2024-07-05 10:23:55 +02:00
Huong Nguyen
ccd8089de9
Merge branch 'MDL-80907' of https://github.com/marinaglancy/moodle 2024-07-04 11:12:50 +07:00
Sara Arjona
89dcf5066b
Merge branch 'MDL-74251-main' of https://github.com/lucaboesch/moodle 2024-07-03 09:35:56 +02:00
Jun Pataleta
abaa3f4e34
Merge branch 'NOBUG-increase-expected-filesize' of https://github.com/lameze/moodle 2024-07-03 13:32:28 +08:00
lameze
cfa85f5e14 NOBUG: Increase file size to avoid random failures 2024-07-03 11:36:42 +08:00
Ilya Tregubov
8dc76d79e5 Merge branch 'main_MDL-82141' of https://github.com/mattporritt/moodle 2024-07-02 13:19:55 +08:00
Ilya Tregubov
a1a02b7146 Merge branch 'MDL-80123' of https://github.com/dravek/moodle 2024-07-02 10:20:01 +08:00
Sara Arjona
606a82b95f
Merge branch 'MDL-81885-main' of https://github.com/ferranrecio/moodle 2024-07-01 10:42:32 +02:00
Leon Stringer
7c70eb8e89 MDL-78776 database: Remove MyISAM migration
Remove functionality to migrate from MyISAM, and remove tests of whether
the existing database is using this.

Support for MyISAM was dropped in Moodle 2.9 (MDL-46064) so it should
not be possible for any subsequent Moodle version to be using this.

The only remaining MyISAM-aware code is the environment check via
check_database_storage_engine() to prevent installation/upgrade if the
database is set to use this.
2024-06-28 16:00:06 +01:00
David Carrillo
8223c1cea2
MDL-80123 admin: Convert admin preset report to Report Builder
- Admin presets list has been converted to use Report builder
- Added ability to filter by name in the report
- Added confirmation modal when deleting presets
- Added inplace editable to rename custom presets
2024-06-28 08:39:25 +02:00
Adrian Perez
e1353c7649 MDL-74251 core: Remove old icon helper classes 2024-06-27 18:28:05 +02:00
Huong Nguyen
0d14b122eb
Merge branch 'MDL-81818-main' of https://github.com/roland04/moodle 2024-06-25 09:26:29 +07:00
Matt Porritt
c6e0b0f346 MDL-82141 Administration: Use toggle for Plugin Management Table
Replace the "eye" icon for enabling and disabling plugins in tables
that use the Plugin Management Table (plugin_management_table) class
with the Font Awesome "toggle" icon.
2024-06-21 12:18:55 +10:00
Sara Arjona
f230cbb253
Merge branch 'MDL-81534' of https://github.com/paulholden/moodle 2024-06-19 16:49:49 +02:00
Eloy Lafuente (stronk7)
674497a12c
MDL-81523 phpunit: Add all missing setUp/tearDown parent calls
All setUp(), tearDown(), setUpBeforeClass() and tearDownAfterClass()
must, always, call to parent, to ensure that everything is properly
set and cleaned.

While in a lot of situations this is not needed (parents may not
have anything to run), with PHPUnit >= 10 this can become more
important because we are going to move the reset code from current
placement @ runBare() to setUp()/tearDown().

Note that all the changes performed in this commit have been detected
and fixed by moodle-cs (ParentSetUpTearDownSniffTest).
2024-06-14 16:04:57 +02:00
Mikel Martín
06b779d31d MDL-81818 theme_boost: Refactor ".no-gutters" usages for BS5
- Add .g-0 to the Boostratp 5 bridge SCSS file
- Replace .no-gutters occurrences with .g-0
2024-06-14 15:09:43 +02:00
Huong Nguyen
8de80c1b59
Merge branch 'MDL-82162-main' of https://github.com/sarjona/moodle 2024-06-13 09:13:48 +07:00
Huong Nguyen
96d29ef71b
Merge branch 'MDL-81522' of https://github.com/stronk7/moodle 2024-06-12 08:46:31 +07:00
Sara Arjona
215a887629
MDL-82162 tool: Switch to admin when executing runtestscenario by CLI
When the runtestscenario is executed via CLI, generators requiring a valid
$USER will fail.
This patch switches to the admin user, consistent with the approach used
in other simlar CLI scripts.
2024-06-11 13:25:44 +02:00
Eloy Lafuente (stronk7)
4f7631113c
MDL-81522 phpunit: Add missing void return type to all tests #2
This commit includes more changes, all them also adding the :void
return type to unit tests missing them.

The difference is that all these changes, while also detected
perfectly by the moodle.PHPUnit.TestReturnType sniff, were not
auto-fixed (like the previous commit ones), because all them
do include some "return" statement and, for safety, we don't
fix them.

All the cases have been visually inspected and confirmed that
the existing "return" statements always belong to anon
functions within the test body and not the test own return statement.
2024-06-11 11:55:08 +02:00
Eloy Lafuente (stronk7)
01148a0816
MDL-81522 phpunit: Add missing void return type to all tests
While this change is not 100% required now, it's good habit
and we are checking for it since Moodle 4.4.

All the changes in this commit have been applied automatically
using the moodle.PHPUnit.TestReturnType sniff and are, exclusively
adding the ": void" return types when missing.
2024-06-11 11:55:07 +02:00
Huong Nguyen
a8468e727d
MDL-68540 tool_usertours: Remove hideif workaround
We don't need to use the group element to use hideif
for text editor element anymore
2024-06-11 15:31:32 +07:00
Sara Arjona
95dfd66a8d
Merge branch 'MDL-81949' of https://github.com/paulholden/moodle 2024-06-10 16:46:32 +02:00
Amaia Anabitarte
267a474154 MDL-81676 core_course: Rename data-sectionid to data-sectionnum
Activity chooser is saving section number in a data attribute called
data-sectionid. We should use data-sectionnum instead to make it easier
to understand.
2024-06-10 15:42:09 +02:00
Paul Holden
da04fc522a
MDL-81949 tool_replace: prompt user for unrecognised CLI parameters. 2024-06-07 11:40:57 +01:00
meirzamoodle
db2f97a6f4
MDL-81890 tool_moodlenet: Fix sesskey checks 2024-06-06 22:02:35 +08:00
Jun Pataleta
e5d52aa315
Merge branch 'MDL-81982-main' of https://github.com/junpataleta/moodle 2024-06-05 10:30:44 +08:00
Helen Foster
7b8da78e01
MDL-81982 lang: Import fixed English strings (en_fix) 2024-06-05 10:25:28 +08:00
Juan Leyva
36e0395bb9
MDL-80959 tool_mobile: Use different user keys for QR and auto login 2024-06-04 10:32:48 +08:00
ferranrecio
4e9a8c6cd7 MDL-81885 tool_generator: add admin settings generator
The tool_generator creates a testing scenario that can
execute all steps from behat_data_generators (with some
limitations). However, it cannot set any admin settings,
which limits the tool's ability to generate many
real test scenarios.
2024-06-03 11:53:54 +02:00
Paul Holden
dd55e32618
MDL-81534 tool_generator: standardize user creation language string. 2024-06-03 09:43:09 +01:00
Huong Nguyen
a74583cbf0
MDL-80831 core: Add missing classname for privacy url 2024-05-30 17:13:59 +07:00
Jun Pataleta
14eac824ed
Merge branch 'MDL-80640_upgrade-guzzlehttp' of https://github.com/ziegenberg/moodle 2024-05-30 12:00:28 +08:00
Huong Nguyen
47216b5db5
Merge branch 'MDL-80973-master' of https://github.com/jleyva/moodle 2024-05-30 10:37:42 +07:00
Huong Nguyen
175e48bc08
Merge branch 'MDL-54105-master-default_grade_on_mod_assign' of https://github.com/praxisdigital/moodle 2024-05-28 15:21:39 +07:00
Frederik Milling Pytlick
cf7e43666b MDL-54105 mod_assign: Added default gradetype and gradescale
Added 2 new settings to mod_assign and made moodle core look for them to set the default grade values.
2024-05-28 09:10:20 +02:00
Andrew Nicols
8639237c62
Merge branch 'MDL-81822' of https://github.com/paulholden/moodle 2024-05-28 14:05:01 +08:00
Andrew Nicols
d74740e3a1
MDL-81897 tool_mobile: Coding style fix 2024-05-28 11:40:46 +08:00
Andrew Nicols
6aa05bb847
Merge branch 'MDL-81897-master' of https://github.com/jleyva/moodle 2024-05-28 11:27:35 +08:00
Andrew Nicols
7fc931cdd8
Merge branch 'MDL-81698' of https://github.com/stronk7/moodle 2024-05-28 10:10:39 +08:00
Andrew Nicols
fe3f6350d9
Merge branch 'MDL-78942' of https://github.com/paulholden/moodle 2024-05-28 09:00:35 +08:00
Juan Leyva
0e966da5e6 MDL-80973 tool_policy: Fix edge case 2024-05-27 17:19:53 +02:00
Eloy Lafuente (stronk7)
018e6e1fc8
MDL-81698 phpunit: Apply various fixes towards 1by1 execution
The changes here are heterogeneous:
- Include stuff that is not available (other test has included it).
  Sometimes local to a unit test, others in setupBeforeClass() or
  globally, ... depends on every case.
- Rename some tests (namespaces, test name, ...) towards getting it
  running.
- Amend small bits here and there.

Important note: I've left any "cosmetic" warning out from the
changes, only a few errors (like long array syntax) have been fixed.
2024-05-25 17:19:44 +02:00
Huong Nguyen
48bc966a59
Merge branch 'MDL-81914-main' of https://github.com/andrewnicols/moodle 2024-05-23 11:01:38 +07:00