Commit graph

115861 commits

Author SHA1 Message Date
Ilya Tregubov
eecc29a6bf Merge branch 'MDL-82909' of https://github.com/paulholden/moodle 2024-09-19 15:08:12 +08:00
Ilya Tregubov
adaa1944af Merge branch 'MDL-82494' of https://github.com/paulholden/moodle 2024-09-19 14:04:48 +08:00
Andrew Nicols
7f8bc2008d
MDL-83205 core: Ensure that redis lock expiry is valid
PHP allows the specification of invalid values for `max_execution_time`,
including negative values. These should be normalised the same way that
an empty (unlimited) value is.
2024-09-19 13:36:11 +08:00
Ilya Tregubov
6f9f396ec6 Merge branch 'MDL-81987_main' of https://github.com/marxjohnson/moodle 2024-09-19 12:42:50 +08:00
Huong Nguyen
0b09bace52
Merge branch 'MDL-83122-main' of https://github.com/safatshahin/moodle 2024-09-19 10:39:19 +07:00
Andrew Nicols
ea11d4674c
MDL-82814 router: Handle ssl and reverse proxies in router
When a terminating SSL proxy is in use, the scheme and port received by
the web server may be different to the wwwroot.

When a reverse proxy is in use, the scheme, port, and host name received
by the web server may be different to the wwwroot.

In both of these cases the incoming request URI must be updated to use
the correct host scheme, and port. In the case of the reverse proxy,
the host name must also be updated.

In both cases the actual path is expected to be correct, and neither the
path nor query parameters should be modified.
2024-09-19 11:22:47 +08:00
Jun Pataleta
c7cf081097
MDL-79628 core: Add missing deprecation note
* Add the missing deprecation note for the timeout parameter in
the PHPDoc block of the navigation_cache's constructor.
2024-09-19 11:17:05 +08:00
Jun Pataleta
254f752b76
Merge branch 'MDL-79628-move-navcache-to-muc-feature' of https://github.com/rajandangi/moodle 2024-09-19 11:14:11 +08:00
Huong Nguyen
8921272b51
Merge branch 'MDL-83082-main' of https://github.com/junpataleta/moodle 2024-09-19 09:43:32 +07:00
Jun Pataleta
92e842dceb
Merge branch 'MDL-80890-main' of https://github.com/HuongNV13/moodle 2024-09-19 10:33:13 +08:00
Huong Nguyen
cb4e621ce9
MDL-80890 AI: Course Assistance Placement
Co-authored-by: Matt Porritt <pozze30@gmail.com>
2024-09-19 09:30:10 +07:00
Ilya Tregubov
b022a2794d Merge branch 'MDL-80750-main' of https://github.com/mihailges/moodle 2024-09-19 09:51:33 +08:00
Jun Pataleta
337346fefe
Merge branch 'MDL-80965-main-behat-fix' of https://github.com/lameze/moodle 2024-09-19 08:39:45 +08:00
AMOS bot
da57b89c06 Automatically generated installer lang files 2024-09-19 00:09:37 +00:00
Simey Lameze
3d64e48f62 MDL-80965 behat: remove wrong tag from step 2024-09-19 07:42:22 +08:00
Sara Arjona
9a0dcfd9e0
Merge branch 'MDL-74917-main-wrong-post-actions-list-in-statslib' of https://github.com/melanietreitinger/moodle 2024-09-18 17:19:09 +02:00
Sara Arjona
20d4b14ee0
Merge branch 'MDL-82971_upgrade-log' of https://github.com/ziegenberg/moodle 2024-09-18 17:10:12 +02:00
Sara Arjona
3c712cbea3
Merge branch 'MDL-83153-main-option1-2' of https://github.com/junpataleta/moodle 2024-09-18 16:40:00 +02:00
Jun Pataleta
a3b837e135
MDL-83153 core: Upgrade step for instances that need conversion
Add an upgrade step to convert `ai_action_register.success` columns
with binary type to an integer type with length 1.
2024-09-18 21:06:48 +08:00
Shamim Rezaie
674b05d4cf Merge branch 'main_MDL-83073' of https://github.com/mattporritt/moodle 2024-09-18 20:45:10 +10:00
meirzamoodle
2f1e4e4f29 MDL-83182 core_files: Add a reference to the create_file_from_string() 2024-09-18 17:39:14 +07:00
Mihail Geshoski
899f0c92f3 MDL-83199 core: Adjust the padding for the bulk actions content area 2024-09-18 17:29:47 +08:00
Huong Nguyen
471cd47754
Merge branch 'main_MDL-82411' of https://github.com/mattporritt/moodle 2024-09-18 16:21:50 +07:00
Huong Nguyen
1d7efd8b12
Merge branch 'MDL-81278-main' of https://github.com/mickhawkins/moodle 2024-09-18 16:08:23 +07:00
Mihail Geshoski
a8d3d64ae2 MDL-80750 core: Define deselect action in bulk actions subclasses
The base bulk actions class supports deselecting all selected items but
lacks knowledge of the element types. To enhance flexibility and
maintain the class's generic nature, this change introduces a mechanism
that allows each subclass to explicitly define how to reset the
attributes indicating a selected state.
2024-09-18 15:48:10 +08:00
Mihail Geshoski
431e7961a8 MDL-80750 mod_assign: Move 'notify students' option into sticky footer 2024-09-18 15:48:09 +08:00
Mihail Geshoski
d62f653e47 MDL-80750 mod_assign: Generic bulk action form template 2024-09-18 15:48:09 +08:00
Shamim Rezaie
35cabfcc7e MDL-80750 core: Use roving tabindex to manage focus for bulk actions
Implement roving focus for toolbars.
See https://www.w3.org/WAI/ARIA/apg/patterns/toolbar/
2024-09-18 15:48:09 +08:00
Shamim Rezaie
1e09fddd01 MDL-80750 theme_boost: Fix assumption about presence of .dropdown
Updated ARIA handling code to not assume the presence of a .dropdown
element.
- Modified keypress event listener to match
  `[role="menu"] [role="menuitem"]` directly.
