Commit graph

109565 commits

Author SHA1 Message Date
Jake Dallimore
2f0585f4b5
Merge branch 'MDL-78144-master' of https://github.com/meirzamoodle/moodle 2023-06-14 14:16:04 +08:00
Ilya Tregubov
9611669cae
Merge branch 'MDL-70152-master' of https://github.com/andelacruz/moodle 2023-06-14 13:24:06 +08:00
Jun Pataleta
41efec8312 Merge branch 'MDL-76445-master-patch' of https://github.com/ilyatregubov/moodle 2023-06-14 12:18:24 +08:00
Andrew Nicols
5138f02dd3
MDL-78466 cache: Add new result_found helper
This helper is intended to prevent recurrences of this issue by moving
the guess-work to something well tested.
2023-06-14 11:58:12 +08:00
Meirza
d6c26f6390 MDL-78144 libraries: Added #[AllowDynamicProperties] to ltiprovider
To prevent the PHP 8.2 warning about Dynamic Properties' deprecation,
the #[\AllowDynamicProperties] attributes was added.
2023-06-14 10:28:03 +07:00
Ilya Tregubov
ae88b72a31
Merge branch 'MDL-78328-master' of https://github.com/andrewnicols/moodle 2023-06-14 11:11:30 +08:00
Jun Pataleta
0dd37eaa54 Merge branch 'MDL-78313-blocks-performance' of https://github.com/brendanheywood/moodle 2023-06-14 10:15:44 +08:00
Andrew Nicols
5c6ebcd5f5
MDL-78466 cache: Perform strict test on static cache values
If a statically accelerated cache returns an empty array then the value
was still fetched from the non-static cache store.

The check of the `$result` should be strictly checked against `false`,
which is the value used if no value was found.
2023-06-14 09:28:53 +08:00
Ilya Tregubov
df6641a489
MDL-76445 gradereport_singleview: Fix Behat test
When you unenrol a user, the notification blocks some tertiary
navigation links.
2023-06-14 08:57:43 +08:00
Brendan Heywood
c653fe20bd MDL-78341 tool_httpsreplace: Make progress order deterministic 2023-06-14 09:09:43 +10:00
Brendan Heywood
73ed05ecf2 MDL-78341 core: Improve the progress bar style 2023-06-14 09:09:43 +10:00
Paul Holden
c5d655973e
MDL-78461 core: fix base plugininfo class reference to root directory. 2023-06-13 14:03:41 +01:00
vtos
5be5813ca1 MDL-64648 enrol_manual: fixed default setting of 'expirynotify'
When creating a course, a manual enrolment instance is added by default. The instance settings should inherit the values of those
for the manual enrolment plugin and properly calculate its extra settings. The 'expirynotify' setting wasn't inherited correctly
in case it had 'Enroller + Enrolled' value.
A functional test was added to test the behaviour of settings inheritance.
2023-06-13 13:25:47 +02:00
Sara Arjona
da16718e8b MDL-78207 course: Add tests to cover activitybadge feature 2023-06-13 12:09:58 +02:00
Sara Arjona
af164ce9c7 MDL-78207 resource: Move file type to activity badge
One of the resource settings, the file type, has been moved to the
activity badge near the activity name.
The rest of the information will be displayed using the afterlink
feature.

