33127 Commits

Author SHA1 Message Date
Jun Pataleta
902f9535b6
NOBUG: Add upgrade notes 2024-07-26 13:35:25 +08:00
Huong Nguyen
8af49acc2d
Merge branch 'MDL-82527' of https://github.com/paulholden/moodle 2024-07-25 10:48:24 +07:00
Huong Nguyen
4b57396c7b
Merge branch 'MDL-82530-spelling' of https://github.com/leonstr/moodle 2024-07-25 10:41:22 +07:00
Jun Pataleta
cd7f94612c
Merge branch 'MDL-82373-main' of https://github.com/andrewnicols/moodle 2024-07-25 11:31:53 +08:00
Jun Pataleta
a6499ea6cd
Merge branch 'MDL-77706-main' of https://github.com/andrewnicols/moodle 2024-07-25 11:02:52 +08:00
Huong Nguyen
9111372fb7
Merge branch 'MDL-82553-main' of https://github.com/junpataleta/moodle 2024-07-25 09:17:07 +07:00
Shamim Rezaie
0cda31bdd4 Merge branch 'MDL-82540-main' of https://github.com/junpataleta/moodle 2024-07-25 12:07:02 +10:00
Shamim Rezaie
60634d1aae Merge branch 'MDL-82551-main' of https://github.com/junpataleta/moodle 2024-07-25 11:52:30 +10:00
Huong Nguyen
3edbf5627c
Merge branch 'MDL-82554-main' of https://github.com/micaherne/moodle 2024-07-25 08:49:45 +07:00
Huong Nguyen
eb14ffa0b6
Merge branch 'MDL-82146-main' of https://github.com/aanabit/moodle 2024-07-24 12:04:23 +07:00
Huong Nguyen
f8654b55c6
Merge branch 'MDL-82528' of https://github.com/paulholden/moodle 2024-07-24 11:59:48 +07:00
Huong Nguyen
ef80d0d099
Merge branch 'MDL-70854-main' of https://github.com/junpataleta/moodle 2024-07-24 10:49:56 +07:00
Jun Pataleta
6c82a2e9d2
MDL-70854 core: Rewrite logic for determining whether to update progress
Rewriting, especially to prevent empty if-blocks.
2024-07-24 10:48:00 +08:00
Jun Pataleta
467fa44233
MDL-70854 core: Revert removal of conditions to update progress
The conditions for updating the progress in the progress bar were
mistakenly removed. We need to revert these to ensure proper operation
of the progress bar.
2024-07-24 10:48:00 +08:00
Jun Pataleta
bc5a65e444
Merge branch 'MDL-70854-main' of https://github.com/junpataleta/moodle 2024-07-23 17:59:30 +08:00
Jun Pataleta
42aca7aaf7
MDL-70854 core: Simplify querying of unconfirmed users
- Use $DB->count_records_select() and $DB->get_recordset_select()
instead of using full SQL queries.
- Other fixes:
  - Remove unused variable in progress_bar::update_raw()
  - poll_stored_progress tidy-ups:
    - Use validated parameter.
    - Add return types for the external methods.
2024-07-23 17:58:53 +08:00
Conn Warwicker
b92886ad59
MDL-70854 core: Add stored progress bars.
- Alters existing progress_bar class to support extension
    - Adds stored_progress_bar class as child of progress_bar
    - Adds webservice to poll stored progress
    - Updates database tables
    - Bumps version
    - Adds unit/behat tests
