Commit graph

116769 commits

Author SHA1 Message Date
ferran
694edcf76b MDL-82351 core_courseformat: fix social format phpunits 2024-11-22 17:20:55 +01:00
ferranrecio
ab5b390a77 MDL-82351 block_social_activities: migrate to reactive course editor
This commit integrate and clean the social activities block to use the
standard course format outputs and the course editor modules. The code
is similar to the one used in the site_main_menu block and cleanup most
of the ancient code.
2024-11-22 17:20:55 +01:00
ferranrecio
8be3db6de2 MDL-82351 format_social: migrate to reactive course editor
The commit adds all the necessary methods to allow social format to use
the course editor. The code is similar to the one used in the frontpage
format. The commit does not include the migration of the
social_activities blocks.
2024-11-22 17:20:55 +01:00
ferranrecio
fa1296a7a4 MDL-82351 courseformat: allow blocks to use the course editor
Some formats like the social need the blocks and drawers to access the
course editor. However, the include_course_ajax was called after the
main page structure is created and produces some errors, especially in
behat. Now include_course_ajax is called before the page header.
2024-11-22 17:20:55 +01:00
ferranrecio
4053bd2139 MDL-82351 course: fix course_ajax_enabled function
The course_ajax_enabled was using a course_format_ajax_support which
does not initialize the course format with the correct parameters.
Having a global function to get something the format base format can
provide is unnecessary and redudant, for this reason the function is now
deprecated.
2024-11-22 17:20:55 +01:00
Paul Holden
466f6e88b5
MDL-63264 enrol: retrieve additional welcome message contact data.
The `maildisplay` field is required to determine from whom to send
the welcome message.

Co-authored-by: Zak Risha <zjrisha@gmail.com>
2024-11-22 16:17:39 +00:00
Paul Holden
dfcbfde2bb
MDL-83614 javascript: apply icon class to legacy lightbox spinner. 2024-11-22 16:13:24 +00:00
ferran
121f4ad5c5 MDL-83661 core_courseformat: fix drop file modal
When the user drags and drops a file into a course section that can
create more than one type of activity (for example a zip file) the modal
had repeated form elements ids. Now every radio option has its own id.
2024-11-22 17:12:13 +01:00
Jun Pataleta
9c206d1e72
MDL-83470 core: Bump version in phpcs.xml.dist 2024-11-22 23:48:22 +08:00
Jun Pataleta
dd4c741d76
MDL-83470 core: Update composer.json 2024-11-22 23:48:22 +08:00
Jun Pataleta
70b1f1d61f
MDL-83470 gha: Bump versions to the required values
For 5.0:
- Minimum PHP version is bumped to 8.2
- Minimum MySQL version is bumped to 8.4
- Minimum PostgreSQL version is bumped to 14
2024-11-22 23:48:22 +08:00
Jun Pataleta
18a3c3d186
MDL-83470 core: Define environment requirements for Moodle 5.0 2024-11-22 23:48:21 +08:00
Paul Holden
a0ef4bb8fe
MDL-82913 reportbuilder: simplify select filter for limited options.
Where the select filter contains upto two items (making it a binary
choice), then we can simplify the filter form elements to always
assume: "Equal to [ Option 1 | Option 2 ]".
2024-11-22 15:38:11 +00:00
Jun Pataleta
505a85eb9a
weekly release 5.0dev 2024-11-22 22:26:25 +08:00
Jun Pataleta
1a85875c34
NOBUG: Add upgrade notes 2024-11-22 22:26:24 +08:00
Andrew Nicols
4d961d28ff
Merge branch 'MDL-83551-main' of https://github.com/lameze/moodle 2024-11-22 10:50:48 +07:00
Andrew Nicols
305952533d
Merge branch 'MDL-82589' of https://github.com/paulholden/moodle 2024-11-22 10:50:48 +07:00
Huong Nguyen
32a31cbb3f
Merge branch 'MDL-83529-main' of https://github.com/sammarshallou/moodle 2024-11-22 10:50:48 +07:00
Andrew Nicols
a3db27263a
Merge branch 'MDL-82450' of https://github.com/paulholden/moodle 2024-11-22 10:50:48 +07:00
Huong Nguyen
1d35129541
Merge branch 'MDL-83747-main' of https://github.com/junpataleta/moodle 2024-11-22 10:50:48 +07:00
Huong Nguyen
c2af08a68b
Merge branch 'MDL-83048' of https://github.com/timhunt/moodle 2024-11-22 10:50:47 +07:00
Huong Nguyen
443871d320
Merge branch 'MDL-80430' of https://github.com/paulholden/moodle 2024-11-22 10:50:47 +07:00
Andrew Nicols
9781d5f392
MDL-83786 navigation: Correct incorrect paren in navfilter
This condition was checking whether navgfilter was true, and the
stringfilter was also true.

