6846 Commits

Author SHA1 Message Date
Jun Pataleta
a180dba314
MDL-81549 versions: bump all versions and requires near release 2024-04-17 00:03:29 +08:00
Andrew Nicols
613f933442
Merge branch 'MDL-80820' of https://github.com/marinaglancy/moodle 2024-04-15 10:42:22 +08:00
Jun Pataleta
3856addfdd
Merge branch 'MDL-67667-main' of https://github.com/andrewnicols/moodle 2024-04-12 12:41:39 +08:00
Andrew Nicols
6f1df841f7
MDL-67667 core: Deprecate and removal task blocking
There are inherent issues with task blocking which mean that it has
never worked properly. It is also very buggy and can lead to massive
performance issues with task processing.

It is almost impossible to deprecate this in a staged fashion because
various APIs use the methods and it is not possible to determine which
are API uses and which are other valid uses.

In reality there has been little-to-no uptake on the use of this feature
and it should just be removed.
2024-04-12 12:34:20 +08:00
Andrew Nicols
8acda4e048
Merge branch 'MDL-70829-main' of https://github.com/junpataleta/moodle 2024-04-12 11:58:32 +08:00
Jun Pataleta
91837d0553
MDL-70829 course: Mark up decorative images properly
* Decorative images should have an empty alt text and there's no need
to set a presentation role.
* Accessibility Behat tests added to cover the changes:
  - block_starredcourses uses the core_course/no-courses template
  - core_completion tests changes in core_course/activity instance and
    core_course/editdefaultcompletion
2024-04-12 10:42:10 +08:00
Shamim Rezaie
54561aacec Merge branch 'MDL-80203-main' of https://github.com/sarjona/moodle 2024-04-12 09:23:05 +10:00
Sara Arjona
c42ca73e11
Merge branch 'MDL-74977-main' of https://github.com/HuongNV13/moodle 2024-04-10 15:50:50 +02:00
Huong Nguyen
6d40f11806
MDL-74977 core_courseformat: add expanded section update actions
This also fix the Random "Course content preferences" Behat failure
2024-04-10 18:11:00 +07:00
Sara Arjona
e188a28add
MDL-80203 courseformat: Set action menu for delegated sections
Co-authored by: Ferran Recio <ferran@moodle.com>
2024-04-09 15:28:16 +02:00
Sara Arjona
dfb6a3ce16
MDL-80203 courseformat: Fix some typos and PHPDoc 2024-04-09 15:28:16 +02:00
Mikel Martín
a4c611febb MDL-81307 core_courseformat: Add bulk styles for small devices 2024-04-09 13:23:01 +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
Simey Lameze
27b14a64b5 MDL-81337 behat: use new step to open add activity dialogue 2024-04-09 09:05:01 +08:00
Sara Arjona
099ceb42a0
Merge branch 'MDL-81456-main' of https://github.com/andrewnicols/moodle 2024-04-08 16:11:26 +02:00
Marina Glancy
ef1759da74 MDL-80820 various: fix incorrect phpdocs 2024-04-08 10:13:10 +01: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
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
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
Luca Bösch
5af261d8f5 MDL-81337 core_courseformat: Add 'Add section' / 'Add content' tooltips. 2024-04-05 15:09:22 +02:00
Sara Arjona
0447aa9144
Merge branch 'MDL-4188-main-2' of https://github.com/HuongNV13/moodle 2024-04-04 17:40:57 +02:00
Sara Arjona
744c1c8a5a
Merge branch 'MDL-81359-main' of https://github.com/sammarshallou/moodle 2024-04-04 17:02:51 +02:00
Huong Nguyen
ad4f35f5a3
MDL-4188 core_course: Modify PHPUnit to use the new sink method 2024-04-04 20:13:47 +07:00
Stefan Hanauska
a1c8337800 MDL-81402 course: Add sectionnum to cm export 2024-04-04 12:59:53 +02:00
Sara Arjona
2f2eaf44c5
Merge branch 'MDL-80220-main' of https://github.com/laurentdavid/moodle 2024-04-04 12:47:53 +02:00
Laurent David
adb141ee12 MDL-80220 core_courseformat: Add tests for section visibility 2024-04-04 10:58:06 +02:00
Laurent David
27a681c6fe MDL-80220 core_courseformat: Add section badge template
* Adjust badge style to look similar to the one in the activity
* Add visibility selection dropdown to section
2024-04-04 10:58:06 +02:00
Laurent David
73bdbf6437 MDL-80934 core_courseformat: Expand section when selected
* Sections in the course content must be expanded when an item
from this section is selected in the course index
2024-04-04 10:41:22 +02:00
Ilya Tregubov
b47c590e10 Merge branch 'MDL-78370-main' of https://github.com/junpataleta/moodle 2024-04-04 14:17:15 +08:00
Ilya Tregubov
28e441aee1 Merge branch 'MDL-73975-main' of https://github.com/sarjona/moodle 2024-04-04 08:54:12 +08:00
Andrew Nicols
14ca464910
Merge branch 'MDL-80397-main' of https://github.com/roland04/moodle 2024-04-03 12:53:03 +08:00
Sara Arjona
c188ec80be
MDL-73975 course: Remove course_search_form template
The template core_course/course_search_form has been removed following
its cessation of use upon MDL-69454 in Moodle 3.11.
2024-04-02 16:47:24 +02:00
Sara Arjona
8efe31ee96
MDL-73975 course: Final deprecation methods in management_renderer
Final deprecation for management_heading() and course_search_form()
in core_course_management_renderer.
2024-04-02 16:42:31 +02:00
Ilya Tregubov
9572c9bfec Merge branch 'MDL-81335-main' of https://github.com/aanabit/moodle 2024-03-28 09:10:57 +08:00
Ilya Tregubov
9e55042be1 Merge branch 'MDL-80302-main' of https://github.com/aanabit/moodle 2024-03-28 08:58:35 +08:00
Amaia Anabitarte
4a3a32b675 MDL-80302 completion: Improve default completion error tracking
Co-authored-by: Sara Arjona <sara@moodle.com>
2024-03-27 16:11:50 +01:00
Mikel Martín
b28f3b7666 MDL-80397 theme: Refactor card-deck class dropped in BS5
- Refactor recentlyaccessedcourses, starredcourses and myovervew blocks
  removing card-deck helper class occurrences
