1963 Commits

Author SHA1 Message Date
meirzamoodle
1927c6f668 MDL-78096 editor_tiny: Scenario updates for TinyMCE image enhancements 2024-04-04 15:31:08 +07:00
Paul Holden
16b73bf993
MDL-80488 mod_lesson: avoid overflowing length of page titles. 2024-03-20 23:51:12 +00:00
Eloy Lafuente (stronk7)
29a541724f
MDL-65292 style: Fix all the function declaration ordering
This has been generated running the following Sniff,
part of the Moodle's CodeSniffer standard:
- PSR2.Methods.MethodDeclaration

It just ensures all the function declarations have
the correct order for:
- abstract and final.
- visibility (public, protected, private).
- static.

So, all the lines modified by this commit are function declarations
and the only changes are in the positions of those keywords.
2024-02-28 23:47:47 +01:00
Eloy Lafuente (stronk7)
ba1f804ffa
MDL-65292 style: Fix all function declarations white space
This has been generated running the following Sniffs, all
them part of the Moodle's CodeSniffer standard:
- PSR12.Functions.ReturnTypeDeclaration
- PSR12.Functions.NullableTypeDeclaration
- moodle.Methods.MethodDeclarationSpacing
- Squiz.Whitespace.ScopeKeywordSpacing

All them are, exclusively, about correct spacing, so the changes
are, all them, only white space changes.

Only exceptions to the above are 3 changes what were setting the
return type in a new line, and, when that happens, the closing
parenthesis (bracket) has to go to the same line than the colon.
2024-02-28 23:33:26 +01:00
Huong Nguyen
3d36a37499
NOBUG: Fixed SVG browser compatibility 2024-02-23 08:37:37 +07:00
Sara Arjona
8cdd62ca88
MDL-78284 theme: Add new interactive content and update styles 2024-02-15 17:49:43 +01:00
Sara Arjona
10f8e19f40
MDL-78284 mod: Replace activity icons with the new SVGs
The old monocromo.png activity icon files have been removed and
replaced with the new SVG files created by the UX team.

Special thanks to Sabina Abellán! :-)
2024-02-15 17:49:41 +01:00
Andrew Nicols
d56303aa54
MDL-80072 core: Promote all formatting options to parameters
Now that PHP has support for named parameters, and we can use them in
Moodle, we should ditch `$options` arrays and use first-class,
documented, parameters.

Whilst this may seem scary, dumb, overwhelming, please note that you do
not need to supply all args, for example, to change the last parameter
of `format_text` you no longer need to do this:

    return \core\container::get(\core\formatting::class)->format_text(
       $text,
       FORMAT_MOODLE,
       $context,
       false,
       null,
       true,
       true,
       true,
       false,
       false,
       true,
    );

Instead you can do:

    return \core\container::get(\core\formatting::class)->format_text(
       $text,
       FORMAT_MOODLE,
       $context,
       allowid: true,
    );

Or better still:

    return \core\container::get(\core\formatting::class)->format_text(
       text: $text,
       format: FORMAT_MOODLE,
       context: $context,
       allowid: true,
    );

This means that we can get defaults in the function signature, improves
our typing, and allows for deprecation and changes to options. It also
sets us up for success in the future.
2024-02-12 11:11:18 +08:00
Jun Pataleta
83532409cc
Merge branch 'MDL-80725-main-enfix' of https://github.com/mudrd8mz/moodle 2024-02-06 15:59:07 +08:00
Helen Foster
ddbfeecb83 MDL-80725 lang: Import fixed English strings (en_fix) 2024-01-31 18:45:03 +01:00
Huong Nguyen
917aba079b Merge branch 'MDL-73545' of https://github.com/paulholden/moodle 2024-01-30 09:38:38 +07:00
Jun Pataleta
8795b5745b
Merge branch 'MDL-80656-main' of https://github.com/lameze/moodle 2024-01-25 12:14:05 +08:00
Ilya Tregubov
404b7078c0 Merge branch 'MDL-79159-master' of https://github.com/andelacruz/moodle 2024-01-25 09:35:28 +08:00
Sara Arjona
8b36abdb9d
Merge branch 'MDL-80259-main' of https://github.com/roland04/moodle 2024-01-24 09:16:12 +01:00
Angelia Dela Cruz
ae3436f905 MDL-79159 mod_lesson: Behat coverage for lesson question max attempts 2024-01-24 16:13:50 +08:00
Simey Lameze
7e24913339 MDL-80656 behat: remove unnecessary activity duplication steps 2024-01-24 11:07:34 +08:00
Mikel Martín
a198884333 MDL-80259 theme_boost: Refactor badge helper classes for Bootstrap 5 2024-01-23 08:27:23 +01:00
Angelia Dela Cruz
963723bc4d MDL-80339 mod_lesson: Behat to confirm grade visibility in lesson 2024-01-23 10:10:44 +08:00
Ilya Tregubov
4179fa2dfc Merge branch 'MDL-79937_fixlessonmatching' of https://github.com/catalystfd/moodle 2024-01-08 09:19:39 +08:00
Sara Arjona
9d19157b08
MDL-68124 lesson: Fix random behat error with Oracle
This random error was caused because when reviewing an attempt,
the first pageid to display is calculated based on the timeseen
field in the lesson_attempst table.
In Oracle, sometimes it returned the second pageid (because both
had the same timeseen), so which led to these random failures.

