5332 Commits

Author SHA1 Message Date
Mikel Martín
f179890ad5 MDL-75671 theme_boost: Refactor text direction classes for BS5
- Add SCSS code for text direction utility classes to the Boostrap 5 bridge SCSS file
- Replace all occurrences in the codebase (text-left > text-start, text-sm-right > text-sm-end, ...)
2024-08-09 07:40:17 +02:00
Mikel Martín
0a03018116 MDL-75671 theme_boost: Refactor spacing classes for BS5
- Add SCSS code for spacing utility classes to the Boostrap 5 bridge SCSS file
- Replace all occurrences in the codebase (pr-1 > pe-1, ml-auto > ms-auto, ml-sm-3 > ms-sm-3, ...)
2024-08-09 07:40:17 +02:00
Jun Pataleta
6d1816797c
Merge branch 'MDL-82599-main-enfix' of https://github.com/mudrd8mz/moodle 2024-08-09 11:20:14 +08:00
Huong Nguyen
ad40c27bd9
Merge branch 'MDL-82592' of https://github.com/timhunt/moodle 2024-08-08 09:01:53 +07:00
Jun Pataleta
f41300bce0
Merge branch 'MDL-77784' of https://github.com/paulholden/moodle 2024-08-08 09:56:21 +08:00
Paul Holden
e618178326
MDL-82633 mod_quiz: filter user visible overrides in external methods. 2024-08-07 16:08:00 +08:00
Paul Holden
b44452b0ac
MDL-82633 mod_quiz: re-factor visibility check for overrides. 2024-08-07 16:07:59 +08:00
Jun Pataleta
fde872dd2e
Merge branch 'MDL-82587-main' of https://github.com/cameron1729/moodle 2024-08-05 15:17:41 +08:00
David Mudrák
7af4e8816f MDL-82599 lang: Use the fixed strings in tests, too 2024-08-02 14:57:43 +02:00
Helen Foster
c5b3abf9f5 MDL-82599 lang: Import fixed English strings (en_fix) 2024-08-02 14:57:43 +02:00
Cameron Ball
34785bcec8 MDL-82587 mod_quiz: Add slot version updated event 2024-08-01 23:25:45 +08:00
Paul Holden
8c76fceddc
MDL-77784 quiz_grading: editor agnostic Behat scenario steps. 2024-08-01 14:17:07 +01:00
Jun Pataleta
70abac7f27
Merge branch 'MDL-82286-main' of https://github.com/daledavies/moodle 2024-08-01 09:47:27 +08:00
Sara Arjona
db70ef1d1b
Merge branch 'MDL-82596' of https://github.com/paulholden/moodle 2024-07-31 16:45:59 +02:00
Dale Davies
70b84a0db1 MDL-82286 quiz_accessrule: Add SEB config test for floating point number
This tests several variations of SEB config files, to ensure Moodle
is able to parse them and generate a config key hash that matches
what SEB expects.

Additional values have been added to the unencrypted_win_233.seb
config file to cover the existence of floating point values,
ensuring they are serialized correctly. The config hash value
has been updated in real_ck_hash_provider to reflect the change.

Also added coverage information to the test case class docblock.
2024-07-31 11:12:09 +01:00
Jun Pataleta
63193afa83
Merge branch 'MDL-82187-single-button' of https://github.com/djarran/moodle 2024-07-31 17:21:49 +08:00
Paul Holden
794115abdf
MDL-82596 behat: tidy up existing usage of private files generator.
Filename is no longer required (since 83db25c330), given it never
did anything so can be removed. Requiring the "Private files" block
also isn't necessary since original switch to generator methods.
2024-07-26 18:32:27 +01:00
Tim Hunt
49e09cdbfe MDL-82592 quiz grades: 'setup for sections' handling of descriptions 2024-07-26 11:44:10 +01:00
Jun Pataleta
cd7f94612c
Merge branch 'MDL-82373-main' of https://github.com/andrewnicols/moodle 2024-07-25 11:31:53 +08:00
djarrancotleanu
183af158b7 MDL-82187 core: Add default type for single button in template 2024-07-22 07:04:09 +10:00
Andrew Nicols
9251a72e53
MDL-82373 question: Make window larger in behat tests
I would suggest that this is a stop gap to solve some failing tests. We
really need to look at whether we can improve the usability of this
interface on smaller displays as a longer-term fix.
2024-07-17 09:28:35 +08:00
Andrew Nicols
57cabed4bb
MDL-82373 behat: Stop calling ensure_node_is_visible before click
W3C WebDriver Element::Click, Element::Clear, and Element::SendKeys all
state that the WebDriver implementation (chromedriver, geckodriver,
edgedriver) should scroll the element into view if it is not already
visible.

