Commit graph

885 commits

Author SHA1 Message Date
Víctor Déniz
3e6892af4b Merge branch 'MDL-69513-dkim-settings' of https://github.com/brendanheywood/moodle 2020-10-21 11:57:11 +01:00
Eloy Lafuente (stronk7)
07c1522d88 MDL-67673 phpunit: Document all the changes in upgrade.txt
This includes:

- Breaking changes (return void + PHP 7.1 min requirement).
- Deprecations and removals.
- Specifically DbUnit and its replacement.
- Printer showing how to rerun tests removed.
2020-10-21 12:46:00 +02:00
Eloy Lafuente (stronk7)
447316a9f6 MDL-67673 phpunit: deprecate old phpunit/dbunit stuff
Apply the standard deprecation procedure to the old APIs, to
be removed in Moodle 4.2 (MDL-69882). Existing unit tests
cover the deprecation debugging.

Originally MDL-64600
2020-10-21 12:46:00 +02:00
Brendan Heywood
1b47d4bc0e MDL-69513 email: Add support for email DKIM signatures 2020-10-19 16:20:24 +11:00
sam marshall
edb5cd0de4 MDL-69687 DB: Add API for deleting data based on subquery
The new API works on normal databases (by deleting data based on the
subquery) and also on MySQL (by deleting the data using a weird join
on the subquery).
2020-10-16 18:20:23 +01:00
Víctor Déniz
df61149804 Merge branch 'MDL-69779-better-x-redirect-by' of https://github.com/brendanheywood/moodle 2020-10-13 23:39:29 +01:00
Andrew Nicols
99ed3c3f1e Merge branch 'MDL-66928-request-dir-purge-bug' of https://github.com/brendanheywood/moodle 2020-10-13 11:48:41 +08:00
Brendan Heywood
9fabe1dda5 MDL-66928 core: Move request dirs to system tmp instead of localcache 2020-10-13 14:17:39 +11:00
Brendan Heywood
16c209cbc0 MDL-69779 core: Improved the X-Redirect-By header when debugging is on 2020-10-11 09:48:12 +11:00
Paul Holden
96ec6ee826 MDL-69825 admin: externalpage class using a callback for access check.
Co-Authored-By: Marina Glancy <marina@moodle.com>
2020-10-09 15:09:09 +01:00
David Mudrák
9ce768008c MDL-69050 lang: Stop using the term blacklist in mustache output engine 2020-09-24 19:41:58 +02:00
David Mudrák
00b6772114 MDL-69050 lang: Rename and deprecate filetypes_util methods 2020-09-24 19:41:58 +02:00
Eloy Lafuente (stronk7)
89c6402ba0 Merge branch 'MDL-66934-coursehistory' of https://github.com/cengage/moodle into master 2020-09-22 14:38:42 +02:00
Claude Vervoort
5b8c646e68 MDL-66934 mod_lti: support context history param 2020-09-18 14:11:34 -04:00
Sara Arjona
1752b44d4a Merge branch 'MDL-69548-master' of git://github.com/mickhawkins/moodle into master 2020-09-18 09:40:35 +02:00
Michael Hawkins
5dc3df0e0c MDL-69548 core: Adding the http-message library
This is a dependency of ZipStream
2020-09-18 10:01:09 +08:00
Michael Hawkins
8eee0f5e26 MDL-69548 core: Adding the php-enum library
This is a dependency of ZipStream
2020-09-17 14:16:59 +08:00
Michael Hawkins
6d3c27fe7f MDL-69548 core: Adding the ZipStream library
This allows downloading of zip files as a stream, and will be used by
the Download course content project (MDL-69540).
2020-09-17 14:16:59 +08:00
Sara Arjona
67a11150de MDL-68909 h5p: move temporary editor files to draft area 2020-09-10 13:42:16 +02:00
Eloy Lafuente (stronk7)
432b9a9075 MDL-69521 core: Move all comments in code from 4.3 to 4.1 2020-09-08 18:59:46 +02:00
Sara Arjona
c9bd1a6652 Merge branch 'MDL-63387-2' of https://github.com/paulholden/moodle into master 2020-09-01 16:58:00 +02:00
Paul Holden
a9165e69b4 MDL-63387 access: add parameter to define how role names are returned. 2020-09-01 12:05:15 +01:00
Sara Arjona
124a368a11 Merge branch 'MDL-38350-master' of https://github.com/sammarshallou/moodle into master 2020-09-01 07:26:42 +08:00
Adrian Greeve
134cdddfc4 Merge branch 'MDL-69479-master' of git://github.com/mihailges/moodle 2020-08-27 11:41:10 +08:00
Mikhail Golenkov
b465a541ae MDL-67211 Tasks: Record when a task is running.
Co-authored-by: Sam Marshall <s.marshall@open.ac.uk>
2020-08-25 17:08:03 +10:00
Eloy Lafuente (stronk7)
9a79c34eb6 MDL-69479 upgrade: Change all 4.0 occurrences to 3.10
Under parallel development, when something is worth being commented
in upgrade.txt notes, it will be applied to all the development branches
using the "earliest" one to be released. So, if something changes
in 3.10 (and also is applied to master), the upgrade.txt notes will
show 3.10 in both branches.

Of course, if something only goes to one dev branch (say master), then the
master version will be used in the notes (4.0 in this case).
2020-08-21 23:57:17 +02:00
sam marshall
9538ba0d67 MDL-38350 Lib: Rename directory before removing it, to reduce races 2020-08-20 16:52:28 +01:00
sam marshall
b58009596f MDL-68729 Admin: Allow validation of admin_setting_configselect
The admin_setting_configselect admin setting did not support validation.
It was possible to validate only by using a subclass.