Apart from adding 1-second wait when the attempt is created (to
guarantee the first page is returned properly), a few more
improvements have been also made, like removing manual steps for
setting the lesson activity or adding some extra checks to
confirm the information displayed is expected.
2023-12-18 08:21:18 +01:00
Paul Holden
58237bb91a
MDL-73545 mod_lesson: final removal of reprecated header button method. 2023-12-15 14:31:37 +00:00
Angelia Dela Cruz
174878936a MDL-79050 Behat: Add behat coverage to retake lesson activity 2023-12-12 15:52:52 +08:00
Francis Devine
8380311af6 MDL-79937 mod_lesson: Fix matching pagetype question matching
The addition of text format on the output of the answer responses broke
the matching later when comparing the valid answer against the sent
response, as the answer response was not correspondingly formatted.

I decided to use the un formatted answer response as the key, to keep it
as close as identical to prior behaviour
2023-12-08 09:05:41 +13:00
Jun Pataleta
030def7a46
Merge branch 'MDL-80079-master' of https://github.com/andrewnicols/moodle 2023-12-06 21:59:47 +08:00
Andrew Nicols
525212f2d2
MDL-78496 core: Address phpcs issues with upgrade.php files 2023-11-19 21:20:53 +08:00
Andrew Nicols
545b36cd4a
MDL-78496 upgrade: remove all the < 4.1.0 upgrade steps
Also includes an upgrade step to prevent upgrading from any
version < 2021112802 (v4.1.0) as anti-cheating measure.
2023-11-17 23:25:36 +08:00
Huong Nguyen
3aa5c60399 Merge branch 'MDL-79714-master' of https://github.com/meirzamoodle/moodle 2023-11-16 10:55:22 +07:00
Sara Arjona
b957254b3b
MDL-77581 lesson: Fix behat random failures 2023-11-14 15:54:56 +01:00
Andrew Nicols
dab4a2b66f
MDL-80079 core: Correct incorrect arg to format_string::$options 2023-11-14 22:28:55 +08:00
Sara Arjona
a70bec51b4
Merge branch 'MDL-77581-master' of https://github.com/dpalou/moodle 2023-11-14 11:52:45 +01:00
Dani Palou
37727401fe MDL-77581 lesson: Fix generator unit tests in oracle 2023-11-14 11:06:20 +01:00
Sara Arjona
ff518d3e71
Merge branch 'MDL-77581-master' of https://github.com/dpalou/moodle 2023-11-13 17:19:02 +01:00
meirzamoodle
3ee7968552 MDL-79714 message: Enable all default notifications 2023-11-13 22:15:29 +07:00
Dani Palou
c7e7bdf778 MDL-77581 behat: Test create lesson pages using UI 2023-11-09 11:30:57 +01:00
Dani Palou
f037f26a62 MDL-77581 behat: Apply new lesson cluster generators to existing tests 2023-11-09 11:30:57 +01:00
Dani Palou
cfbfeacae5 MDL-77581 behat: Create generators for lesson clusters 2023-11-09 11:30:57 +01:00
Dani Palou
71dcb7bcc5 MDL-77581 lesson: Fix wrong PHPDoc in some generator functions
While creating the new perform_create_page function I noticed that the PHPDoc return type of the existing functions was wrong
2023-11-09 10:18:43 +01:00
Dani Palou
46088b01c1 MDL-77581 behat: Remove lesson_student_dashboard test file
After f7c476bac56b2e1bbcebb94ef6af6248bd2bdc20 was integrated, these tests didn't assert anything specific and similar steps are already tested in lesson_navigation
2023-11-09 10:18:43 +01:00
Dani Palou
273251d765 MDL-77581 behat: Apply new lesson generators to existing tests 2023-11-09 10:18:43 +01:00
Dani Palou
cec4403678 MDL-77581 behat: Create generators for lesson pages and answers 2023-11-09 10:18:43 +01:00
Luca Bösch
2c9d117574 MDL-71941 mod_lesson: Deprecate 'Grade' string 2023-11-02 16:02:32 +01:00
Sara Arjona
cc02c2eae3
Merge branch 'MDL-78481-master' of https://github.com/iarenaza/moodle 2023-10-17 17:15:09 +02:00
Jun Pataleta
9beff03a96
MDL-79626 upgrade: add the 4.3.0 separation line to all upgrade scripts 2023-10-10 10:44:17 +08:00
Sara Arjona
9877a06246
Merge branch 'MDL-79551-master-rc' of https://github.com/junpataleta/moodle 2023-10-04 12:28:14 +02:00
Jun Pataleta
94bc2cd38b
MDL-79551 versions: bump all versions and requires near release 2023-10-04 13:57:17 +08:00
Paul Holden
ba974a4add MDL-79408 mod_lesson: safer unserializing/comparison of properties. 2023-10-04 01:24:19 +00:00
Amaia Anabitarte
b87b72195c MDL-78527 core_completion: Fixing tests 2023-09-12 15:43:49 +02:00
Amaia Anabitarte
d481ec3af6 MDL-78527 core_completion: Improving labels and disclosure in mods 2023-09-12 15:43:49 +02:00
Simey Lameze
50ef8cdd3f MDL-79015 behat: make verification step more specific 2023-08-25 08:38:43 +08:00
Angelia Dela Cruz
c3e7065862 MDL-79015 mod_lesson: Behat coverage for lesson with access restriction 2023-08-24 15:45:16 +08:00