It is wrong for us to check if the element is visible or not before
calling these as it may not be but will during the click/clear/type
event.
2024-07-17 09:28:34 +08:00
Ilya Tregubov
caa72b3595 Merge branch 'MDL-82282' of https://github.com/paulholden/moodle 2024-07-16 09:26:01 +08:00
Paul Holden
7d030bba77
MDL-73662 mod_quiz: fix initialization arguments to close button.
Co-authored-by: Sergio Rabellino <rabellino@di.unito.it>
2024-07-12 13:18:07 +01:00
Tim Hunt
48eec50590 MDL-82401 quiz: editing modals must be removed on close 2024-07-05 16:59:55 +01:00
Paul Holden
23eee37e81
MDL-82282 question: consider only editable flags in JS module. 2024-07-04 10:19:22 +01:00
Jun Pataleta
b916a3b055
Merge branch 'MDL-82364-main' of https://github.com/HuongNV13/moodle 2024-07-04 11:40:30 +08:00
Huong Nguyen
4abc679c8b
MDL-82364 mod_quiz: Fix random failures PHPUnit test
- Fix Clock API is not used correctly. We need to make sure
 not to reset the DI system halfway through a test.
 - Switched to use Message sink to speed up the test, no need
 to query the DB to verify the result anymore.
2024-07-04 10:25:29 +07:00
Sara Arjona
c9fa646328
Merge branch 'MDL-82100-master' of https://github.com/danghieu1407/moodle 2024-07-03 17:14:09 +02:00
Sara Arjona
89dcf5066b
Merge branch 'MDL-74251-main' of https://github.com/lucaboesch/moodle 2024-07-03 09:35:56 +02:00
Hieu Nguyen Dang
f06a670a64 MDL-82100 Quiz\report: Show customised question numbers 2024-07-03 13:47:27 +07:00
Huong Nguyen
807f75b065
Merge branch 'MDL-79758' of https://github.com/timhunt/moodle 2024-07-01 14:24:56 +07:00
Huong Nguyen
1fcdc69b09
Merge branch 'MDL-79796' of https://github.com/AnupamaSarjoshi/moodle 2024-07-01 14:09:09 +07:00
Adrian Perez
e1353c7649 MDL-74251 core: Remove old icon helper classes 2024-06-27 18:28:05 +02:00
Stephan Robotta
f736db9777 MDL-79758 qbank: add filter in pagination links
Contains some minor tweaks by Tim Hunt <T.J.Hunt@open.ac.uk>.
2024-06-27 09:21:23 +01:00
Huong Nguyen
0d14b122eb
Merge branch 'MDL-81818-main' of https://github.com/roland04/moodle 2024-06-25 09:26:29 +07:00
Jun Pataleta
5e976886c7
MDL-79718 mod_quiz: Remove unnecessary semicolon in SQL statement 2024-06-24 17:12:47 +08:00
David Woloszyn
ee8a16eccf MDL-79718 mod_quiz: Send notifications for approaching open dates 2024-06-24 10:53:48 +10:00
Huong Nguyen
ebae7fbae4
Merge branch 'MDL-81523' of https://github.com/stronk7/moodle 2024-06-19 09:52:10 +07:00
Huong Nguyen
58dbb96ce5
Merge branch 'MDL-82148' of https://github.com/stronk7/moodle 2024-06-18 16:27:22 +07:00
Eloy Lafuente (stronk7)
adb4a5aade
MDL-82148 phpunit: Remove all cases of multiple @coversDefaultClass
Only one by class is allowed (to be used as shortcut exclusively)
2024-06-15 21:43:31 +02:00
DangHieu1407
02cd2808c8 MDL-79546 Quiz: Allow regrade of selected question
Co-authored-by: Tim Hunt <T.J.Hunt@open.ac.uk>
2024-06-14 20:29:23 +01: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
Anupama Sarjoshi
1945ad1d36 MDL-79796 quiz: Preview icon should be visible in question bank pop-up 2024-06-14 11:19:19 +01:00
Jun Pataleta
f29d66d3db
Merge branch 'MDL-82178' of https://github.com/timhunt/moodle 2024-06-13 12:00:28 +08:00
Tim Hunt
92aa1579f9 MDL-82178 quiz graded notification: fix capability check
Also improve the scheduled task logging
2024-06-12 12:34:24 +01:00
Huong Nguyen
ad58d2e306
Merge branch 'MDL-82001' of https://github.com/paulholden/moodle 2024-06-12 09:01:18 +07: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