2024-07-23 17:58:53 +08:00
Michael Aherne
35cfdf4927 MDL-82554 question: Allow null createdby in question_has_capability_on. 2024-07-23 10:24:35 +01:00
Jun Pataleta
4cdd0459b4
Merge branch 'MDL-77167_remove-deprecation-layer-for-mdl-70990-yui-events' of https://github.com/ziegenberg/moodle 2024-07-23 10:36:57 +08:00
Jun Pataleta
0b9660a43f
MDL-82553 behat: Run accessibility tests using WCAG 2.2 success criteria 2024-07-22 14:36:10 +08:00
Jun Pataleta
dc12e44bd4
MDL-82551 core: Set welcome message heading to level 1 2024-07-22 14:20:37 +08:00
Ilya Tregubov
be60012bf9 Merge branch 'MDL-82499-main' of https://github.com/micaherne/moodle 2024-07-22 09:42:20 +08:00
Daniel Ziegenberg
c3df4078e8
MDL-77167 javascript: Remove deprecation layer for YUI Events
The deprecation layer was introduced with MDL-70990.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-07-19 17:51:45 +02:00
Paul Holden
c99c9c1b5a
MDL-82528 courseformat: switch to existing group action icon.
Use a version that already exists in our fontawesome mapping so it
can be consistently styled/overridden.
2024-07-19 12:54:13 +01:00
Sara Arjona
b2f66d477b
MDL-70983 badges: Remove OBv1.0 support
The only backpack implementing OBv1.0 was Mozilla Backpack. It closed
in 2019 and their badges were moved to https://backpack.openbadges.org/
by Badgr.
However, as Badgr is supporting OBv2.0 too, it makes no sense keep OBv1.0
implementation in Moodle: it has caused some issues and over-complicates
current code.
2024-07-19 10:39:38 +02:00
Jun Pataleta
9a8cc133d5
MDL-82540 core: Use an empty check for $CFG->debugdisplay 2024-07-19 16:24:49 +08:00
Amaia Anabitarte
ec050bbee7 MDL-82146 core_output: Add disabled parameter to select element 2024-07-19 08:38:12 +02:00
Ilya Tregubov
fdfdd02639 NOBUG: Add upgrade notes 2024-07-19 09:30:19 +08:00
Leon Stringer
617013e13c MDL-82530 core: Fix spelling 2024-07-18 14:49:48 +01:00
Paul Holden
83db25c330
MDL-82527 h5p: improve editor Behat scenarios for embedding content.
* Move the shared drag fixture out of the Atto plugin;
* Switch to using faster generators for populating private files;
* Clarify required fields for private files generator
2024-07-18 09:15:51 +01:00
lameze
d04a05b98f MDL-82287 phpunit: use the correct component 2024-07-18 13:53:17 +08:00
Ilya Tregubov
acbcb83a7c Merge branch 'MDL-82445-main' of https://github.com/andrewnicols/moodle 2024-07-18 11:37:15 +08:00
Andrew Nicols
89c5e94fee
MDL-82445 core: Create locale helper utility 2024-07-18 11:00:42 +08:00
Huong Nguyen
db5b60424b
Merge branch 'MDL-82287-main' of https://github.com/andrewnicols/moodle 2024-07-18 09:47:01 +07:00
Ilya Tregubov
00376925b2 Merge branch 'MDL-82444' of https://github.com/paulholden/moodle 2024-07-18 10:29:08 +08:00
Jun Pataleta
cf2073134a
Merge branch 'MDL-82066' of https://github.com/paulholden/moodle 2024-07-18 00:03:02 +08:00
Sara Arjona
fef180bc98
Merge branch 'MDL-82463' of https://github.com/paulholden/moodle 2024-07-17 17:11:19 +02:00
Paul Holden
0cf6f3a620 MDL-82499 question: test for invalid question in capability check. 2024-07-17 09:58:35 +01:00
Andrew Nicols
0b364eda7b
MDL-82373 contentbank: Pause in Behat before interacting with h5p
It seems that the loading of the h5p content upsets other interactions
with the page in Firefox as it loads. Unfortunately I haven't found a
reliable way to handle this with pendingJS yet.

This is the poor man's fix and we should find a better solution.
2024-07-17 09:28:35 +08:00
Andrew Nicols
78ccdc9939
MDL-82373 behat: Wait for alerts before accepting/dismissing them 2024-07-17 09:28:35 +08:00
Andrew Nicols
8bba968f7b
MDL-82373 core: Make CollapsibleRegion more tolerant to behat 2024-07-17 09:28:34 +08:00
Andrew Nicols
4033f08fa9
MDL-82373 behat: Stop killing the entire Behat run on driver error
If there's a driver error, for example from a step taking too long, then
this kills the entire Behat run and we have to start from scratch.

This change instead throws away the original connection and starts a new
one to try and continue the test.
2024-07-17 09:28:34 +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
Andrew Nicols
38a1bc022c
MDL-77706 atto_link: Work around Mozilla bug 1906559
This upstream bug prevents creation of an anchor with a hyperlink where
the content has a block-like display.

The workaround is to wrap the content in a span, set the display to
inline, call the `createLink` command on the span, move the content out
of the span, and then remove it.

This is only done for Firefox-based browsers.
2024-07-17 09:28:33 +08:00
Michael Aherne
5605d64389
MDL-82499 question: Fail if questionid does not exist. 2024-07-16 14:39:02 +01:00
Andrew Nicols
e16ff43cfd
MDL-77706 atto_link: Work around Mozilla bug 1906559
This upstream bug prevents creation of an anchor with a hyperlink where
the content has a block-like display.

The workaround is to wrap the content in a span, set the display to
inline, call the `createLink` command on the span, move the content out
of the span, and then remove it.

This is only done for Firefox-based browsers.
2024-07-16 15:37:24 +08:00
Sara Arjona
404ddae657
Merge branch 'MDL-81533-master' of https://github.com/danghieu1407/moodle 2024-07-16 09:23:08 +02:00
Sara Arjona
14f46e2f41
Merge branch 'MDL-81819-main' of https://github.com/roland04/moodle 2024-07-16 07:45:22 +02:00
Ilya Tregubov
7f63a6af7a Merge branch 'MDL-78293-master' of https://github.com/jleyva/moodle 2024-07-16 11:47:22 +08:00
Huong Nguyen
dd882716e4
Merge branch 'MDL-67554-master' of https://github.com/michael-milette/moodle 2024-07-16 09:36:27 +07:00