6343 Commits

Author SHA1 Message Date
Simey Lameze
6b4946e0a8 MDL-82651 behat: remove unnecessary steps 2024-08-28 13:10:20 +08:00
Paul Holden
1a7ec4cf3d
MDL-79717 phpunit: ensure unique data provider keys in tests.
Duplicate data provider keys were overwriting and/or duplicating
one another, leading to some cases being skipped.

Other "duplicate array key" errors were picked up by `phpcs` in
this dragnet across all tests, which have also been fixed.
2024-07-10 14:09:00 +01:00
Angelia Dela Cruz
39cb2a03e5 MDL-81332 core_course: Behat test for grade and activity reports display 2024-06-11 16:57:53 +08:00
meirzamoodle
137d311fd1
MDL-81890 course: Fix sesskey checks 2024-06-06 22:23:25 +08:00
Simey Lameze
72c3038925 MDL-79702 behat: improvements and fixes to new tests
This commit adds the handling of tags as string separated by comma
to forum and glossary modules.
2024-05-06 20:02:57 +08:00
Angelia Dela Cruz
d393030c58 MDL-79702 core_tag: Behat for activity tags deletion during course reset 2024-05-06 20:02:57 +08:00
Angelia Dela Cruz
f2e48b39f6 MDL-77445 Behat: Coverage for activity chooser navigation 2024-04-24 18:09:22 +08:00
Huong Nguyen
037a7d5d6c
MDL-74977 core_courseformat: add expanded section update actions
This also fix the Random "Course content preferences" Behat failure
2024-04-10 18:12:45 +07:00
Simey Lameze
50ae525be9 MDL-81156 behat: coverage for force course language 2024-03-14 09:04:49 +08:00
Jun Pataleta
6df3213c9b
Merge branch 'MDL-79003-401' of https://github.com/andrewnicols/moodle into MOODLE_401_STABLE 2024-02-21 10:35:31 +08:00
Simey Lameze
8815ecb3fd MDL-80613 behat: convert manual completion steps to use generators 2024-02-15 11:02:57 +08:00
Ruslan Kabalin
846a8b6568
MDL-79003 eslint: Address issues reported by eslint
This commit is a backport of MDL-74301 which should have been backported
at the time.
2024-01-30 14:03:05 +08:00
Ferran Recio
5661849a02 MDL-79029 behat: optimize behat tests
Replace some add activity to section steps to the new
add activity to course section so they are faster and do
not require javascript.
2024-01-22 11:23:44 +01:00
Ferran Recio
66e8ce9976 MDL-79029 behat: new add activity steps 2024-01-22 11:23:44 +01:00
Huong Nguyen
3ffafd9232 Merge branch 'MDL-79061-401-2' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE 2023-12-07 09:53:18 +07:00
Huong Nguyen
7c82e1206d Merge branch 'MDL-68652-401-1' of https://github.com/ilyatregubov/moodle into MOODLE_401_STABLE 2023-12-07 09:33:33 +07:00
Jun Pataleta
3e4c1c959f
Merge branch 'MDL-80079-401' of https://github.com/andrewnicols/moodle into MOODLE_401_STABLE 2023-12-06 21:57:54 +08:00
Ilya Tregubov
13c201fbc7 MDL-68652 mod_forum: Only include gradable users in grading 2023-12-06 12:47:29 +08:00
Jun Pataleta
b9fd956e73
MDL-79061 course: Create a sr-only mutations logger
* Create SRLogger that extends from the default Logger class. This
logger outputs the feedback to a sr-only ARIA live region to allow
screen readers to announce the feedback from mutations.
* Update the course editor to use the SRLogger.
2023-12-06 11:54:11 +08:00
Sara Arjona
fbdd721f0b
Merge branch 'MDL-80015-401' of https://github.com/roland04/moodle into MOODLE_401_STABLE 2023-12-05 15:51:40 +01:00
Ferran Recio
771f183646
MDL-79061 core: Mechanism for logging mutation feedbacks
* Create a mechanism for logging mutation feedbacks.
* The mutation feedbacks are displayed as a toast by default.
* Apply this logging mechanism on the course homepage to provide
feedback for the results of actions performed on course modules and
course sections.
2023-12-05 11:19:30 +08:00
David Mudrák
b16e808764 MDL-80221 lang: Use fixed strings in the tests, too 2023-12-01 06:23:33 +01:00
Mikel Martín
bde37edf3c MDL-80015 course: Fix category 'More' dropdown alignment
Co-authored-by: Stephen Sharpe <stephen.sharpe@synergy-learning.com>
2023-11-21 14:15:45 +01:00
Sara Arjona
246ad70ba9
Merge branch 'MDL-76937-401' of https://github.com/laurentdavid/moodle into MOODLE_401_STABLE 2023-11-15 16:34:21 +01:00
Andrew Nicols
ca345f8853
MDL-80079 core: Correct incorrect arg to format_text::$options 2023-11-15 09:59:55 +08:00
Andrew Nicols
61b5850a8c
MDL-80079 core: Correct incorrect arg to format_string::$options 2023-11-14 22:50:36 +08:00
SergioComeron
bce9cfdfd5 MDL-79648 core_course: 29 October repeating day 2023-11-13 18:35:44 +01:00
Laurent David
711a9c0df5 MDL-76937 core_course: Delete button can be used twice
* Disable the Delete button in the confirmation dialog once
clicked so we avoid running the process twice by mistake.
2023-11-09 09:25:40 +01:00
Sara Arjona
4018e95a55
Merge branch 'MDL-79781-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-11-08 17:20:15 +01:00
Ilya Tregubov
e0d1d8e469
Merge branch 'MDL-79615_401_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_401_STABLE 2023-11-08 10:44:27 +08:00
Huong Nguyen
0562c4d552 Merge branch 'MDL-79617_401_STABLE' of https://github.com/marxjohnson/moodle into MOODLE_401_STABLE 2023-11-02 09:04:02 +07:00
Mark Johnson
ef964137ce MDL-79615 course: Improve efficency of cache rebuilds
When bulk-updating course module visibility, set_coursemodule_visibily
was triggering a partial cache purge and rebuild for each course module.
This potentially led to 2 cache sets each requiring a lock to be
acquired and released per course module, plus any other cache updates
for other changes to the course in the same request.

