115370 Commits

Author SHA1 Message Date
Daniel Ziegenberg
229b0dc6bf
MDL-79678 tool_mfa: use DI and PSR-20: clock
As the OTPHP library now utilizes a PSR-20: clock we can make use of it.
Also the the parameter '' will become mandatory in 12.0.0. So we are
asked to set a valid PSR Clock implementation instead of 'null'.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-08-16 19:27:41 +02:00
Daniel Ziegenberg
dc25c83a52
MDL-79678 tool_mfa: Adapt to OTPHP changes in v11
With the OTPHP upgrade from v10.x to v11.x, the behaviour of the window
feature changed substantially. With version 10, the window of timestamps
goes from `timestamp - window * period` to `timestamp + window *
period`. For example, if the window is 5, the period 30 and the
timestamp 1476822000, the OTP tested are within 1476821850 (`1476822000
- 5 * 30`) and 1476822150 (`1476822000 + 5 * 30`). In other words, this
validated the 5 OTP before and after the current timestamp. With version
11, the TOTP window acts as a time drift. If the window is 15, the
period 30, and the current timestamp is 147682209, the OTP tested are
within 147682194 (`147682209 - 15`), 147682209 and 147682224 (`147682209
+ 15`). The window shall be lower than the period. Therefore, this test
includes the previous OTP but not the next one.

This change required an adaption to align our implementation with OTPHP.
The window of valid TOTP tokens is now much narrower. This change in
functionality is a security improvement, but it also means that the time
on the device generating the TOTP token must be more accurate.  As OTPHP
restricts the window to be strictly lower than the period, our admin
setting now has a maximum allowed value of 29. To ensure we only have
valid window values, we need to update the admin setting to a value
lower than 30; therefore, we include an upgrade step.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-08-16 19:27:39 +02:00
Paul Holden
4f32fbffa2
MDL-82811 output: apply appropriate icon class in inplace editable. 2024-08-16 14:26:52 +01:00
Tim Hunt
8a662a008e MDL-82810 question bank: stop action menu from getting truncated 2024-08-16 13:34:06 +01:00
Amaia Anabitarte
ca3c2c46e8 MDL-82619 core_course: Subsections in hidden sections should be hidden 2024-08-16 14:33:43 +02:00
Paul Holden
18be12c59d
MDL-82547 javascript: remove legacy jQuery inplace editable events. 2024-08-16 10:15:22 +01:00
Paul Holden
3a4c0f32b2
MDL-82547 javascript: convert to native inplace editable events. 2024-08-16 10:15:22 +01:00
Paul Holden
968ae422c0
MDL-82220 group: check valid mapping when restoring custom fields. 2024-08-16 10:08:57 +01:00
Paul Holden
27b384e0fa
MDL-82220 backup: ensure correct group/ing custom fields are included.
We should include only the custom field values that belong to those
groups and/or groupings that are being backed up.
2024-08-16 10:08:57 +01:00
Laurent David
f3803d66b4 MDL-82376 course_format: Remove the move icon in course index
* Remove the move icon in the course index
* Make sure the mouse pointer change when able to drag and
drop an item
2024-08-16 10:20:58 +02:00
Laurent David
d75652fd16 MDL-82376 course: Delegated sections items course index full width
* Delegated sections in the course index should take the full width to be
aligned with other sections
2024-08-16 09:39:42 +02:00
Ilya Tregubov
82694f5fee MDL-82295 mod_assign: Action menus for grade and status columns.
Edit column is removed from view all submissions page. Its merged
into grade and status columns.

Co-authored-by: Mihail Geshoski <mihail@moodle.com>
2024-08-16 11:57:17 +08:00
Mihail Geshoski
afb51a72b2 MDL-82195 assign: Include submissions page link in secondary navigation
Integrates a submissions page link into the assignment's secondary
navigation, eliminates the redundant 'View all submissions' button
from the assignment's homepage and updates the existing behat tests.
2024-08-16 11:26:13 +08:00
Huong Nguyen
6cd55074c7
weekly release 4.5dev+ 2024-08-16 08:37:51 +07:00
Huong Nguyen
e2708aeacf
NOBUG: Add upgrade notes 2024-08-16 08:37:50 +07:00
Huong Nguyen
e6ea778c03
NOBUG: Fixed SVG browser compatibility 2024-08-16 08:37:01 +07:00
Paul Holden
de4e2a545a
MDL-82455 badges: link report recipients count to appropriate page. 2024-08-15 21:40:33 +01:00
Daniel Ziegenberg
793385b256
MDL-79680 libraries: Upgrade PrismJS to 1.29.0
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-08-15 18:07:37 +02:00
Andrew Nicols
d85201adcb
MDL-82778 core: Update core/fetch module to use Class 2024-08-15 22:45:47 +08:00
Paul Holden
d4a7aa1395
MDL-82006 reportbuilder: move filter Behat scenarios inside component. 2024-08-15 13:09:54 +01:00
Paul Holden
6ae3e8e2e5
MDL-82802 tool_xmldb: allow numeric characters in table names. 2024-08-15 11:51:31 +01:00
Paul Holden
5b4e858e80
MDL-74939 output: final removal of deprecated navigation namespace. 2024-08-15 11:14:18 +01:00
Paul Holden
8298abfbb1
MDL-76889 competency: add cohort data to competencies report source. 2024-08-15 11:11:40 +01:00
Paul Holden
fd18c5014e
MDL-76889 competency: implement datasource for custom reporting.
Create entity definitions for competencies, frameworks and users
for new report source to provide data for report editor.