However, for now, the activity page still displays all the information
together (that's why resource_get_optional_details() supports now one
new parameter, $showtype, to define whether the file type should be
displayed or not).
2023-06-13 12:09:58 +02:00
Sara Arjona
987ceb1b69 MDL-78207 forum: Move unread messages to activity badge 2023-06-13 12:09:58 +02:00
Sara Arjona
6db715f5c3 MDL-78207 course: Add new module badges feature
The new activity card design proposed for Moodle 4.3 differentiates badge
information from other HTML content (displayed using the afterlink feature).
This commit adds a new activitybadge class that can be extended by any
module to display any content in a badge near the activity name. These
are the main features:
- The badge content is always plain text (no HTML).
- The badge style can be set (by default is initialized with badge-none,
but it can be set by any module).
- An optional URL to redirect the user when the badge is clicked.
- An optional ID to add the element in case the module wants to add some
JS to the badge events.
- Optionally, any other extra HTML attributes to the badge element (for
example, data attributes).
2023-06-13 12:09:58 +02:00
Sara Arjona
b6849bd973 MDL-78207 course: Move afterlink at the end of the card 2023-06-13 11:26:08 +02:00
Sara Arjona
3878c85440 MDL-78102 badges: Check empty backpack email/password
For backpack connection using OBv2.0, email and password can't be
blank.
This patch adds some extra checks to validate this and displays an
error to the users before trying to connect to the backpack.
Besides, the error displayed when any error is returned by the
backpack (like invalid credentials), has also been improved, to
make it clearer for the users.
2023-06-13 11:21:13 +02:00
Amaia Anabitarte
cb50c71245 MDL-76715 mod_data: Remove data_records when the last field is deleted 2023-06-13 10:52:56 +02:00
Brendan Heywood
38be84b2cf MDL-78313 admin: Improve performance of manage blocks page
Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2023-06-13 17:49:29 +10:00
Ilya Tregubov
621b090ec6
Merge branch 'MDL-76445-master-2' of https://github.com/mihailges/moodle 2023-06-13 15:43:07 +08:00
Mihail Geshoski
c95c632764 MDL-76445 gradereport_singleview: Deprecate load_users()
Replaces current usages of
\gradereport_singleview\local\screen::load_users() with
get_gradable_users() and deprecates load_users(). The only
remaining calls of this method are unit test related.
2023-06-13 15:06:53 +08:00
Mihail Geshoski
41ec352b36 MDL-76445 gradereport_singleview: Deprecate initial zero state view
Deprecates the \gradereport_singleview\local\screen\select class which
is used to generate the initial view to select the singleview item type
and the strings used by the related mustache template.
This view is no longer used as we do not provide direct links to it
anymore.
2023-06-13 15:06:53 +08:00
Mihail Geshoski
26f4584200 MDL-76445 gradereport_singleview: Usability fixes 2023-06-13 15:06:53 +08:00
Mihail Geshoski
6e7ded8feb MDL-76445 gradereport_user: Usability fixes 2023-06-13 15:06:52 +08:00
Mihail Geshoski
620f6322d9 MDL-76445 grade: Helper that returns all gradable users in a course 2023-06-13 15:06:52 +08:00
Jake Dallimore
d8e7c9d3fe
Merge branch 'MDL-73052-master' of https://github.com/sarjona/moodle 2023-06-13 14:44:25 +08:00
Jun Pataleta
ab384ef813 Merge branch 'MDL-78175-master' of https://github.com/ferranrecio/moodle 2023-06-13 13:43:48 +08:00
Andrew Nicols
4aa3e00712
MDL-78297 core: Bump version to update cache config
The missing version bump caused cache configuration to not be updated,
and the static acceleration cache size was therefore not updated. The
result here was that the static acceleration cache was constantly
emptied leading to an increased page load time.
2023-06-13 11:04:25 +08:00
Jun Pataleta
6d850d2ddc Merge branch 'MDL-74263-master' of https://github.com/jleyva/moodle 2023-06-12 20:37:55 +08:00
Jun Pataleta
c500ce8b42 Merge branch 'MDL-75937-master' of https://github.com/stevandoMoodle/moodle 2023-06-12 16:10:20 +08:00
Stevani Andolo
b7f41aac8b MDL-75937 admin: Fixed config data display inconsistency 2023-06-12 15:37:12 +08:00
Jake Dallimore
6d4945aed5
Merge branch 'MDL-78167-master' of https://github.com/meirzamoodle/moodle 2023-06-12 15:06:17 +08:00
Andrew Nicols
1f5f716818
Merge branch 'MDL-78166-master' of https://github.com/meirzamoodle/moodle 2023-06-12 12:25:58 +08:00
Andrew Nicols
6d706408f2
Merge branch 'MDL-78355' of https://github.com/paulholden/moodle 2023-06-12 10:26:34 +08:00
Andrew Nicols
a677a02d71
Merge branch 'MDL-78297-master' of https://github.com/MartinGauk/moodle 2023-06-12 10:17:13 +08:00
Paul Holden
3a90d4c837
MDL-77224 mod_h5pactivity: clean up attempt data on activity deletion. 2023-06-11 18:37:03 +01:00
Andrew Nicols
fe827375f3
MDL-74824 core: Do not treat Stringable objects as arrays
Co-authored-by: Paul Holden <paulh@moodle.com>
2023-06-11 17:40:55 +01:00
Paul Holden
d508cdf111
MDL-74824 user: fix custom change password URL in login notification. 2023-06-11 17:40:54 +01:00
Paul Holden
7953ded152
MDL-77542 mod_assign: remove duplicate grade heading from grader.
It's already part of the subsequent rendered form.
2023-06-11 15:01:23 +01:00
Damian Hippisley
faa41cd791 MDL-73325 core_badges: Add tags field to BadgeClass 2023-06-09 13:41:07 +01:00
Ilya Tregubov
71c36d2de1
weekly release 4.3dev 2023-06-09 13:14:19 +08:00
Sara Arjona
86edd3d142 Merge branch 'MDL-78415-master-enfix' of https://github.com/vmdef/moodle 2023-06-08 20:33:02 +02:00
Víctor Déniz
9bb5581f4b MDL-78415 lang: Fix typo in Behat tests 2023-06-08 18:46:52 +01:00
Víctor Déniz
7e3b1b1450 MDL-78415 lang: Fix Behat tests regressions after merging en_fix strings 2023-06-08 11:40:13 +01:00
Víctor Déniz
48c161543d MDL-78415 lang: Add parameter to reopencolumn string 2023-06-08 11:38:49 +01:00
Helen Foster
06c5a6c883 MDL-78415 lang: Import fixed English strings (en_fix) 2023-06-08 09:59:04 +01:00
Sara Arjona
06bead8e8c Merge branch 'MDL-77946' of https://github.com/paulholden/moodle 2023-06-08 06:56:46 +02:00
Sara Arjona
253b66ec81 Merge branch 'MDL-78308' of https://github.com/paulholden/moodle 2023-06-08 06:48:27 +02:00