This adds a new $rebuildcache paramter to the
set_coursemodule_visibilty, which is true by default to retain the
existing behaviour. If set false, it will skip doing the partial purge
and rebuild for that course module, and it is up to the calling code to
ensure the cache is updated as requried.

To assist with this, there is a new
course_modinfo::purge_course_module_cache_multiple() method, which
allows multiple course modules to be purged from the cache in a single
cache set.
2023-10-27 10:52:09 +01:00
Paul Holden
512670fe94
MDL-79781 course: detect invalid creator role for pending courses. 2023-10-26 13:18:41 +01:00
Ferran Recio
7d158f18d9 MDL-79194 core_courseformat: optimize section reload
* When reloading a section, we also forced the reloading of
course modules, resulting in doing the same work twice (once for
the section reload and once for the course module reload)
* Debounce the reloading process so prevent unwanted duplicate
reloads
2023-10-26 12:37:00 +02:00
Laurent David
38708efb50 MDL-79194 core_course: Refresh modules menus with section changes
* Whenever a section is hidden, we need to refresh all contextual (hamburger)
menus of each course modules.
2023-10-24 15:11:17 +02:00
Mark Johnson
fa23ae702c MDL-79617 repository_upload: Close session early in upload process 2023-10-23 15:32:58 +01:00
Huong Nguyen
e2452a4b3c MDL-66730 core_course: Improve permission check for category moving
Co-authored-by: Erica Bithell <egb10@cam.ac.uk>
2023-10-04 02:10:16 +02:00
Huong Nguyen
f0c0dbbb06
Merge branch 'MDL-75329-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-28 09:36:49 +07:00
Ilya Tregubov
4f8a492374
Merge branch 'MDL-77708-401' of https://github.com/sarjona/moodle into MOODLE_401_STABLE 2023-09-27 09:11:38 +08:00
Paul Holden
0195ecbf78
MDL-75329 course: defensive counting of course sections.
Avoids errors due to pre-existing integrity issues with course
data, where the absence entirely of section data would result in
PHP errors.
2023-09-26 12:18:39 +01:00
Sara Arjona
54d446ce43
MDL-77708 docs: Update references from docs.moodle.org/dev 2023-09-26 10:57:33 +02:00
Simey Lameze
3b6acb99bd MDL-75928 format_week: improve get_section_dates one week calc 2023-09-22 08:48:37 +08:00
Ilya Tregubov
8a72397e0a
Merge branch 'MDL-79195-401' of https://github.com/andelacruz/moodle into MOODLE_401_STABLE 2023-09-14 09:37:53 +08:00
Ilya Tregubov
f154d35e13
Merge branch 'MDL-78806-401' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE 2023-09-13 10:55:47 +08:00
Angelia Dela Cruz
5d23cfe21f MDL-79195 core_course: Activity and resource description display behat 2023-09-12 12:20:49 +08:00
Jun Pataleta
49393a1608
MDL-78806 core: Remove redundant site name
MDL-78806 core: Remove redundant site name on page titles

* With the site name now being appended to the page titles, there
is no need to manually append the page titles.
2023-09-09 08:56:50 +08:00
Jun Pataleta
6e0210764a
MDL-79048 course: Add editing versions of course view page titles
* Create 'editing' versions of the coursetitle and coursesectiontitle
lang strings used for the page title of the course homepage and use
these when editing mode is turned on to provide immediate information
to users, especially screen reader users, the current state of the
course homepage.
2023-09-08 21:58:45 +08:00
Andrew Nicols
48d0cf6dd9
Merge branch 'MDL-79060-401' of https://github.com/junpataleta/moodle into MOODLE_401_STABLE 2023-09-05 11:23:34 +08:00
Jun Pataleta
68b1a94a2e
MDL-79060 course: Use course name for the course image link 2023-09-05 11:10:59 +08:00
Andrew Nicols
d3bb9121fd
Merge branch 'MDL-79191-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE 2023-09-05 10:33:40 +08:00