This change allows validation by a callback function. It also makes it
slightly easier to handle validation in a subclass if you want to do
that.

The main advantage is for cases where a setting is not generic but
is only ever going to be required in one place, and it creates
unnecessary clutter to make a new subclass.
2020-08-06 12:12:01 +01:00
sam marshall
f87597aae3 MDL-68729 Admin: Allow lazy-load of admin_setting_configselect
The admin_setting_configselect admin setting already supported lazy
loading, but this was only available for subclasses. This change
means you can use it directly within the admin setting.

The main advantage is for cases where a setting is not generic but
is only ever going to be required in one place, and it creates
unnecessary clutter to make a new subclass.
2020-08-06 10:52:13 +01:00
Mihail Geshoski
c4296f77e0 MDL-69238 core: Remove coursecat_sortable_records class 2020-07-27 09:43:16 +08:00
Andrew Nicols
4a4a367251 MDL-69215 output: Correct font awesome for themes 2020-07-16 07:29:22 +08:00
Jake Dallimore
389744710a Merge branch 'MDL-62982-master' of git://github.com/mihailges/moodle 2020-07-09 09:07:49 +08:00
Jake Dallimore
848f08e126 Merge branch 'MDL-67477-master' of git://github.com/mihailges/moodle 2020-07-09 08:38:18 +08:00
Jake Dallimore
3d7a8a09ba Merge branch 'MDL-63966' of https://github.com/Chocolate-lightning/moodle 2020-07-07 13:54:27 +08:00
John Okely
d464fb43d6 MDL-55192 log: Final deprecation of add_to_log 2020-07-06 11:54:10 +08:00
Mathew May
b27a27adcd MDL-63966 core: Final deprecations in deprecatedlib 2020-07-06 11:44:01 +08:00
Mihail Geshoski
8cdb2fcc0e MDL-62982 core_form: Final deprecation of the htmleditor form element 2020-07-06 10:02:58 +08:00
Mihail Geshoski
8efa87ed6f MDL-67477 lib: Remove renamed classes 2020-07-06 10:00:22 +08:00
Eloy Lafuente (stronk7)
2cadeca3eb Merge branch 'MDL-69072-master' of git://github.com/andrewnicols/moodle 2020-07-01 23:20:34 +02:00
Mihail Geshoski
e13cbf9e27 MDL-60621 js: Add ability to set a modal to be scrollable or not
With this change the modal can be configured to be scrollable or not.
If enabled to be 'scrollable', the modal's body will become scrollable
when the modal's height exceeds the browser's height. This is useful
in cases where the content in the modal is quite large and extends the
modal beyond the browser's height, which usually results in a bad UI.
If 'scrollable' is not explicitely configured, it will be set as 'true'
by default as in most cases it would be the expected behaviour.
2020-06-30 10:18:19 +08:00
Andrew Nicols
aacfff0bc8 MDL-69072 behat: Remove restart_browser_after feature
This is no longer required as the Mink session is restarted after every
test regardless.
2020-06-29 11:05:53 +08:00
Adrian Greeve
1c1fd15b18 Merge branch 'MDL-68333-master' of git://github.com/marinaglancy/moodle 2020-05-20 13:17:58 +08:00
Adrian Greeve
59d0090fda Merge branch 'MDL-67548-master' of https://github.com/kabalin/moodle 2020-05-20 08:35:18 +08:00
Marina Glancy
5b529aca15 MDL-68333 testing: trigger user_created event in user generator 2020-05-19 19:11:54 +02:00
Jun Pataleta
8a34d36b56 Merge branch 'MDL-52846' of git://github.com/stronk7/moodle 2020-05-15 11:58:39 +08:00
Sara Arjona
ccc7a30b3e Merge branch 'MDL-68200-master-take2' of git://github.com/rezaies/moodle 2020-05-14 13:10:01 +02:00
Michael Hawkins
44e47eff9a MDL-68246 lib: Prepare for participants filter multiple groups support
These function updates are in preparation for the participants_search
class, which will be used to support multiple values per filter when
filtering the participants page.
2020-05-14 15:47:52 +08:00
Eloy Lafuente (stronk7)
d2ecc75e2f MDL-52846 tasks: complete docs and move functions to deprecatedlib
- Add MDL codes to @deprecated.
- Add @todo tag for future 4.3 phase 2 deprecation.
- Deprecate global scope functions:
  - cron_execute_plugin_type().
  - cron_bc_hack_plugin_functions().
  (moving them to deprecatelib).
- Document it in main upgrade.txt
2020-05-12 17:41:13 +02:00
Ruslan Kabalin
72316a9f4e MDL-67548 core_course: Add more category deletion hooks.
Introduce new hooks for plugin developers:

  - <component>_can_course_category_delete($category)
  - <component>_can_course_category_delete_move($category, $newcategory)
These hooks allow plugin developers greater control over category deletion. Plugin can return false in those
functions if category deletion or deletion with content move to the new parent category is not permitted.

  - <component>_pre_course_category_delete_move($category, $newcategory)
This hook is expanding functionality of existing <component>_pre_course_category_delete hook and allow plugin developers
to execute code prior to category deletion when its content is moved to another category.

 - <component>_get_course_category_contents($category)
This hook allow plugin developers to add information that is displayed on category deletion form. Function should
return string, which will be added to the list of category contents shown on the form.
2020-05-12 14:30:14 +01:00
Shamim Rezaie
4f9bcde969 MDL-68200 core: Add type param to core_get_user_dates external function 2020-05-12 10:59:02 +10:00