113721 Commits

Author SHA1 Message Date
Sara Arjona
5949ac50f6
Merge branch 'MDL-81084-main' of https://github.com/andrewnicols/moodle 2024-04-04 17:55:48 +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
Huong Nguyen
41f76c86ea
MDL-4188 core: Version bump 2024-04-04 22:19:56 +07:00
Leon Stringer
29c92d976d MDL-80028 mod_h5pactivity: teacher reviewattempts
By default grant mod/h5pactivity:reviewattempts to non-editing teacher
role.  This is already granted to this role's archetype.

PHPUnit test also updated as presumably non-editing teachers should
not be returned by get_active_users_join() if they have
mod/h5pactivity:reviewattempts.
2024-04-04 16:19:24 +01: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
6d196e73bb
Merge branch 'MDL-81386-main' of https://github.com/sarjona/moodle 2024-04-04 21:56:11 +07:00
Huong Nguyen
f64fda43d5
MDL-4188 behat: Turn off course welcome message
Turn off the course welcome message,
so we can easily test other messages.
2024-04-04 20:13:47 +07:00
Huong Nguyen
66e8bf76f9
MDL-4188 core: Modify PHPUnit to use the new sink method 2024-04-04 20:13:47 +07:00
Huong Nguyen
ad4f35f5a3
MDL-4188 core_course: Modify PHPUnit to use the new sink method 2024-04-04 20:13:47 +07:00
Huong Nguyen
c4e07686ea
MDL-4188 core_message: Modify PHPUnit to turn off course welcome message 2024-04-04 20:13:47 +07:00
Huong Nguyen
70f85b92e3
MDL-4188 mod_bigbluebuttonbn: Modify PHPUnit to use the new sink method 2024-04-04 20:13:47 +07:00
Huong Nguyen
b68a89a4da
MDL-4188 mod_forum: Modify PHPUnit to use the new sink method 2024-04-04 20:13:47 +07:00
Huong Nguyen
097a6d46e0
MDL-4188 enrol_self: Send course welcome message on enrolment
Including in this commit:
 - Use language strings from core_enrol to match with enrol_manual
 - Minor update for UI so Custom welcome message text area
   will not be shown if the Send course welcome message is
   set to No
 - enrol_self now using Hook API to send the welcome message
 - enrol_self_plugin::email_welcome_message() has been deprecated
 - Added Behat test to test the welcome message
2024-04-04 20:13:46 +07:00
Huong Nguyen
b6af21bec0
MDL-4188 enrol_manual: Send course welcome message on enrolment
AMOS BEGIN
  CPY [customwelcomemessage,enrol_self],[customwelcomemessage,core_enrol]
  CPY [customwelcomemessage_help,enrol_self],[customwelcomemessage_help,core_enrol]
AMOS END
2024-04-04 20:13:46 +07:00
Huong Nguyen
1593f02492
MDL-4188 core: Added course welcome message notification 2024-04-04 19:45:18 +07:00
Huong Nguyen
f53b0b84d2
MDL-4188 core_enrol: Added enrol_plugin::get_welcome_message_contact()
Including in this commit
 - enrol_self_plugin::get_welcome_email_contact() has been deprecated
