113812 Commits

Author SHA1 Message Date
Laurent David
428221829d MDL-80638 lib: Update WebAuthn to 2.1.1 2024-04-09 15:12:04 +02:00
Laurent David
aea57c9f1e MDL-80633 lib: Adjust build.sh to new version
* Repository beautifier-web/js-beautify has moved to beautifier/js-beautify
* Display version for codemirror and beautify so to easily add them in thirdpartylibs.xml
2024-04-09 15:11:31 +02:00
Laurent David
59e63c2081 MDL-81327 report_loglive: Apply the same fixes to loglive
* Additional fix: take into account selected group (filter)
2024-04-09 15:10:37 +02:00
Andrew Nicols
a1ee9cdbdb MDL-81327 report_log: Make group filtering logstore agnostic
The original implementation of group filtering introduced in MDL-80565
assumed that the log table existed in Moodle's own database. This is not
the case of the database logstore, or any similar logstore implemetning
the database \core\log\sql_reader interface.

Furthermore this check was also applying the SQL when the user had the
`accessallgroups` capability, or when the course was not in SEPARATE
groups mode (no groupmode and/or visible groups).

Co-authored: Laurent David <laurent.david@moodle.com>
2024-04-09 15:10:37 +02:00
Laurent David
b418eff39d MDL-81327 report_log: Fix col_fullusername
* Avoid calling get_user_fullname too many times and
deal with the case that $event->userid is empty
2024-04-09 15:10:37 +02:00
Andrew Nicols
ab70c74a04 MDL-81327 core: Remove unnecessary table filter
The \Traversable interface does not define the `valid` method.
Furthermore, the `valid` method actually checks that there is a _next_
value, which requires the value already be fetched and waiting. This is
not the case for all Iterators. For example the CallbackFilterIterator
does not load the initial value until it is requested.

It is completely unnecessary to do this check anyway as an invalid
Iterator will just not return any values.
2024-04-09 15:10:37 +02:00
Mikel Martín
a4c611febb MDL-81307 core_courseformat: Add bulk styles for small devices 2024-04-09 13:23:01 +02:00
Paul Holden
4157d3672b
MDL-81472 mod_scorm: add missing library require to privacy class. 2024-04-09 11:36:52 +01:00
Sara Arjona
b621a7e4b3
on-demand release 4.4dev+ 2024-04-09 12:08:35 +02:00
Sara Arjona
3c5de1940b
Merge branch 'MDL-81456-main' of https://github.com/andrewnicols/moodle 2024-04-09 10:18:01 +02:00
Andrew Nicols
62c560dff2
MDL-81456 core: Correct namespace imports 2024-04-09 16:13:42 +08:00
Huong Nguyen
e168c1d089
MDL-81333 core_communication: Coding style fixups
- Remove superflous coverage information
 - Use language string for group room name format
2024-04-09 10:24:09 +07:00
Huong Nguyen
2ec967e12b
Merge branch 'MDL-81333-main' of https://github.com/davewoloszyn/moodle 2024-04-09 10:22:34 +07:00
Jake Dallimore
b34930bfe6
Merge branch 'MDL-81060-main-fix' of https://github.com/meirzamoodle/moodle 2024-04-09 10:13:25 +08:00
Ilya Tregubov
9c53b229f2 Merge branch 'MDL-81337-main-behat-fix' of https://github.com/lameze/moodle 2024-04-09 09:21:58 +08:00
Simey Lameze
27b14a64b5 MDL-81337 behat: use new step to open add activity dialogue 2024-04-09 09:05:01 +08:00
Pedro Jordao
942868a1a6 MDL-80195 forms: Keep dropdown menu open when tabbing into datepicker
When accessing a datepicker that is within a dropdown menu using the tab
key, the navigation sequence was changed since the datepicker code is
not rendered within the dropdown menu element, thus the dropdown was
closed as it was understood that we were not more inside it.
Furthermore, when exiting the datepicker by pressing tab, as the
dropdown was closed, the navigation jumped to the first element on the
page, which is the link to Skip to main content.

