Commit graph

3852 commits

Author SHA1 Message Date
Huong Nguyen
7c3c18c4e8
Merge branch 'MDL-62640-main' of https://github.com/meirzamoodle/moodle 2024-09-26 11:06:55 +07:00
Huong Nguyen
e148d291e8
Merge branch 'MDL-83245-main' of https://github.com/andrewnicols/moodle 2024-09-26 10:27:53 +07:00
Andrew Nicols
b9a5ed7737
MDL-83245 core_files: Update file redaction API
This change:
- Moves the API to use the `before_file_created` hook
- Remove the newly created `$notify` param for `after_file_created` hook
- Stop persisting redactable content
- Update manager to not deal with `stored_file` instances
- Correct namespace from `\core\filereact` to `\core_files\redactor`
- Add `redactor` as a valid L2 namespace within the `core_files` API
- Correct config setting names
- Adds missing unit tests
- Disables the service for PHPUnit tests

AMOS BEGIN
  MOV [fileredact,core_files],[redactor,core_files]
  MOV [fileredact,core_files],[redactor:exifremover,core_files]
  MOV [fileredact,core_files],[redactor:exifremover:emptyremovetags,core_files]
  MOV [fileredact,core_files],[redactor:exifremover:enabled,core_files]
  MOV [fileredact,core_files],[redactor:exifremover:enabled_desc,core_files]
  MOV [fileredact,core_files],[redactor:exifremover:failedprocessexiftool,core_files]
  MOV [fileredact,core_files],[redactor:exifremover:failedprocessgd,core_files]
  MOV [fileredact,core_files],[redactor:exifremover:heading,core_files]
  MOV [fileredact,core_files],[redactor:exifremover:mimetype,core_files]
  MOV [fileredact,core_files],[redactor:exifremover:mimetype_desc,core_files]
  MOV [fileredact,core_files],[redactor:exifremover:removetags,core_files]
  MOV [fileredact,core_files],[redactor:exifremover:removetags_desc,core_files]
  MOV [fileredact,core_files],[redactor:exifremover:tag:all,core_files]
  MOV [fileredact,core_files],[redactor:exifremover:tag:gps,core_files]
  MOV [fileredact,core_files],[redactor:exifremover:tooldoesnotexist,core_files]
  MOV [fileredact,core_files],[redactor:exifremover:toolpath,core_files]
  MOV [fileredact,core_files],[redactor:exifremover:toolpath_desc,core_files]
AMOS END
2024-09-26 11:24:17 +08:00
Andrew Nicols
ce119a4344
Merge branch 'MDL-82298-main' of https://github.com/andrewnicols/moodle 2024-09-25 22:44:50 +08:00
Andrew Nicols
d2f71d6b02
MDL-82298 navigation: Update behat tests 2024-09-25 22:37:56 +08:00
Karjun Loong
b3152b7311
MDL-82298 navigation: Add behat tests for secondary menu navigation 2024-09-25 22:29:39 +08:00
Kevin Percy
67379e7607 MDL-80746 behat: Update initials bar behat selector to core_course 2024-09-25 12:47:07 +08:00
meirzamoodle
4d2ad0bff7 MDL-62640 core: Adjust code for slashargument removal 2024-09-25 08:30:18 +07:00
Safat
d5bdb07c28
MDL-81924 core: Remove unused AWS classes and tests
Originally implemented as MDL-80962.
2024-09-23 10:53:30 +07:00
Andrew Nicols
10c3e4b770
MDL-81924 core_sms: Add new subsystem and plugintype
Originally implemented as MDL-80960.
2024-09-23 10:43:39 +07:00
Ilya Tregubov
7c75929ffa Merge branch 'MDL-82814-main' of https://github.com/andrewnicols/moodle 2024-09-20 10:37:05 +08:00
Jun Pataleta
fa31b3f3cb
Merge branch 'MDL-83092-main' of https://github.com/junpataleta/moodle 2024-09-20 10:30:33 +08:00
Matt Porritt
cfe65f1772
MDL-83092 AI: Placement action needs to check status of provider action
When all providers for a certain action are disabled, or if providers
are enabled but all individual actions of a type are disabled, then
a warning is shown on the placement admin settings page for actions
that have no providers available.