In most cases the condition will have actually worked correctly, albeit
by fluke. For users upgrading or otherwise missing the navfilter
configuration this condition led to warnings.
2024-11-22 08:36:17 +08:00
Paul Holden
b48cb6861e
MDL-83776 customfield_text: correct link field URL encoding. 2024-11-21 09:02:33 +00:00
Andrew Nicols
0ec23aca48
Merge branch 'MDL-83501-url-encode-nginx-paths' of https://github.com/rajandangi/moodle 2024-11-21 11:47:59 +08:00
Jun Pataleta
94b89dd9d4
Merge branch 'MDL-83290-main' of https://github.com/meirzamoodle/moodle 2024-11-21 11:46:08 +08:00
Andrew Nicols
d2c5ae9f75
Merge branch 'MDL-83226' of https://github.com/paulholden/moodle 2024-11-21 11:44:32 +08:00
Jun Pataleta
e5a241a02c
Merge branch 'MDL-71257-main' of https://github.com/junpataleta/moodle 2024-11-21 11:33:32 +08:00
David Woloszyn
2be5e7e18d
MDL-71257 dml: Rename master/slave to primary/replica 2024-11-21 11:17:51 +08:00
Andrew Nicols
3d24572e55
Merge branch 'MDL-83391-main' of https://github.com/cwarwicker/moodle 2024-11-21 10:51:52 +08:00
Philipp Memmel
5de5498807 MDL-82931 mod_data: Harden parsing of content format 2024-11-20 21:21:06 +01:00
Amaia Anabitarte
4b66547881 MDL-75750 theme: Round login frame in small viewport 2024-11-20 16:14:50 +01:00
Conn Warwicker
5dc79c468d MDL-82584 mod_workshop: Refactor DB queries
Refactor workshop participant queries to improve performance.

This commit refactors how the authors/reviewers selectors are done in
mod_workshop. Previously this was trying to do all the work within SQL
so querying user roles and capabilities, with massive UNIONS for each
group on the course, which on big courses lead to SQL thousands of
lines long which broke the page, or took 5+ minutes to load.

This has been refactored to try and query only what is required
and then do capability checks within code instead of SQL.
2024-11-20 15:04:35 +00:00
Paul Holden
2770dd65f1
Merge branch 'MDL-83570-main-fix' of https://github.com/junpataleta/moodle into main 2024-11-20 12:28:49 +00:00
Jun Pataleta
7f122657cf
MDL-83570 tiny_recordrtc: Use the correct upgrade_plugin_savepoint()
And move the release upgrade line comment before the upgrade step.
2024-11-20 18:06:32 +08:00
Stephan Robotta
38c2b2ed20 MDL-83746 navigation: check host and path for active flag in custom menu 2024-11-20 10:42:22 +01:00
Huong Nguyen
3b2311a4c3
Merge branch 'MDL-83570-main' of https://github.com/meirzamoodle/moodle 2024-11-20 16:10:57 +07:00
Jun Pataleta
d5190768cb
Merge branch 'MDL-72077-ro-debug' of https://github.com/catalyst/moodle 2024-11-20 15:24:47 +08:00
Frederik Milling Pytlick
2e3660811e MDL-83658 core: Fix reactive debug tool logging
Fixed issue where the reactive debug panel does not log a transaction,
if the events fired are exactly the same as the previous ones.
2024-11-20 08:14:16 +01:00
meirzamoodle
392ed9c627 MDL-83570 tiny_recordrtc: Turn the audio bitrate input to Select field
The current code may have a bug. If users set the audio bit rate to
a non-supported value, such as 1000,
Firefox will display an error in the console,
while Chrome will create the recorded audio file successfully,
but it will have no sound. I tested this on Ubuntu 24.04.

The minimum bit rate threshold varies depending on the audio format.
During my tests with Firefox version 131.0.3, which uses
the audio/Ogg format, I found that the minimum supported value
is 24000. In Chrome 129.0.6668.70, which uses the audio/MP4 format,
the minimum supported value is 2400.

Due to these differences, I decided to change the input from
a text field to a select field, offering options that support both
Ogg and MP4 audio formats.

The database conversion for the old value has been provided in
the lib/db/upgrade.php. The script will find the closest match to
the current data and update it accordingly.
2024-11-20 09:59:14 +07:00
Huong Nguyen
68fd46d625
Merge branch 'MDL-83513-main' of https://github.com/roland04/moodle 2024-11-20 09:00:27 +07:00
Paul Holden
02186de904
MDL-83718 reportbuilder: use window count method to get table data.
Use the new "counted recordset" DML API from 42664ee49a to obtain
the raw table data for reports. For those databases with defined
support for count window functions, this should give a performance
benefit by combining the count and main query into one request.
2024-11-19 18:07:04 +00:00
Mikel Martín
57cbb227cf MDL-83493 theme_boost: Fix popover triggering
Popovers were not being closed when clicking elsewhere resulting in
multiple popovers open at the same time that cannot be closed. That
was happening because the trigger for popovers was set to "focus" and
"click" at the same time. This patch removes the "click" as trigger.
Also, adds the click event listener to show the popover and avoid the
problem described in MDL-82570, that caused this regression.
2024-11-19 15:23:14 +01:00
Mikel Martín
801f8cc246 MDL-81745 mod_feedback: Refactor editor drag and drop
- Remove YUI drag and drop.
- Add new 'mod_feedback\external\questions\reorder' web service.
- Use SortableList JS component to refactor drag and drop, using
  the new webservice.
- Update new SCSS styles
- Fix and create Behat scenarios
2024-11-19 14:05:12 +01:00
Jun Pataleta
fcb39d60a9
Merge branch 'MDL-81521-main' of https://github.com/andrewnicols/moodle 2024-11-19 15:15:17 +08:00
Huong Nguyen
c6353ef018
Merge branch 'MDL-81823-main' of https://github.com/roland04/moodle 2024-11-19 10:28:33 +07:00
Huong Nguyen
5c7588552c
Merge branch 'MDL-77065' of https://github.com/paulholden/moodle 2024-11-19 10:18:50 +07:00
Huong Nguyen
155c4bd1e8
Merge branch 'MDL-82349-main-v03' of https://github.com/ferranrecio/moodle 2024-11-19 09:51:54 +07:00
Huong Nguyen
7a9bd90e2c
Merge branch 'MDL-83610' of https://github.com/marinaglancy/moodle 2024-11-19 09:27:55 +07:00
Mikel Martín
53c89cb985 MDL-81745 mod_feedback: Refactor edit amd module 2024-11-18 16:56:03 +01:00