2758 Commits

Author SHA1 Message Date
Huong Nguyen
6a1feb87bd
NOBUG: Add upgrade notes 2024-11-01 14:28:56 +07:00
meirzamoodle
758f79a5af MDL-82988 general: Apply helper to get path to fixture 2024-10-27 13:46:48 +07:00
Huong Nguyen
144a9fa027
NOBUG: Add upgrade notes 2024-10-25 08:35:34 +07:00
Paul Holden
807148fb68
MDL-83432 enrol_manual: reference correct role in welcome message. 2024-10-18 15:12:34 +01:00
Paul Holden
8c01166725
MDL-83443 enrol: use defined role name in welcome message. 2024-10-11 14:29:53 +01:00
Jun Pataleta
c9356e039f
MDL-83374 upgrade: add the 4.5.0 separation line to all upgrade scripts 2024-10-05 21:16:13 +08:00
Jun Pataleta
62b8b3709d
Merge branch 'MDL-83238-main-enfix' of https://github.com/mudrd8mz/moodle 2024-10-03 16:01:53 +08:00
Sara Arjona
d7f28e0c93
Merge branch 'MDL-83309-main' of https://github.com/junpataleta/moodle 2024-10-03 08:22:26 +02:00
meirzamoodle
3229dda3d6 MDL-83332 core: Revert the slashargument removal on MDL-62640
Removing the option causes issues on MacOS.
2024-10-02 18:36:14 +07:00
Jun Pataleta
f24e0ecf53
MDL-83309 versions: Bump all versions and requires near release 2024-10-02 17:04:53 +08:00
David Mudrák
cdd3b4648f MDL-83238 lang: Fix the changed strings in the tests, too 2024-09-30 20:04:54 +02:00
Helen Foster
8e8267144d MDL-83238 lang: Import fixed English strings (en_fix) 2024-09-30 19:42:49 +02:00
Huong Nguyen
762aa5ada8
Merge branch 'MDL-80974-main' of https://github.com/sh-csg/moodle 2024-09-27 11:08:36 +07:00
meirzamoodle
979db77a63 MDL-62640 enrol_lti: Adjust code for slashargument removal 2024-09-25 08:30:18 +07:00
Jun Pataleta
2de9d83d7d
Merge branch 'MDL-82717' of https://github.com/liamgm/moodle 2024-09-03 10:29:20 +08:00
Liam Moran
d013299da0 MDL-82717 enrol_lti: Make contextmembershipsurl property immutable
The contextmembershipsurl property on the nrsp_info object is itself
an object of type moodle_url so its getter should return a copy
of the moodle_url object instead of a reference to the class-internal
object. This commit adds a test for get_context_memberships_url and
updates the getter so the property is immutable.
2024-08-29 03:40:47 -05:00
Stefan Hanauska
da1e3a5f4a MDL-80974 enrol: Set category context for enrol form 2024-08-28 12:31:40 +02:00
Angelia Dela Cruz
c0e5deb660 MDL-82898 enrol_self: Behat to test student enrolment using key 2024-08-28 08:45:09 +08:00
Huong Nguyen
90613aae97 MDL-77544 enrol_database: Make sure the records are unique 2024-08-20 19:05:31 +07:00
Jun Pataleta
e19837463b MDL-77544 enrol_database: Make sure column mapping config match case
Some databases may have case-sensitive collation that will cause the
generated SQL query in `\enrol_database_plugin::sync_courses()` to fail
when using values for the plugin settings `newcoursestartdate` and
`newcourseenddate` with a different case compared to the columns
in the actual external database table.

For the sake of testing sync with start and end dates, let's make sure
that the config values match the case of the enrol test table's columns
for the start and end dates.
2024-08-20 19:03:27 +07:00
Jun Pataleta
6e3bb56ef6
Merge branch 'MDL-77544-main' of https://github.com/dmitriim/moodle 2024-08-20 12:04:23 +08:00
Huong Nguyen
dca18ebca3
Merge branch 'MDL-81634-main' of https://github.com/andrewnicols/moodle 2024-08-20 09:30:44 +07:00
Dmitrii Metelkin
f6d2ff9cf5 MDL-77544 enrol_database: include start and end dates 2024-08-19 10:57:54 +10:00
Huong Nguyen
e6ea778c03
NOBUG: Fixed SVG browser compatibility 2024-08-16 08:37:01 +07:00
Huong Nguyen
31e1fa1f1b
Merge branch 'MDL-82211-main' of https://github.com/sarjona/moodle 2024-08-13 15:37:02 +07:00
Sara Arjona
7ede849137
MDL-82211 enrol_self: Update SVG icons 2024-08-13 07:22:42 +02:00
Sara Arjona
626c3ef5ed
MDL-82211 lti: Update SVG icons 2024-08-13 07:22:42 +02:00
Sara Arjona
d97ce0d08a
MDL-82211 enrol_guest: Update SVG icons 2024-08-13 07:22:42 +02:00
Mikel Martín
0a03018116 MDL-75671 theme_boost: Refactor spacing classes for BS5
- Add SCSS code for spacing utility classes to the Boostrap 5 bridge SCSS file
- Replace all occurrences in the codebase (pr-1 > pe-1, ml-auto > ms-auto, ml-sm-3 > ms-sm-3, ...)
2024-08-09 07:40:17 +02:00
Huong Nguyen
7cdec21075
Merge branch 'MDL-82643' of https://github.com/paulholden/moodle 2024-08-07 10:44:45 +07:00
Andrew Nicols
024e36be17
MDL-81634 core: Fix all implicitly defined nullables
Note: This does not impact third-party libraries.
2024-08-02 14:11:12 +08:00
meirzamoodle
699daafc64 MDL-64148 core: Make email greetings consistent
Some email body strings use first names as greetings,
some use full names, and some do not.

