5310 Commits

Author SHA1 Message Date
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
David Mudrák
6a95cab8a3
MDL-81982 lang: Use fixed strings in tests, too 2024-06-05 10:25:29 +08:00
Helen Foster
7b8da78e01
MDL-81982 lang: Import fixed English strings (en_fix) 2024-06-05 10:25:28 +08:00
Paul Holden
7e206c92cf
MDL-82001 mod_quiz: respect user language in draft save message text. 2024-05-30 16:04:26 +01:00
Andrew Nicols
9745580bf4
Merge branch 'MDL-81282' of https://github.com/paulholden/moodle 2024-05-29 09:45:00 +08:00
Andrew Nicols
7fc931cdd8
Merge branch 'MDL-81698' of https://github.com/stronk7/moodle 2024-05-28 10:10:39 +08:00
Sara Arjona
47cd442dc9
MDL-81872 course: Fix behat errors after improving reset 2024-05-27 16:18:54 +02:00
Sara Arjona
cb72a08193
MDL-81872 course: Improve the summary page for reset 2024-05-27 16:18:54 +02:00
Sara Arjona
22cc975705
MDL-81872 course: Improve wording and workflow for reset 2024-05-27 16:18:54 +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
Paul Holden
c9d2e72943
MDL-81282 dml: replace occurrences of large integers with new constant.
Where calling code was previously using either the 32-bit limit, or a
value equal to SQL_INT_MAX inside a database read/write, instead use
our new constant.
2024-05-24 22:19:54 +01:00
Andrew Nicols
0964cd5b69
MDL-81125 core: Update upgrade.txt files to document new upgrade notes 2024-05-20 22:26:45 +08:00
Huong Nguyen
5011731db0
Merge branch 'MDL-51360-main-2' of https://github.com/ilyatregubov/moodle 2024-05-15 10:43:46 +07:00
Ilya Tregubov
f572bcae24 MDL-51360 mod_quiz: Don't do full course recalculation.
It seems it was never needed. We only need to know if just one
grade is overridden and its value.
2024-05-09 15:01:23 +08:00
Jun Pataleta
f14c2d35b6
MDL-81713 mod_quiz: Use accessible fieldset name for Behat test 2024-05-09 11:32:54 +08:00
Luca Bösch
f01625abdc
MDL-81713 mod_quiz: Display modal for 'Add random question' as mform. 2024-05-09 09:48:20 +08:00
Luca Bösch
697815159f
MDL-81713 mod_quiz: Add random question 'Parent category' help icon. 2024-05-09 09:48:02 +08:00
Huong Nguyen
409c66838e
Merge branch 'MDL-81587' of https://github.com/timhunt/moodle 2024-05-02 09:37:24 +07:00
Tim Hunt
78eeb7ea57 MDL-81587 quiz: fix layout of the add/edit random UI
Some of the removed CSS seems no longer relevant now that we have
customisation options for the layout of the question bank.
2024-04-30 10:43:34 +01:00
Paul Holden
f91dd598ef
MDL-80597 mod_quiz: simplify filtering by tags Behat assertions.
The initial filtering for category was redundant, as it's applied
by default. While present it also caused reproducible failures on
CI due to timing issues when trying to apply multiple filters.
2024-04-26 09:40:51 +01:00
Huong Nguyen
228c18b723
Merge branch 'MDL-80087_main' of https://github.com/PhilippImhof/moodle 2024-04-25 09:34:22 +07:00
Huong Nguyen
43ba641af7
Merge branch 'MDL-81627' of https://github.com/timhunt/moodle 2024-04-24 15:25:33 +07:00
Huong Nguyen
c77acbe423
Merge branch 'MDL-81301' of https://github.com/timhunt/moodle 2024-04-24 15:17:54 +07:00