10426 Commits

Author SHA1 Message Date
Jun Pataleta
aeb079fde0
NOBUG: Add upgrade notes 2024-09-07 06:48:52 +08:00
Jun Pataleta
eb840870a6
Merge branch 'MDL-63399-main' of https://github.com/lameze/moodle 2024-09-06 12:29:15 +08:00
Simey Lameze
3ac7a2f6c5 MDL-63399 behat: update existing tests to use the better download steps
Co-authored-by: Tim Hunt <T.J.Hunt@open.ac.uk>
2024-09-06 12:14:07 +08:00
Sara Arjona
e812811b11
Merge branch 'MDL-81767-main' of https://github.com/roland04/moodle 2024-09-03 19:35:20 +02:00
Jun Pataleta
ea2d3558d9
NOBUG: Add upgrade notes 2024-09-03 20:05:49 +08:00
Mikel Martín
c4470cc7f9 MDL-81767 mod_subsection: Add hook for activitychooserbutton
- Add the new 'FEATURE_QUICKCREATE' to mod_subsection.
- Implement the 'before_activitychooserbutton_exported' hook callback that adds
  an extra action_link to add subsections in a course section.
- Add a new permission class.
2024-09-03 13:35:04 +02:00
Ilya Tregubov
f3a7b673c1 Merge branch 'main_MDL-66151' of https://github.com/mattporritt/moodle 2024-09-03 11:07:47 +08:00
Trisha Milan
e52fbd2f84 MDL-66151 Performance: Session Manager modularisation
Storage of session metadata has moved into the session handler class.
This allows for other classes to fully control session handling and
removes the dependancy on the core sessions database table.

Previously, the standard method of interaction with the
session metadata was direct DB calls; this may break other plugins as there
are now proper APIs available through the session manager.

Co-authored-by: Darren Cocco <moodle@darren.cocco.id.au>
Co-authored-by: Trisha Milan <trishamilan@catalyst-au.net>
Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2024-09-03 13:04:04 +10:00
Ilya Tregubov
71ede9e192 Merge branch 'MDL-75850-main-fix' of https://github.com/meirzamoodle/moodle 2024-09-03 10:17:17 +08:00
Huong Nguyen
7aef6e21cb
NOBUG: Add upgrade notes 2024-08-29 18:09:49 +07:00
Jun Pataleta
a84fb7c075
Merge branch 'MDL-82651-main' of https://github.com/lameze/moodle 2024-08-29 11:59:31 +08:00
Jun Pataleta
3a45faf1b6
Merge branch 'MDL-82802' of https://github.com/paulholden/moodle 2024-08-29 11:39:57 +08:00
Huong Nguyen
2b0b6e2177
Merge branch 'MDL-82862-main' of https://github.com/sarjona/moodle 2024-08-29 10:29:49 +07:00
meirzamoodle
72b43c3541 MDL-75850 core: file redact
File redact is a core plugin to remove or obsure from a file (image, doc) prior to publication/release.
Currently, it has an EXIF remover service using exiftool command, but it is also possible to
add other services related to file redacting.

The plugin admin settings is under Server as it's parent.