To resolve this, a validation was added that keeps the dropdown menu
open if the datepicker is open and accessed via the tab key.
2024-04-08 12:57:18 -03:00
Luca Bösch
775e4ae79f MDL-81451 qtype_missingtype: adopt icon size to other. 2024-04-08 17:26:41 +02:00
Sara Arjona
b3ef3ecb8d
Merge branch 'MDL-81298-main' of https://github.com/vithushau/moodle 2024-04-08 17:11:49 +02:00
Didier 'OdyX' Raboud
74a582c502 MDL-65381 grade_report: fix empty separate groups own grades access
On separate groups' courses, users without groups could not access
their own grade items.
2024-04-08 17:01:07 +02:00
Sara Arjona
411180831e
Merge branch 'MDL-78457' of https://github.com/paulholden/moodle 2024-04-08 16:54:38 +02:00
Sara Arjona
6b9667f2b8
Merge branch 'MDL-81449-main' of https://github.com/lucaboesch/moodle 2024-04-08 16:27:55 +02:00
Sara Arjona
099ceb42a0
Merge branch 'MDL-81456-main' of https://github.com/andrewnicols/moodle 2024-04-08 16:11:26 +02:00
Andrew Nicols
dc0cf1f273
MDL-81209 core: Unit test should not care about plugin details 2024-04-08 20:54:48 +08:00
Sara Arjona
44d3549a4b
Merge branch 'MDL-78096-main-alt' of https://github.com/meirzamoodle/moodle 2024-04-08 13:13:38 +02:00
Sara Arjona
1f76843f25
MDL-81337 behat: Fix behat failures
A tooltip has been added to the + icons in between activities with the
same text as the "Add an activity or resource" button.
The easiest way to fix the behat failures is to click this
button in empty sections (that way, the button is unique).
2024-04-08 12:44:40 +02:00
Sara Arjona
20475ec9a5
Merge branch 'MDL-81462' of https://github.com/stronk7/moodle 2024-04-08 11:34:20 +02:00
Marina Glancy
42c76b711a MDL-80820 lib/pear: phpdoc corrections 2024-04-08 10:13:39 +01:00
Marina Glancy
ef1759da74 MDL-80820 various: fix incorrect phpdocs 2024-04-08 10:13:10 +01:00
Huong Nguyen
21c0470541
Merge branch 'MDL-75037' of https://github.com/paulholden/moodle 2024-04-08 16:06:00 +07:00
Marina Glancy
33c528aaec MDL-81256 lib: fix rounding of thumbnail image size 2024-04-08 10:01:04 +01:00
James Williams
5e05ad570f MDL-80985 core: Add --courses argument to purge_caches.php 2024-04-08 18:34:13 +10:00
Huong Nguyen
53024802bc
Merge branch 'MDL-81446-main' of https://github.com/andrewnicols/moodle 2024-04-08 15:32:19 +07:00
Jake Dallimore
4c2b9f55f0
Merge branch 'MDL-81405-master' of https://github.com/jleyva/moodle 2024-04-08 15:35:00 +08:00
David Woloszyn
07ffa049a9 MDL-81391 core_communication: Check processor before using its methods 2024-04-08 17:08:05 +10:00
Eloy Lafuente (stronk7)
ed84111010
MDL-81462 phpunit: Add missing controller->destroy()
So we ensure that all file descriptors and backup temp structures
are properly closed and cleaned up.
2024-04-08 08:57:31 +02:00
Ilya Tregubov
84b1cbd474 Merge branch 'MDL-81409-main' of https://github.com/snake/moodle 2024-04-08 12:44:45 +08:00
Andrew Nicols
5ff5cf8203
MDL-81459 core: Correct order of legacy callback processing 2024-04-08 12:10:41 +08:00
Andrew Nicols
666e830b25
MDL-81459 core: Add missing legacy callback for header hook 2024-04-08 12:10:28 +08:00
Huong Nguyen
def6f6ee87
Merge branch 'MDL-81337-main' of https://github.com/lucaboesch/moodle 2024-04-08 10:38:06 +07:00
Huong Nguyen
28adb1e462
Merge branch 'MDL-80934-main' of https://github.com/laurentdavid/moodle 2024-04-08 09:12:57 +07:00
Jake Dallimore
e5fca6909e MDL-81060 core: fix incorrect userquota usage in zip_packer
This change reverts much of MDL-74641, removing the erroneous userquota
checks from zip_packer. Now, during extraction, the zip_packer will exit
with an error status when it encounters a file which is larger than its
advertised size, and NOT when it determines the size of the extracted
files have exceeded the userquota (which only applies to private files
and which was used incorrectly here). It also reverts changes to the
draftfiles_ajax.php file, restoring the original (pre-MDL-74641) error
handling.
2024-04-08 09:08:24 +07:00
Huong Nguyen
6b7d9b5e8a
Merge branch 'MDL-81402-main' of https://github.com/sh-csg/moodle 2024-04-08 09:02:40 +07:00
Andrew Nicols
4475617583
MDL-81456 core: Provide info about mocking hooks 2024-04-08 09:39:18 +08:00
Andrew Nicols
4a1752781f
MDL-81456 core: Coding style fixups 2024-04-08 09:36:22 +08:00
Andrew Nicols
3cc3511fa2
MDL-81456 core: Remove superflous coverage information 2024-04-08 09:36:22 +08:00
Andrew Nicols
71e8387a96
MDL-81456 core: Move hook fixtures to more appropriate location 2024-04-08 09:36:22 +08:00
Andrew Nicols
d7e1f2cef7
MDL-81456 core: Run tests modifying core_component in a separate process 2024-04-08 09:36:21 +08:00
Andrew Nicols
fa2e11105a
MDL-81456 core: Stop injecting test data into real hook manager 2024-04-08 09:36:21 +08:00
Andrew Nicols
2b49ad42f5
MDL-81456 core: Use DI for all hook access
Using DI for all hook access means that it becomes significantly easier
to mock hooks and callbacks for unit testing without fundamentally
altering the structure of the code purely for the purposes of unit
testing.
2024-04-08 09:35:41 +08:00