116389 Commits

Author SHA1 Message Date
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
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
Mikel Martín
7aee0a3aaa MDL-83513 theme_boost: Remove mediumwidth layout size 2024-11-18 16:21:49 +01:00
Jun Pataleta
d88d8d902d
MDL-83747 mod_data: Add accessible name for delcheck checkboxes 2024-11-18 19:38:40 +08:00
Marina Glancy
947684505e MDL-83610 behat: allow to set date fields in groups 2024-11-18 10:36:38 +00:00
Simon Adams
a0cf3d2da5 MDL-71378 core_question & mod_quiz: Refactor deprecated contexts 2024-11-18 10:22:59 +00:00
Simon Adams
5955868d3d MDL-71378 mod_quiz: Add pill badge to question slot template 2024-11-18 10:22:59 +00:00
Simon Adams
291fdacfd5 MDL-71378 core_question: Only show module banks in question filters 2024-11-18 10:22:58 +00:00
Simon Adams
a6c4ddada5 MDL-71378 qbank_bulkmove: refactor for moving to shared question banks 2024-11-18 10:22:58 +00:00
Simon Adams
746efe94eb MDL-71378 mod_qbank: Implement add to quiz bank sharing UI 2024-11-18 10:22:58 +00:00
meirzamoodle
a0f57612ee MDL-83290 dml: Remove "ORDER BY" from the $sort 2024-11-18 16:07:57 +07:00
Jun Pataleta
198f0d26d8
Merge branch 'MDL-83502-main' of https://github.com/ferranrecio/moodle 2024-11-18 14:36:58 +08:00
Jun Pataleta
239893647a
Merge branch 'MDL-70556' of https://github.com/timhunt/moodle 2024-11-18 14:31:40 +08:00
Tim Hunt
68d369917e MDL-70556 core db: change course fullname to 1333 chars
This is mainly for the benefit of multilang users.

As well as changing the database schema, it is also necessary to change
where this is inforced in PHP code (forms, web services). This was missed
when shortname was changed from 100 to 255 chars some time ago, but I have
fixed that here.

Note, I have not changed the legacy mnet code, since as far as I am aware
that is deprecated.
2024-11-15 15:28:23 +00:00
Simon Adams
966b264cf3 MDL-71378 mod_qbank: Add question bank backup/restore and refactor tests 2024-11-15 15:18:47 +00:00
Simon Adams
1db7518a7d MDL-71378 mod_qbank: Add install script to transfer question categories 2024-11-15 15:18:47 +00:00
Simon Adams
776d1e40e4 MDL-71378 mod_qbank: Add question bank management 2024-11-15 15:18:47 +00:00
Simon Adams
78d73cc9b7 MDL-71378 mod_qbank: Add initial plugin structure 2024-11-15 15:18:46 +00:00
Paul Holden
1317aee9e1
MDL-77065 reportbuilder: audience filter for the report access list. 2024-11-15 15:00:11 +00:00
Paul Holden
f3cd1df6e1
MDL-80430 reportbuilder: final removal of default table aliases.
They've been auto-generated for some time now, and we can make the
newer `get_default_tables` method abstract to ensure it's always
implemented.
2024-11-15 10:21:45 +00:00
sam marshall
32f7ba8cdf MDL-83211 core_search: Indexing can miss items due to race condition
Changes search indexing so that (except for test scripts) each indexing
run indexes only items up to 5 seconds ago, and the following indexing
will start from the same point. This ensures all items are indexed,
even if an item is written to the database one or two seconds after its
timecreated value.
2024-11-15 09:32:57 +00:00
sam marshall
ee6251345d MDL-83529 Analytics: Upgrade can break if core module is deleted 2024-11-15 09:32:05 +00:00
Mark Johnson
9118a619c6
MDL-75610 theme: Allow the activity title in Boost theme's secure layout 2024-11-15 08:31:29 +00:00
Mark Johnson
dd25891bda
MDL-75610 output: Fix title display logic in activity header
The display logic for including the title in the activity header was
such that the title would only display if both the theme default and the
layout option for 'notitle' were undefined or false. It was not possible
to a theme to have 'notitle' default to true, but have a layout override
that as false to display the title.

This change re-writes the is_title_allowed method to encapsulte the new
logic, first checking if the current layout has the option set and using
that, and if not falling back to the theme default if that is set. If
neither is set, the title is displayed.

This also tweaks moodle_page::magic_get_layout_options to ensure the
theme is initialised before trying to return the layout options.
2024-11-15 08:31:29 +00:00
Jun Pataleta
ef63c4cefd
Merge branch 'MDL-82877' of https://github.com/paulholden/moodle 2024-11-15 13:31:22 +08:00
Andrew Nicols
5a86d3178a
MDL-81521 mod_quiz: Update coding style of impacted tests 2024-11-15 12:50:56 +08:00
Andrew Nicols
9adfbcde4e
MDL-81521 mod_quiz: Fix attempt walkthrough tests 2024-11-15 12:50:56 +08:00
Andrew Nicols
a6acb015a3
MDL-81521 core: Update all possibly data providers to be static
Note: Some data providers could not be automatically be converted to
being static. These will be handled in a separate issue.
2024-11-15 12:50:55 +08:00