Also the text editor placement will not show the option to generate
images or text if there are no actions available.
2024-09-20 10:26:49 +08:00
Sara Arjona
e4e8bc8bbb
Merge branch 'MDL-82845-main' of https://github.com/ferranrecio/moodle 2024-09-19 18:29:37 +02:00
ferranrecio
4d3d5b3687 MDL-82845 core_course: method to get all cm_info from a section_info 2024-09-19 10:30:57 +02: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
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
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
Sara Arjona
b163e9c2d0
Merge branch 'MDL-82541-main' of https://github.com/ferranrecio/moodle 2024-09-16 09:38:35 +02:00
David Woloszyn
2b1d330783 MDL-82626 hub: Registration collects AI usage data 2024-09-13 13:07:23 +10:00
ferranrecio
9c55a02fb1 MDL-82541 core_course: fix orphaned sections logic 2024-09-12 16:07:42 +02:00
ferranrecio
ebaf06848c MDL-82541 core_courseformat: delegated sections in disabled plugins 2024-09-12 16:07:42 +02:00
Melanie Treitinger
89d07dba51 MDL-74917 core: fix typo in function stats_get_post_actions
Fix phpunit test and apply coding guidelines.
2024-09-12 10:15:57 +02:00
Matt Porritt
086ac975f0
MDL-82627 AI: LMS Subsystem
Initial implementation of the LMS AI subsystem.
Originally implemented in MDL-80889

Co-authored-by: Meirza <meirza.arson@moodle.com>
2024-09-11 11:02:51 +07: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
5e4fd26115 MDL-63399 behat: new steps to verify downloads
Co-authored-by: Tim Hunt <T.J.Hunt@open.ac.uk>
2024-09-06 12:03:29 +08:00
Sara Arjona
5d5938a7ed
Merge branch 'MDL-82490-main' of https://github.com/laurentdavid/moodle 2024-09-03 19:40:38 +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
Laurent David
7384a8bbad MDL-82490 core_output: Add disabled option for url_select
* Add a way to disable (and enable later) option in the url select
selector.
2024-09-02 17:43:33 +02:00
Jun Pataleta
4fcff065bb
Merge branch 'MDL-82828-main' of https://github.com/andrewnicols/moodle 2024-09-02 17:52:12 +08:00
Huong Nguyen
1d5a323677
Merge branch 'MDL-82790-main' of https://github.com/andrewnicols/moodle 2024-08-29 10:07:09 +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
Huong Nguyen
d585ad91b6
MDL-69684 session_redis: Improve PHPUnit test 2024-08-26 10:52:26 +07:00
Huong Nguyen
4f9ab7d3ff
Merge branch 'MDL-82195-main' of https://github.com/mihailges/moodle 2024-08-26 09:19:46 +07:00
Huong Nguyen
a31ffef402
Merge branch 'MDL-82347-main' of https://github.com/davewoloszyn/moodle 2024-08-23 08:52:10 +07:00
Jun Pataleta
2810c13ec9
Merge branch 'MDL-79215-main' of https://github.com/MichaelReyesCatcan/moodle 2024-08-22 23:57:26 +08:00
KarlReyesCatalyst
07b2224e9a MDL-79215 lib/graphlib: Fix unrelated coding style in graphlib_test.php 2024-08-22 10:30:18 -04:00
KarlReyesCatalyst
10705ab716 MDL-79215 lib/graphlib: Typecasting round() function to INT. 2024-08-22 10:00:01 -04:00
Huong Nguyen
508dd8c77e
Merge branch 'MDL-82110-main' of https://github.com/andrewnicols/moodle 2024-08-21 17:43:11 +07:00
Sara Arjona
253383fc23
Merge branch 'MDL-82377-main' of https://github.com/ferranrecio/moodle 2024-08-21 10:17:08 +02:00
Andrew Nicols
4e4a6c6580
MDL-82110 core: Remove debugging for unmigrated hooks in unit tests 2024-08-20 20:28:50 +08:00
Andrew Nicols
9fe7dedb9f
MDL-82790 core: Remove filter_tidy 2024-08-20 20:22:55 +08:00
Andrew Nicols
3d5bca08bf
MDL-82828 core: Add test for html2text trailing space between tags 2024-08-20 15:04:02 +08:00
Andrew Nicols
32fce988e9
MDL-82828 core: Rewrite html2text tests 2024-08-20 14:54:39 +08:00
Jun Pataleta
99f7cb0a8a
Merge branch 'MDL-82532-main' of https://github.com/sammarshallou/moodle 2024-08-20 11:04:11 +08:00
Huong Nguyen
dca18ebca3
Merge branch 'MDL-81634-main' of https://github.com/andrewnicols/moodle 2024-08-20 09:30:44 +07:00
ferranrecio
010f411030 MDL-82377 core_course: delegated section user visible 2024-08-19 17:00:11 +02:00