AMOS BEGIN
 CPY [competencyframework,tool_lp],[competencyframework,core_competency]
 CPY [proficient,tool_lp],[proficient,core_competency]
 CPY [rating,tool_lp],[rating,core_competency]
 CPY [taxonomy_competency,core_competency],[competency,core_competency]
AMOS END
2024-08-15 11:11:39 +01:00
Paul Holden
6580ab2c1c
MDL-82535 roles: implement archetype custom report/entity data.
Modernise entity imports and implementation.
2024-08-15 11:11:04 +01:00
Paul Holden
19f519f155
MDL-81667 libraries: upgrade to version 4.10.0 of axe-core. 2024-08-15 10:23:22 +01:00
Paul Holden
0de8a4c250
MDL-82301 mod_feedback: remove long ago abandoned tabs element usage.
Haven't been used since 773051b98f.
2024-08-15 09:51:15 +01:00
Huong Nguyen
28ac2ad785
Merge branch 'MDL-82724-main' of https://github.com/phmemmel/moodle 2024-08-15 10:59:19 +07:00
Jun Pataleta
2c191e8072
Merge branch 'MDL-82782-main' of https://github.com/andrewnicols/moodle 2024-08-15 11:52:02 +08:00
Huong Nguyen
8df76884f9
Merge branch 'MDL-82706-main-2' of https://github.com/junpataleta/moodle 2024-08-15 10:31:57 +07:00
Jun Pataleta
06d273672d
Merge branch 'MDL-82798-main' of https://github.com/HuongNV13/moodle 2024-08-15 11:14:04 +08:00
Huong Nguyen
482ef20399
Merge branch 'MDL-81629-main' of https://github.com/NJahreis/moodle 2024-08-15 10:06:29 +07:00
Huong Nguyen
75505e33b7
Merge branch 'MDL-82758-main' of https://github.com/junpataleta/moodle 2024-08-15 09:37:33 +07:00
Huong Nguyen
aeac21463a
Merge branch 'MDL-82607' of https://github.com/timhunt/moodle 2024-08-15 09:32:08 +07:00
Huong Nguyen
847b2d6da1
MDL-82798 qtype_ddmarker: Fix Behat failure 2024-08-15 09:15:06 +07:00
Jun Pataleta
2c5f32d814
Merge branch 'MDL-82792-main' of https://github.com/sarjona/moodle 2024-08-15 10:14:57 +08:00
Daniel Ziegenberg
0de93b2b27
MDL-80641 libaries: Upgrade JMESPath to 2.7.0
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-08-14 22:03:22 +02:00
Jun Pataleta
5574092b2f
Merge branch 'MDL-82668-main' of https://github.com/andrewnicols/moodle 2024-08-14 23:26:56 +08:00
Jun Pataleta
81060486ce
Merge branch 'MDL-82686-main' of https://github.com/sarjona/moodle 2024-08-14 23:12:35 +08:00
Jun Pataleta
20dcede4b5
Merge branch 'MDL-82747-main' of https://github.com/andrewnicols/moodle 2024-08-14 23:05:06 +08:00
Andrew Nicols
a2c3df2cb2
MDL-82480 core_course: Coding style fix 2024-08-14 22:39:50 +08:00
Andrew Nicols
df01e2edc6
Merge branch 'MDL-82480-main' of https://github.com/ferranrecio/moodle 2024-08-14 22:31:16 +08:00
Andrew Nicols
08f8b58945
MDL-82747 core: Register composer autoload files
Unfortunately PHP does not provide any means to autoload the files that
a functions is located in, even if they are in an namespace.

To work around this, Composer makes use of an `autoload.files` section
in the `composer.json` file. Shortly after the Composer autoloader is
registered with the `spl_autoload_register` call it also includes any
files listed in this section.

Moodle does not do this and really we should be doing so.

This change adds a section to the autoloader registration method which
loads all of the files defined in any third-party library included in
our `lib` directory which contains any `composer.json` file with such a
stanza.
2024-08-14 21:57:20 +08:00
Daniel Ziegenberg
1a25317f42
MDL-79678 libraries: Remove unused dependency Assert
This commit removes the dependency Assert that once was required by
OTPHP, but is no longer needed as of version 11.2.0.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-08-14 15:53:44 +02:00
Daniel Ziegenberg
9762901cba
MDL-79678 libraries: Update OTPHP to 11.3.0
Notable changes:
- The OTPHP library requires now at least PHP 8.1.
- The OTPHP library now relies on the MBString extension. This extension
  is now a required dependency.
- The OTPHP library now utilizes a PSR-20: clock.

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-08-14 15:53:42 +02:00
Daniel Ziegenberg
6284ec8aac
MDL-81658 libraries: upgrade to version 6.7.5 of TCPDF
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2024-08-14 15:51:10 +02:00
Andrew Nicols
149b548c91
MDL-82782 behat: Support runtime scaling of Behat windows 2024-08-14 21:48:15 +08:00
Amaia Anabitarte
6b34d4fd94 MDL-82480 core_course: Add Move option to subsections 2024-08-14 14:31:24 +02:00
Jun Pataleta
5b15521c90
Merge branch 'MDL-82385-main' of https://github.com/dpalou/moodle 2024-08-14 19:02:57 +08:00
Sara Arjona
bd447a102d
MDL-82792 h5p: Fix random behat failures
We've started seeing various failures in Firefox and Classic.
Increasing the default window size fixes them.
2024-08-14 12:09:10 +02:00