- Changed keyboard navigation handling to avoid assuming `.dropdown`.
- Updated focus trapping to use `.dropdown-menu[role="dialog"]` selector
  ensuring compatibility with `.dropup` and other variations.
- Ensured focus untrapping logic uses the same improved selector.
2024-09-18 15:48:09 +08:00
Shamim Rezaie
6bc8bf6360 MDL-80750 core: Limit bulk action buttons in sticky footer to 5 2024-09-18 15:48:09 +08:00
Shamim Rezaie
512f163309 MDL-80750 mod_assign: Move quick grading submit button to sticky footer 2024-09-18 15:48:09 +08:00
Shamim Rezaie
b491cc3a49 MDL-80750 core: Maintain order of actions in renderBulkActions
The order of bulk actions was not preserved when rendering the bulk
actions content due to asynchronous operations. This fix ensures that
the actions are added to the `data.actions` array in the correct order
by using a temporary array to store the promises and then processing
them sequentially.

Also improved the JSDoc for better clarity on what the function returns
and what it resolves to.
2024-09-18 15:48:09 +08:00
Shamim Rezaie
fc5b396a69 MDL-80750 mod_assign: Show bulk action controls on the sticky footer 2024-09-18 15:48:09 +08:00
Shamim Rezaie
5f6fe3e02f MDL-80750 mod_assign: gradingtable should not print paging bar 2024-09-18 15:48:09 +08:00
Shamim Rezaie
5a5b16d207 MDL-80750 mod_assign: Show sticky footer with pagination on grading page 2024-09-18 15:48:09 +08:00
Ilya Tregubov
fb54a5a3f5 Merge branch 'MDL-80965-main' of https://github.com/ilyatregubov/moodle 2024-09-18 15:30:40 +08:00
Ilya Tregubov
9c0e3c85eb MDL-80965 mod_quiz: Code style fixes. 2024-09-18 15:29:25 +08:00
Luca Bösch
97e90f2210 MDL-80965 mod_quiz: Put back random q category on the question page. 2024-09-18 15:25:09 +08:00
Matt Porritt
75382a1e92 MDL-82411 AI: Provider Plugin - Azure AI
Add an AI provider plugin for Microsoft Azure AI.
The Azure AI provider supports generating images,
as well as generating and summarising text.
2024-09-18 17:09:59 +10:00
Sara Arjona
2d0df1da23
Merge branch 'MDL-71823-add-user-menu-hook' of https://github.com/gbarat87/moodle 2024-09-18 07:19:53 +02:00
Matt Porritt
030f5ffce7 MDL-83073 AI: Image generation - Small screen display issue
Improve the image generation model and medium and small
screen resolutions. Fixes an issue where elements overlap
and lower screen resolutions.
2024-09-18 13:14:31 +10:00
Ilya Tregubov
a921078df6 Merge branch 'main_MDL-83158' of https://github.com/mattporritt/moodle 2024-09-18 08:57:05 +08:00
AMOS bot
fa898b1010 Automatically generated installer lang files 2024-09-18 00:07:48 +00:00
Guillaume Barat
eadf38cf45 MDL-71823 user: Add hook for extending user menu 2024-09-18 08:17:40 +10:00
Paul Holden
2181edd1a7
MDL-83188 block_private_files: style expand/collapse icons correctly. 2024-09-17 17:15:11 +01:00
Paul Holden
4ee58af853
MDL-82973 tool_usertours: add missing filelib library require. 2024-09-17 16:49:08 +01:00
Sara Arjona
2892a03387
Merge branch 'MDL-82389-master' of https://github.com/ssj365/moodle 2024-09-17 17:31:41 +02:00
Sara Arjona
031edf2ab3
Merge branch 'MDL-81663-main' of https://github.com/safatshahin/moodle 2024-09-17 17:28:52 +02:00
Julien
5ec6096eea MDL-77625 question restore: test restoring a quiz into a course twice
The verifies that the previous two commits are doing the right thing.
2024-09-17 16:16:26 +01:00
Tim Hunt
c248dee33c MDL-77625 question restore: fix restore of existing questions
Continuing from the last commit, the code to restore question
bank entries, versions and questions, was not taking note of
whether the first stage had indentified questions that did not
need to be restored. This is tricky, but the mapping can only be
worked out for questions, but in the backup file, the questions are
inside the question_bank_entries, and versions, so we encounter
those first.

Now, the code just saves the QBE and QV when it encounters them,
and then does all the processing when it gets to the question,
correctly taking note of whether each question should be restored or not.
In cases where a particular question does not need to be restored,
we still set up the corresponding mappings.
2024-09-17 16:16:26 +01:00