2024-04-04 19:45:17 +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
Sara Arjona
1ce75e7278
Merge branch 'MDL-80754-main' of https://github.com/laurentdavid/moodle 2024-04-04 12:44:40 +02:00
Sara Arjona
1c660c4f2a
Merge branch 'MDL-15594-main' of https://github.com/kevpercy/moodle 2024-04-04 12:38:08 +02:00
Huong Nguyen
35a9c9609a
Merge branch 'MDL-81413-main' of https://github.com/lameze/moodle 2024-04-04 17:31:15 +07: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
Huong Nguyen
fd38ce1210 MDL-78096 Javascript: core/dropzone improvement
core/dropzone now accepts custom label to display in the Dropzone
2024-04-04 15:31:08 +07:00
meirzamoodle
2d67005f21 MDL-78096 tiny_media: Handle repositories if none is active 2024-04-04 15:31:08 +07:00
meirzamoodle
cbbc87c7f4 MDL-78096 editor_tiny: Convert error to JSON and send the accepted types 2024-04-04 15:31:08 +07:00
meirzamoodle
1927c6f668 MDL-78096 editor_tiny: Scenario updates for TinyMCE image enhancements 2024-04-04 15:31:08 +07:00
meirzamoodle
7fda4d6f63 MDL-78096 tiny_media: Add a new details image 2024-04-04 15:31:07 +07:00
meirzamoodle
4d3c8e895e MDL-78096 tiny_media: Implement drag-drop to upload an image 2024-04-04 15:30:53 +07:00
Laurent David
03f84bdaba MDL-80754 mod_h5pactivity: Improve attempt report
* Show the total number of attempts in the column header
* Display a simplified link label to view the actual attempts
2024-04-04 10:30:45 +02:00
Ilya Tregubov
272c8976fe MDL-79863 qtype_ordering: Ensure qtype_ordering is compatible with PHP 8.2
Co-authored by: Mathew May <mathewm@hotmail.co.nz>
2024-04-04 16:21:07 +08:00
Mathew May
63ed08c050 MDL-79905 qtype_ordering: Improve test coverage for question ordering
Part of: MDL-79863
2024-04-04 16:21:07 +08:00
Ilya Tregubov
ec320c2e49 MDL-79873 qtype_ordering: Template to output formulation and controls.
Part of: MDL-79863
2024-04-04 16:21:07 +08:00
Mathew May
9d060922ae MDL-79874 qtype_ordering: Move feedback into exporter
Part of: MDL-79863
2024-04-04 16:21:07 +08:00
Kevin Percy
e1357ee51c MDL-79863 qtype_ordering: Coding style improvements part 2
Co-authored by: Tim Hunt <T.J.Hunt@open.ac.uk>
2024-04-04 16:20:50 +08:00
Andrew Nicols
f9404ba6c1
MDL-81316 core: Encode anchor fragments properly to RFC 3986 2024-04-04 16:05:18 +08:00
Ilya Tregubov
d00061da26 MDL-79877 qtype_ordering: Template to output correct parts
Part of: MDL-79863
Creates an exporter class and a template to output the correct
part  to a given question attempt.
2024-04-04 16:00:52 +08:00
Mathew May
36822f0c0a MDL-79870 qtype_ordering: Remove unused code
Part of: MDL-79863
2024-04-04 16:00:51 +08:00
Mathew May
cf1bcfce18 MDL-79884 qtype_ordering: Add unit coverage and exemptions
Part of: MDL-79863
2024-04-04 16:00:51 +08:00
Ilya Tregubov
de5fc46b41 MDL-79875 qtype_ordering: Template to output grade detail
Part of: MDL-79863
Creates an exporter class and a template to output the grade
detail to a given question attempt.
2024-04-04 16:00:51 +08:00
Shamim Rezaie
31fc5161c9 MDL-79863 qtype_ordering: Coding style improvements part 1
Co-authored by: Ilya Tregubov <ilya@moodle.com>
Co-authored by: Mihail Geshoski <mihail@moodle.com>
Co-authored by: Shamim Rezaie <shamim@moodle.com>
2024-04-04 16:00:51 +08:00
Mathew May
18182c30e6 MDL-79871 qtype_ordering: Further changes for readability
Part of: MDL-79863
- Reduce usage of jQuery to only a couple of variables. These are left as is due to how heavy the usage is and how the base dnd seems to assume jQuery objects here and there.
- Templated the proxy string so we dont have to pull it in and replace tokens on the fly.
- Moved around functionality a bit to make for more concise reading and obvious delegation of responsibility
2024-04-04 15:26:44 +08:00
Mathew May
646f1c75d1 MDL-79871 qtype_ordering: Improve typing and documentation
Part of: MDL-79863
2024-04-04 15:26:44 +08:00
Mathew May
0136414cd8 MDL-79871 qtype_ordering: Move functions out of constructor
Part of: MDL-79863
- Alot of functionality was bound to the constructor, this has been picked out into various methods for easier debug.
2024-04-04 15:26:44 +08:00
Mathew May
d70277d050 MDL-79871 qtype_ordering: Move existing modules into class
Part of: MDL-79863
- Taken the existing module and done the bare minimum to make it work within one class that gets called.
2024-04-04 15:26:44 +08:00
Mathew May
416ffeed36 MDL-79871 qtype_ordering: Remove shipped core libs
Part of: MDL-79863
2024-04-04 15:26:44 +08:00
Mihail Geshoski
bc2bfead5c MDL-79876 qtype_ordering: Template to output the correct response
Part of: MDL-79863
Creates an exporter class and a template to output the correct
response to a given question attempt.
2024-04-04 15:26:44 +08:00
Mihail Geshoski
6531fa70d7 MDL-79876 qtype_ordering: Create an abstract class for the renderables
Part of: MDL-79863
Creates an abstract class in qtype_ordering/output that implements the
renderable interface. Each renderable that is used to output a given
component of the ordering question should extend this abstract class.
2024-04-04 15:26:43 +08:00
Mihail Geshoski
532c361386 MDL-79876 qtype_ordering: get_response() in qtype_ordering_test_helper
Part of: MDL-79863

Previously, get_response() was implemented in almost every PHPUnit
testing class in qtype_ordering and these implementations were
idenical. In order to avoid code duplication a new static method
get_response() has been created within the qtype_ordering_test_helper
class.
Also, each individual implementation within the PHPUnit testing
classes has been removed/modified and all related calls had been
replaced by qtype_ordering_test_helper::get_response().
2024-04-04 15:26:43 +08:00