Co-authored-by: Huong Nguyen <huongnv13@gmail.com>
2024-08-28 17:17:08 +07:00
Simey Lameze
b66d4e12bf MDL-82651 behat: wait for button to exist before clicking 2024-08-28 13:54:09 +08:00
Marina Glancy
bb466df202 MDL-82567 core: Add has_capability method
Co-authored-by: David Woloszyn <david.woloszyn@moodle.com>
Co-authored-by: Jun Pataleta <jun@moodle.com>
2024-08-28 03:34:17 +00:00
Huong Nguyen
5053f2b81d
Merge branch 'MDL-82535' of https://github.com/paulholden/moodle 2024-08-27 10:04:55 +07:00
Huong Nguyen
4f25ac1044
Merge branch 'MDL-82158-main' of https://github.com/andrewnicols/moodle 2024-08-27 10:01:38 +07:00
Jun Pataleta
76cacbd856
Merge branch 'MDL-82297-main' of https://github.com/laurentdavid/moodle 2024-08-27 10:00:31 +08:00
Laurent David
fbbf8715ef MDL-82297 core: Add notification to warn admins
* In Moodle 5.0 we will remove Chat and Survey module
and we will need to announce it beforehand
2024-08-26 14:49:02 +02:00
Laurent David
29b2bfe51f MDL-82297 core: Improve core notification message
* Improve the notification message so it can have a
title and titleicon.
2024-08-26 14:49:02 +02:00
Shamim Rezaie
a19f9cbfe2 Merge branch 'MDL-82006' of https://github.com/paulholden/moodle 2024-08-24 16:21:20 +10:00
Sara Arjona
7ce18d2edb
NOBUG: Add upgrade notes 2024-08-23 16:04:48 +02:00
Jun Pataleta
6b282fd7a3
MDL-79678 factor_totp: Use correct plugin name in upgrade savepoint 2024-08-23 14:15:04 +08:00
Jake Dallimore
d18c23bea8
Merge branch 'MDL-82863-main' of https://github.com/sarjona/moodle 2024-08-23 10:43:21 +08:00
Sara Arjona
62c2c6f385
MDL-82862 tool_lp: Update edit icon for learning plans
The edit icon in the learning plans page has been replaced from pen
to cog, for consistency with changes done in MDL-82211.
This patch also reduces the size for this icon.
2024-08-22 13:55:06 +02:00
Sara Arjona
2142377dda
MDL-82863 tool_generator: Add missing BEHAT_TEST constant
The tool_generator now defines the BEHAT_TEST constant to ensure
that Behat generators are consistently utilized.
2024-08-22 13:23:07 +02:00
Huong Nguyen
29bbead33a
Merge branch 'MDL-79011-main' of https://github.com/andrewnicols/moodle 2024-08-22 10:30:12 +07:00
Andrew Nicols
fc7945cbc3
MDL-79011 core: Convert after_config callback to hook 2024-08-22 10:52:25 +08:00
Huong Nguyen
c6bdae8f76
Merge branch 'MDL-82212-main' of https://github.com/sarjona/moodle 2024-08-21 17:35:59 +07:00
Jun Pataleta
0909b814aa
Merge branch 'MDL-79678_upgrade-otphp' of https://github.com/ziegenberg/moodle 2024-08-21 16:52:33 +08:00
Sara Arjona
c77a0dad13
MDL-82212 behat: Display error when deprecated icons are found
A check for deprecated icons has been integrated into Behat tests.
This check can be disabled by adding the --no-icon-deprecations flag
to the Behat initialization command.
2024-08-21 07:05:14 +02:00
Huong Nguyen
2e8c1d1bb3
Merge branch 'MDL-82175-cron-logs' of https://github.com/brendanheywood/moodle 2024-08-21 11:51:18 +07:00
Jun Pataleta
8e20564a18
Merge branch 'MDL-78785_main_toolbrickfield_rgbcolorcontrasts' of https://github.com/brickfield/moodle 2024-08-21 11:49:30 +08:00
Andrew Nicols
f31d9ebc8c
MDL-82158 core: Remove uses of cache/lib.php 2024-08-20 15:47:14 +08:00
Huong Nguyen
dca18ebca3
Merge branch 'MDL-81634-main' of https://github.com/andrewnicols/moodle 2024-08-20 09:30:44 +07:00
Brendan Heywood
340e8b120a MDL-82175 cron: Improved task view logs page 2024-08-19 23:30:25 +10:00
raortegar
56a1945b87 MDL-81130 core_admin: Update copy of alert to register site 2024-08-19 08:32:08 +02:00
Karen Holland
7ca362c8dc MDL-78785 tool_brickfield: Processing rgb & rgba color contrasts
Including rgb(), rgba() processing for colour contrast checking.
  Including review requests :void and @covers for phpunit testing.
2024-08-16 17:34:44 +00:00
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
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
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
6580ab2c1c
MDL-82535 roles: implement archetype custom report/entity data.
Modernise entity imports and implementation.
2024-08-15 11:11:04 +01:00
Huong Nguyen
aeac21463a
Merge branch 'MDL-82607' of https://github.com/timhunt/moodle 2024-08-15 09:32:08 +07:00
Jun Pataleta
20dcede4b5
Merge branch 'MDL-82747-main' of https://github.com/andrewnicols/moodle 2024-08-14 23:05:06 +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