Using the first name for greeting makes it consistent and
a bit more "personal".
2024-07-30 22:40:47 +07:00
Paul Holden
3cf196df6f
MDL-82643 enrol_self: clarify validation of notification threshold. 2024-07-30 15:46:44 +01:00
Huong Nguyen
5a581f1304
Merge branch 'MDL-82225' of https://github.com/paulholden/moodle 2024-07-25 09:10:45 +07:00
Paul Holden
8426610258
MDL-82466 reportbuilder: new format helper for formatting time. 2024-07-19 10:33:57 +01:00
Mikel Martín
8d54a86bdb MDL-81819 theme_boost: Refactor .close usages for BS5
- Add .btn-close to the Boostratp 5 bridge SCSS file
- Replace .close occurrences with .btn-close
- Fix styles using .close
2024-07-12 14:17:10 +02:00
Paul Holden
07f30058b9
MDL-82225 enrol_cohort: Behat scenario updates for cohort deletion. 2024-07-12 10:58:00 +01:00
Paul Holden
bd0f8a058f
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:08:49 +01:00
Huong Nguyen
ccd8089de9
Merge branch 'MDL-80907' of https://github.com/marinaglancy/moodle 2024-07-04 11:12:50 +07:00
Sara Arjona
9e1eec783c
Merge branch 'MDL-82207' of https://github.com/stronk7/moodle 2024-06-26 12:27:19 +02:00
Huong Nguyen
3b9cc05800
Merge branch 'MDL-81506-main' of https://github.com/davewoloszyn/moodle 2024-06-25 09:50:53 +07:00
Eloy Lafuente (stronk7)
ad5fe71868
MDL-82207 phpunit: fix various @covers annotations (take#1)
This fixes various (not all) wrong @covers annotations that
are reported as warnings by PHPUnit when it's run with
code-coverage enabled.

When possible, the preferred solution is to change to
@covers at class level, that is the recommended way.

If multiple classes are involved, then a mix of @coversDefaultClass
and @covers at method level are used (always trying to use the
minimum needed patch).

This is the first of a series of issues created as sub-tasks
of MDL-82142.
2024-06-24 12:07:39 +02:00
David Woloszyn
7b14538f21 MDL-81506 enrol_self: Edit welcome message capability applied 2024-06-20 16:41:24 +10:00
David Woloszyn
49fa7785dd MDL-81506 enrol_manual: Edit welcome message capability applied 2024-06-20 16:41:24 +10:00
David Woloszyn
d43da95ed6 MDL-81506 core_enrol: New capability to edit the welcome message 2024-06-20 15:23:04 +10:00
Eloy Lafuente (stronk7)
674497a12c
MDL-81523 phpunit: Add all missing setUp/tearDown parent calls
All setUp(), tearDown(), setUpBeforeClass() and tearDownAfterClass()
must, always, call to parent, to ensure that everything is properly
set and cleaned.

While in a lot of situations this is not needed (parents may not
have anything to run), with PHPUnit >= 10 this can become more
important because we are going to move the reset code from current
placement @ runBare() to setUp()/tearDown().

Note that all the changes performed in this commit have been detected
and fixed by moodle-cs (ParentSetUpTearDownSniffTest).
2024-06-14 16:04:57 +02:00
Huong Nguyen
96d29ef71b
Merge branch 'MDL-81522' of https://github.com/stronk7/moodle 2024-06-12 08:46:31 +07:00
Eloy Lafuente (stronk7)
4f7631113c
MDL-81522 phpunit: Add missing void return type to all tests #2
This commit includes more changes, all them also adding the :void
return type to unit tests missing them.

The difference is that all these changes, while also detected
perfectly by the moodle.PHPUnit.TestReturnType sniff, were not
auto-fixed (like the previous commit ones), because all them
do include some "return" statement and, for safety, we don't
fix them.

All the cases have been visually inspected and confirmed that
the existing "return" statements always belong to anon
functions within the test body and not the test own return statement.
2024-06-11 11:55:08 +02:00
Eloy Lafuente (stronk7)
01148a0816
MDL-81522 phpunit: Add missing void return type to all tests
While this change is not 100% required now, it's good habit
and we are checking for it since Moodle 4.4.

All the changes in this commit have been applied automatically
using the moodle.PHPUnit.TestReturnType sniff and are, exclusively
adding the ": void" return types when missing.
2024-06-11 11:55:07 +02:00
Paul Holden
1acdc7fe82
MDL-81678 enrol: don't escape course name in welcome message. 2024-06-07 11:39:38 +01:00