- Refactor card-deck helper class occurrences with utility classes
2024-03-27 10:10:22 +01:00
Ilya Tregubov
24347e3309 Merge branch 'MDL-80828-main' of https://github.com/roland04/moodle 2024-03-27 11:14:02 +08:00
sam marshall
1fb9ff333f MDL-81359 core_courseformat: Availability 'Show more' unwelcome outing
If the availability restriction includes a link, then 'Show more'
always appeared even when the entire text is already shown.
2024-03-26 12:27:00 +00:00
Jun Pataleta
638de6002a
Merge branch 'MDL-80384-main' of https://github.com/junpataleta/moodle 2024-03-26 11:16:34 +08:00
Huong Nguyen
b283ca354e
Merge branch 'MDL-78551-main' of https://github.com/safatshahin/moodle 2024-03-26 10:08:06 +07:00
Jun Pataleta
da27f51bea
MDL-80384 courseformat: Set activity icon alt text on editing mode
From a warning using WAVE:
* The title attribute value for images that lack an alt attribute value
will be presented to screen reader users. However, providing image
content in the alt attribute typically provides better accessibility,
and should be used in most cases. The title attribute will generate a
mouse hover tooltip which may or may not be desired - this tooltip will
not be presented to touch screen or keyboard users.
2024-03-26 11:01:01 +08:00
Safat
99b7dc147f MDL-78551 core_course: Add hooks api for course updates 2024-03-26 13:53:39 +11:00
Daniel Ziegenberg
08027e408c
MDL-81281 phpunit: assertObjectHasAttribute is deprecated
To be integrated as part of MDL-81266

When running PHPUnit 9.6 we get the following deprecation warnings:
"assertObjectHasAttribute() is deprecated and will be removed in PHPUnit
10. Refactor your test to use assertObjectHasProperty() instead."

So we replace all instances of assertObjectHasAttribute with
assertObjectHasProperty.

PHPUnit justifies the change with:
> PHPUnit currently refers to "fields" (see above) as "attributes". This
> is (or will become) confusing considering the introduction of
> attributes in PHP 8 and their support in PHPUnit.  PHPUnit will be
> changed to use the term "property" instead of "attribute" where "field"
> is meant.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-03-25 16:21:45 +01:00
Daniel Ziegenberg
87267da39d
MDL-81281 phpunit: assertObjectNotHasAttribute is deprecated
To be integrated as part of MDL-81266

When running PHPUnit 9.6 we get the following deprecation warnings:
"assertObjectNotHasAttribute() is deprecated and will be removed in PHPUnit
10. Refactor your test to use assertObjectNotHasProperty() instead."

So we replace all instances of assertObjectNotHasAttribute with
assertObjectNotHasProperty.

PHPUnit justifies the change with:
> PHPUnit currently refers to "fields" (see above) as "attributes". This
> is (or will become) confusing considering the introduction of
> attributes in PHP 8 and their support in PHPUnit.  PHPUnit will be
> changed to use the term "property" instead of "attribute" where "field"
> is meant.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-03-25 16:21:07 +01:00
Mikel Martín
cd8a089d7a MDL-80828 core_courseformat: Modify availability subpanel visibility
In the activity action menu, show only the subpanel when the options are different
than show or hide. In those cases the show/hide option will be directly displayed
in the menu instead of a subpanel.

Co-authored-by: ferran@moodle.com
2024-03-25 13:54:42 +01:00
Laurent David
d983fee151 MDL-80384 core_courseformat: Remove activty icon link
* Remove the link over the image icon for an activity and use
the title attribute for the tooltip
2024-03-25 13:25:56 +01:00
Amaia Anabitarte
0ba23332db MDL-81335 core_course: Fix section page for 'manageactivities' only 2024-03-25 12:46:48 +01:00