moodle.git
3 years agoMDL-63658 core_favourites: adding paging support to the service layer
Jake Dallimore [Tue, 9 Oct 2018 03:10:21 +0000 (11:10 +0800)]
MDL-63658 core_favourites: adding paging support to the service layer

3 years agoMDL-63658 core_favourites: implement privacy API for favourites
Jake Dallimore [Tue, 2 Oct 2018 04:31:03 +0000 (12:31 +0800)]
MDL-63658 core_favourites: implement privacy API for favourites

3 years agoMDL-63658 core_favourites: namespace the repositories and services
Jake Dallimore [Tue, 2 Oct 2018 00:25:25 +0000 (08:25 +0800)]
MDL-63658 core_favourites: namespace the repositories and services

3 years agoMDL-63658 core_favourites: add business logic aware service layer
Jake Dallimore [Mon, 17 Sep 2018 00:40:13 +0000 (08:40 +0800)]
MDL-63658 core_favourites: add business logic aware service layer

3 years agoMDL-63658 core_favourites: add a user favourites repository
Jake Dallimore [Mon, 17 Sep 2018 00:38:50 +0000 (08:38 +0800)]
MDL-63658 core_favourites: add a user favourites repository

3 years agoMDL-63658 core_favourites: add tables to the subsystem
Jake Dallimore [Mon, 10 Sep 2018 03:06:35 +0000 (11:06 +0800)]
MDL-63658 core_favourites: add tables to the subsystem

3 years agoMDL-63658 core_favourites: introduce the favourites subsystem to core
Jake Dallimore [Mon, 10 Sep 2018 01:18:28 +0000 (09:18 +0800)]
MDL-63658 core_favourites: introduce the favourites subsystem to core

3 years agoon-demand release 3.6dev+
Eloy Lafuente (stronk7) [Tue, 16 Oct 2018 14:20:23 +0000 (16:20 +0200)]
on-demand release 3.6dev+

3 years agoMerge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
Eloy Lafuente (stronk7) [Tue, 16 Oct 2018 14:20:21 +0000 (16:20 +0200)]
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install

3 years agoMerge branch 'MDL-62960-master' of git://github.com/rezaies/moodle
Damyon Wiese [Tue, 16 Oct 2018 03:43:24 +0000 (11:43 +0800)]
Merge branch 'MDL-62960-master' of git://github.com/rezaies/moodle

3 years agoMerge branch 'MDL-63337-master' of git://github.com/damyon/moodle
Jun Pataleta [Tue, 16 Oct 2018 02:31:26 +0000 (10:31 +0800)]
Merge branch 'MDL-63337-master' of git://github.com/damyon/moodle

3 years agoMDL-63337 enrol: Fix behat test
Damyon Wiese [Tue, 16 Oct 2018 02:08:12 +0000 (10:08 +0800)]
MDL-63337 enrol: Fix behat test

The link to the course homepage now requires javascript, by directly navigating to the course page
we can still avoid the need for javascript in this test.

3 years agoMDL-62960 calendar: Visuall indicator for valid course event drop zones
Shamim Rezaie [Mon, 6 Aug 2018 07:36:36 +0000 (17:36 +1000)]
MDL-62960 calendar: Visuall indicator for valid course event drop zones

3 years agoMDL-62960 calendar: Rename get_module_timestamp_min/max_limit methods
Shamim Rezaie [Mon, 6 Aug 2018 07:35:04 +0000 (17:35 +1000)]
MDL-62960 calendar: Rename get_module_timestamp_min/max_limit methods

The methods get_module_timestamp_min_limit() and get_module_timestamp_max_limit()
are doing generic stuff and can be used for other calendar event types as well.
I have renamed them to get_timestamp_min_limit() and get_timestamp_max_limit() respectively.

3 years agoMDL-62960 calendar: Implementing course events validity check callback
Shamim Rezaie [Mon, 6 Aug 2018 06:42:10 +0000 (16:42 +1000)]
MDL-62960 calendar: Implementing course events validity check callback

3 years agoMDL-62960 calendar: Added range check callback for course events
Shamim Rezaie [Mon, 6 Aug 2018 06:35:45 +0000 (16:35 +1000)]
MDL-62960 calendar: Added range check callback for course events

Added core_calendar_get_valid_event_timestart_range callback for course events

3 years agoMerge branch 'MDL-63421' of git://github.com/stronk7/moodle
Andrew Nicols [Tue, 16 Oct 2018 00:49:34 +0000 (08:49 +0800)]
Merge branch 'MDL-63421' of git://github.com/stronk7/moodle

3 years agoMerge branch 'MDL-63603-INR' of https://github.com/danielneis/moodle
Andrew Nicols [Tue, 16 Oct 2018 00:34:58 +0000 (08:34 +0800)]
Merge branch 'MDL-63603-INR' of https://github.com/danielneis/moodle

3 years agoMerge branch 'MDL-63583-master' of git://github.com/jleyva/moodle
Eloy Lafuente (stronk7) [Mon, 15 Oct 2018 22:29:02 +0000 (00:29 +0200)]
Merge branch 'MDL-63583-master' of git://github.com/jleyva/moodle

3 years agoMerge branch 'MDL-63456-master' of git://github.com/merrill-oakland/moodle
Eloy Lafuente (stronk7) [Mon, 15 Oct 2018 22:15:46 +0000 (00:15 +0200)]
Merge branch 'MDL-63456-master' of git://github.com/merrill-oakland/moodle

3 years agoMerge branch 'MDL-62319-master' of git://github.com/damyon/moodle
Eloy Lafuente (stronk7) [Mon, 15 Oct 2018 21:54:51 +0000 (23:54 +0200)]
Merge branch 'MDL-62319-master' of git://github.com/damyon/moodle

3 years agoMerge branch 'MDL-63102-master' of git://github.com/peterRd/moodle
Eloy Lafuente (stronk7) [Mon, 15 Oct 2018 21:34:45 +0000 (23:34 +0200)]
Merge branch 'MDL-63102-master' of git://github.com/peterRd/moodle

3 years agoMerge branch 'MDL-63337-master-fix' of https://github.com/junpataleta/moodle
Eloy Lafuente (stronk7) [Mon, 15 Oct 2018 14:24:49 +0000 (16:24 +0200)]
Merge branch 'MDL-63337-master-fix' of https://github.com/junpataleta/moodle

3 years agoMDL-63337 block_myoverview: Fix illegal whitespaces
Jun Pataleta [Mon, 15 Oct 2018 14:06:55 +0000 (22:06 +0800)]
MDL-63337 block_myoverview: Fix illegal whitespaces

3 years agoMerge branch 'MDL-63337-master' of git://github.com/bmbrands/moodle
Jun Pataleta [Mon, 15 Oct 2018 13:03:16 +0000 (21:03 +0800)]
Merge branch 'MDL-63337-master' of git://github.com/bmbrands/moodle

3 years agoMDL-63431 atto_media: Shorten line length
David Monllao [Mon, 15 Oct 2018 08:23:48 +0000 (10:23 +0200)]
MDL-63431 atto_media: Shorten line length

3 years agoMerge branch 'MDL-63431-master' of https://github.com/kabalin/moodle
David Monllao [Mon, 15 Oct 2018 07:13:53 +0000 (09:13 +0200)]
Merge branch 'MDL-63431-master' of https://github.com/kabalin/moodle

3 years agoMerge branch 'MDL-63352-master' of git://github.com/peterRd/moodle
Damyon Wiese [Mon, 15 Oct 2018 06:50:10 +0000 (14:50 +0800)]
Merge branch 'MDL-63352-master' of git://github.com/peterRd/moodle

3 years agoMDL-63352 block_timeline: Persist user preference on timeline
Peter [Thu, 4 Oct 2018 07:57:04 +0000 (15:57 +0800)]
MDL-63352 block_timeline: Persist user preference on timeline

* Persist sort preference to the user table
* Persist filter preferences to the user table
* Add behat tests to test persistence
* Add the gdpr exports for the user preferences as well as unit tests for the same
* Updated view_nav.min

3 years agoMDL-63337 block_myoverview: enrol_get_my_courses sort ul.timeaccess
Bas Brands [Mon, 15 Oct 2018 06:42:08 +0000 (08:42 +0200)]
MDL-63337 block_myoverview: enrol_get_my_courses sort ul.timeaccess

3 years agoMDL-63337 block_myoverview: add improved block myoverview
Bas Brands [Mon, 15 Oct 2018 06:42:08 +0000 (08:42 +0200)]
MDL-63337 block_myoverview: add improved block myoverview

3 years agoMerge branch 'MDL-63041-master' of git://github.com/bmbrands/moodle
Damyon Wiese [Mon, 15 Oct 2018 05:29:31 +0000 (13:29 +0800)]
Merge branch 'MDL-63041-master' of git://github.com/bmbrands/moodle

3 years agoMerge branch 'MDL-63542-master' of git://github.com/jleyva/moodle
Andrew Nicols [Mon, 15 Oct 2018 02:57:38 +0000 (10:57 +0800)]
Merge branch 'MDL-63542-master' of git://github.com/jleyva/moodle

3 years agoAutomatically generated installer lang files
AMOS bot [Mon, 15 Oct 2018 00:07:11 +0000 (00:07 +0000)]
Automatically generated installer lang files

3 years agoMDL-63431 atto_media: Fix non-unique id issues and extend tests.
Ruslan Kabalin [Fri, 12 Oct 2018 11:16:33 +0000 (12:16 +0100)]
MDL-63431 atto_media: Fix non-unique id issues and extend tests.

3 years agoMDL-63431 atto_media: Add title global attribute support.
Ruslan Kabalin [Thu, 11 Oct 2018 13:47:47 +0000 (14:47 +0100)]
MDL-63431 atto_media: Add title global attribute support.

3 years agoMDL-63102 core_block: Reduced spacing between blocks
Peter [Tue, 9 Oct 2018 05:54:11 +0000 (13:54 +0800)]
MDL-63102 core_block: Reduced spacing between blocks

Reduce the calculated bottom margin between blocks to half

3 years agoweekly release 3.6dev
Eloy Lafuente (stronk7) [Thu, 11 Oct 2018 11:22:36 +0000 (13:22 +0200)]
weekly release 3.6dev

3 years agoNOBUG: Fixed SVG browser compatibility
Eloy Lafuente (stronk7) [Thu, 11 Oct 2018 11:22:34 +0000 (13:22 +0200)]
NOBUG: Fixed SVG browser compatibility

3 years agoMerge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
Eloy Lafuente (stronk7) [Thu, 11 Oct 2018 11:22:33 +0000 (13:22 +0200)]
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install

3 years agoMDL-62319 assignfeedback_editpdf: Disable touch scrolling
Damyon Wiese [Thu, 13 Sep 2018 03:29:07 +0000 (11:29 +0800)]
MDL-62319 assignfeedback_editpdf: Disable touch scrolling

Assignment editpdf canvas provides it's own scroll tool and the native browser one breaks
the rest of the tools for the canvas. Turn it off.

3 years agoMDL-62319 Assign: Grading interface is broken when using iOS 11.3 devices
Nathan Nguyen [Mon, 20 Aug 2018 02:56:34 +0000 (12:56 +1000)]
MDL-62319 Assign: Grading interface is broken when using iOS 11.3 devices

3 years agoAutomatically generated installer lang files
AMOS bot [Thu, 11 Oct 2018 00:07:10 +0000 (00:07 +0000)]
Automatically generated installer lang files

3 years agoMerge branch 'MDL-62891-master-callable_name' of git://github.com/mudrd8mz/moodle
Eloy Lafuente (stronk7) [Wed, 10 Oct 2018 21:29:40 +0000 (23:29 +0200)]
Merge branch 'MDL-62891-master-callable_name' of git://github.com/mudrd8mz/moodle

3 years agoMerge branch 'MDL-63225-master' of git://github.com/jleyva/moodle
Eloy Lafuente (stronk7) [Wed, 10 Oct 2018 21:24:27 +0000 (23:24 +0200)]
Merge branch 'MDL-63225-master' of git://github.com/jleyva/moodle

3 years agoMerge branch 'MDL-51803-master-handle' of https://github.com/marinaglancy/moodle
David Monllao [Wed, 10 Oct 2018 12:27:17 +0000 (14:27 +0200)]
Merge branch 'MDL-51803-master-handle' of https://github.com/marinaglancy/moodle

3 years agoMerge branch 'MDL-63373' of git://github.com/stronk7/moodle
David Monllao [Wed, 10 Oct 2018 10:56:38 +0000 (12:56 +0200)]
Merge branch 'MDL-63373' of git://github.com/stronk7/moodle

3 years agoMDL-51803 core: sortable list not passive touch events
Marina Glancy [Wed, 10 Oct 2018 10:34:46 +0000 (12:34 +0200)]
MDL-51803 core: sortable list not passive touch events

Some browsers do not support options passed to the event browsers. Check if browser
supports it before adding options.

3 years agoMDL-51803 core: encourage use drag handle in sortable list
Marina Glancy [Wed, 10 Oct 2018 08:48:14 +0000 (10:48 +0200)]
MDL-51803 core: encourage use drag handle in sortable list

3 years agoMerge branch 'MDL-61245-master' of git://github.com/jleyva/moodle
Eloy Lafuente (stronk7) [Wed, 10 Oct 2018 09:14:57 +0000 (11:14 +0200)]
Merge branch 'MDL-61245-master' of git://github.com/jleyva/moodle

3 years agoMDL-60710 course: Fix incorrect reference to role
David Monllao [Wed, 10 Oct 2018 08:57:43 +0000 (10:57 +0200)]
MDL-60710 course: Fix incorrect reference to role

3 years agoMDL-61245 core_blog: New Web Service core_blog_view_entries
Juan Leyva [Fri, 19 Jan 2018 11:57:24 +0000 (12:57 +0100)]
MDL-61245 core_blog: New Web Service core_blog_view_entries

3 years agoMerge branch 'MDL-46415-master' of https://github.com/lucaboesch/moodle
Jun Pataleta [Wed, 10 Oct 2018 04:05:44 +0000 (12:05 +0800)]
Merge branch 'MDL-46415-master' of https://github.com/lucaboesch/moodle

3 years agoAutomatically generated installer lang files
AMOS bot [Wed, 10 Oct 2018 00:07:07 +0000 (00:07 +0000)]
Automatically generated installer lang files

3 years agoMerge branch 'MDL-63439-master' of git://github.com/damyon/moodle
Eloy Lafuente (stronk7) [Tue, 9 Oct 2018 22:47:40 +0000 (00:47 +0200)]
Merge branch 'MDL-63439-master' of git://github.com/damyon/moodle

3 years agoMerge branch 'MDL-29895' of https://github.com/enovation/moodle
Eloy Lafuente (stronk7) [Tue, 9 Oct 2018 22:29:16 +0000 (00:29 +0200)]
Merge branch 'MDL-29895' of https://github.com/enovation/moodle

3 years agoMDL-63603 enrol: Add Indian Rupee to paypal enrolment currencies
Daniel Neis Araujo [Tue, 9 Oct 2018 21:19:14 +0000 (18:19 -0300)]
MDL-63603 enrol: Add Indian Rupee to paypal enrolment currencies

3 years agoMerge branch 'MDL-62395-master' of git://github.com/junpataleta/moodle
Eloy Lafuente (stronk7) [Tue, 9 Oct 2018 21:06:28 +0000 (23:06 +0200)]
Merge branch 'MDL-62395-master' of git://github.com/junpataleta/moodle

3 years agoMDL-46415 tinymce: SVG emoticons size
Andreas Grähn [Tue, 9 Oct 2018 10:05:51 +0000 (12:05 +0200)]
MDL-46415 tinymce: SVG emoticons size

3 years agoMDL-51803 core: sortable list, fix for touch devices
Marina Glancy [Tue, 9 Oct 2018 12:26:32 +0000 (14:26 +0200)]
MDL-51803 core: sortable list, fix for touch devices

3 years agoMDL-51803 autoscroll: Fix incorrect reference to function
David Monllao [Tue, 9 Oct 2018 11:58:51 +0000 (13:58 +0200)]
MDL-51803 autoscroll: Fix incorrect reference to function

3 years agoMerge branch 'MDL-51803-master-mouse' of git://github.com/marinaglancy/moodle
David Monllao [Tue, 9 Oct 2018 11:53:29 +0000 (13:53 +0200)]
Merge branch 'MDL-51803-master-mouse' of git://github.com/marinaglancy/moodle

3 years agoMDL-51803 core: fix for touchstart
Marina Glancy [Tue, 9 Oct 2018 11:25:33 +0000 (13:25 +0200)]
MDL-51803 core: fix for touchstart

3 years agoMDL-51803 core: sortable list singleton
Marina Glancy [Mon, 8 Oct 2018 16:38:32 +0000 (18:38 +0200)]
MDL-51803 core: sortable list singleton

3 years agoMerge branch 'MDL-63427-master' of git://github.com/mihailges/moodle
Eloy Lafuente (stronk7) [Tue, 9 Oct 2018 11:21:11 +0000 (13:21 +0200)]
Merge branch 'MDL-63427-master' of git://github.com/mihailges/moodle

3 years agoMDL-46415 atto: SVG emoticons size
Andreas Grähn [Tue, 9 Oct 2018 09:44:29 +0000 (11:44 +0200)]
MDL-46415 atto: SVG emoticons size

3 years agoMDL-46415 pix: SVG emoticons
Andreas Grähn [Tue, 9 Oct 2018 09:43:42 +0000 (11:43 +0200)]
MDL-46415 pix: SVG emoticons

3 years agoMerge branch 'MDL-63401-master' of git://github.com/andrewnicols/moodle
Eloy Lafuente (stronk7) [Tue, 9 Oct 2018 09:35:29 +0000 (11:35 +0200)]
Merge branch 'MDL-63401-master' of git://github.com/andrewnicols/moodle

3 years agoMerge branch 'MDL-62738_master' of https://github.com/mfabriczy/moodle
David Monllao [Tue, 9 Oct 2018 07:23:57 +0000 (09:23 +0200)]
Merge branch 'MDL-62738_master' of https://github.com/mfabriczy/moodle

3 years agoMerge branch 'MDL-51969-master' of https://github.com/dmitriim/moodle
David Monllao [Tue, 9 Oct 2018 07:19:53 +0000 (09:19 +0200)]
Merge branch 'MDL-51969-master' of https://github.com/dmitriim/moodle

3 years agoMerge branch 'MDL-60710-master' of git://github.com/abias/moodle
David Monllao [Tue, 9 Oct 2018 07:00:42 +0000 (09:00 +0200)]
Merge branch 'MDL-60710-master' of git://github.com/abias/moodle

3 years agoMerge branch 'MDL-61378-master' of git://github.com/damyon/moodle
David Monllao [Tue, 9 Oct 2018 06:57:49 +0000 (08:57 +0200)]
Merge branch 'MDL-61378-master' of git://github.com/damyon/moodle

3 years agoMerge branch 'MDL-62491-master-fix' of git://github.com/abgreeve/moodle
Jun Pataleta [Tue, 9 Oct 2018 06:09:28 +0000 (14:09 +0800)]
Merge branch 'MDL-62491-master-fix' of git://github.com/abgreeve/moodle

3 years agoMerge branch 'MDL-63241-master-take2' of https://github.com/lucaboesch/moodle
Jun Pataleta [Tue, 9 Oct 2018 04:49:07 +0000 (12:49 +0800)]
Merge branch 'MDL-63241-master-take2' of https://github.com/lucaboesch/moodle

3 years agoMDL-61378 forum: Upgrade notes
Damyon Wiese [Mon, 8 Oct 2018 00:51:57 +0000 (08:51 +0800)]
MDL-61378 forum: Upgrade notes

Tell developers to correctly nest calls to forum_print_post

3 years agoMDL-61378 forum: Standardize HTML output for posts
Damyon Wiese [Mon, 10 Sep 2018 07:52:07 +0000 (15:52 +0800)]
MDL-61378 forum: Standardize HTML output for posts

Improve the format of the HTML representing a forum post.

1. Use <article> tag to mark it correctly.
2. Use <time> tag to include the real datetime information.
3. Use <address> tag to specify who and when the post came from.
4. Use heading level tags to mark the subject of each post.
5. Properly nest reply posts within their parent <article>
6. Use a header tab for each article to split the metadata from the content.
7. Use CSS to separate links, not text content.

Because posts are now nested properly, the heading for each one refers to it's own article
and we don't need to generate arbitrary heading level tags depending on how deep the post
is nested.

3 years agoMDL-62491 privacy: Fix running the download script.
Adrian Greeve [Tue, 9 Oct 2018 01:31:13 +0000 (09:31 +0800)]
MDL-62491 privacy: Fix running the download script.

Previously running the code to generate the download file
was very fagile. Now the code can be run anywhere without
problems occuring copying files.

3 years agoMDL-63439 assign: Unicode charsets for pdf
Damyon Wiese [Fri, 28 Sep 2018 04:10:44 +0000 (12:10 +0800)]
MDL-63439 assign: Unicode charsets for pdf

Prefer to use freesans font for generated pdfs as it has the biggest charset support.

3 years agoMerge branch 'MDL-63194' of https://github.com/timhunt/moodle
Jun Pataleta [Tue, 9 Oct 2018 00:56:02 +0000 (08:56 +0800)]
Merge branch 'MDL-63194' of https://github.com/timhunt/moodle

3 years agoMDL-63401 tool_dataprivacy: Change default for require end date
Andrew Nicols [Tue, 9 Oct 2018 00:31:57 +0000 (08:31 +0800)]
MDL-63401 tool_dataprivacy: Change default for require end date

We should preserve the existing behaviour.

3 years agoMDL-63401 tool_dataprivacy: Simplify where processing
Andrew Nicols [Tue, 9 Oct 2018 00:21:38 +0000 (08:21 +0800)]
MDL-63401 tool_dataprivacy: Simplify where processing

3 years agoMDL-63401 tool_dataprivacy: Move final cap check to endpoint
Andrew Nicols [Tue, 9 Oct 2018 00:21:25 +0000 (08:21 +0800)]
MDL-63401 tool_dataprivacy: Move final cap check to endpoint

3 years agoMDL-63427 block_myprofile: My profile block UI improvements
Mihail Geshoski [Tue, 9 Oct 2018 00:09:11 +0000 (08:09 +0800)]
MDL-63427 block_myprofile: My profile block UI improvements

3 years agoMDL-60710 course: Overhaul of Behat tests
Alexander Bias [Mon, 8 Oct 2018 20:49:36 +0000 (22:49 +0200)]
MDL-60710 course: Overhaul of Behat tests

3 years agoMDL-60710 course: Refine strings
Alexander Bias [Mon, 8 Oct 2018 20:49:13 +0000 (22:49 +0200)]
MDL-60710 course: Refine strings

3 years agoMDL-63456 qtype_multichoice: Return a default options object if missing
Eric Merrill [Mon, 8 Oct 2018 19:46:28 +0000 (15:46 -0400)]
MDL-63456 qtype_multichoice: Return a default options object if missing

3 years agoMDL-63456 question: Improve Aiken error handling and multichoice errors
Eric Merrill [Wed, 26 Sep 2018 03:35:37 +0000 (23:35 -0400)]
MDL-63456 question: Improve Aiken error handling and multichoice errors

3 years agoMDL-63194 quiz editing: subtle drag-drop bug if moving between sections
Tim Hunt [Fri, 21 Sep 2018 16:56:34 +0000 (17:56 +0100)]
MDL-63194 quiz editing: subtle drag-drop bug if moving between sections

3 years agoMDL-63041 theme boost: remove region main border padding for dashboard
Bas Brands [Mon, 8 Oct 2018 15:07:30 +0000 (17:07 +0200)]
MDL-63041 theme boost: remove region main border padding for dashboard

3 years agoMDL-63583 course: Include course/lib.php always
Juan Leyva [Mon, 8 Oct 2018 14:32:15 +0000 (16:32 +0200)]
MDL-63583 course: Include course/lib.php always

core_course_get_courses_by_field WS must include always course/lib.php to not depend on functions including it.

3 years agoMDL-63401 tool_dataprivacy: Allow expiriration of users without end date
Andrew Nicols [Thu, 27 Sep 2018 04:05:39 +0000 (12:05 +0800)]
MDL-63401 tool_dataprivacy: Allow expiriration of users without end date

3 years agoMDL-63401 tool_dataprivacy: Rewrite expired deletion handling
Andrew Nicols [Thu, 20 Sep 2018 01:10:38 +0000 (09:10 +0800)]
MDL-63401 tool_dataprivacy: Rewrite expired deletion handling

This change rewrites the way in which expiry is calculated and addresses
a number of closely related issues:

Users can customise, and add blocks with data to, their dashboard.  When
a user had done so, the user could be flagged for deletion, but the
blocks in their Dashboard were subject to the default block retention
policy. In addition there is no way to override the retention policy for
user blocks.

This change modifies the structure of the expiry mechanism:
- to consider any subcontext of the user context to be a part of the user
  context during calculation. User child contexts are not the property
  of the system, and should not be treated separately.
- the way in which the context expiry mechanism worked was to select
  use a multiple different managers based solely on the context level.
  Because of the use of user blocks, this proved to be unreliable as
  blocks has been attributed purely to courses.
  This has been changed to a single manager which is aware of hierarchy
  and deletions as a whole.
- to prepare for upcoming work relating to more detailed expiry
  mechanisms, a new expiry_info class is introduced and used to
  merge the expiry of child contexts into a working in-memory view.

This changeset includes extensive unit tests.

3 years agoMDL-63401 core: Do not delete the user context
Andrew Nicols [Fri, 28 Sep 2018 06:39:17 +0000 (14:39 +0800)]
MDL-63401 core: Do not delete the user context

As long as we have a user record, we should not delete the context which
relates to it.

3 years agoMDL-63401 tool_dataprivacy: Move cap checks to endpoints from API
Andrew Nicols [Thu, 20 Sep 2018 03:03:35 +0000 (11:03 +0800)]
MDL-63401 tool_dataprivacy: Move cap checks to endpoints from API

3 years agoMDL-60425 blog: Remove empty line
David Monllao [Mon, 8 Oct 2018 10:52:04 +0000 (12:52 +0200)]
MDL-60425 blog: Remove empty line

3 years agoMerge branch 'MDL-60425-master' of git://github.com/jleyva/moodle
David Monllao [Mon, 8 Oct 2018 10:51:05 +0000 (12:51 +0200)]
Merge branch 'MDL-60425-master' of git://github.com/jleyva/moodle

3 years agoMDL-51803 core: integration review
Marina Glancy [Wed, 3 Oct 2018 12:07:48 +0000 (14:07 +0200)]
MDL-51803 core: integration review

3 years agoMDL-51803 core: integration review
Marina Glancy [Tue, 2 Oct 2018 09:23:18 +0000 (11:23 +0200)]
MDL-51803 core: integration review

3 years agoMDL-51803 core: reusable element for sorting lists
Marina Glancy [Mon, 10 Sep 2018 12:38:21 +0000 (14:38 +0200)]
MDL-51803 core: reusable element for sorting lists

3 years agoMDL-51803 core: autoscroll module from OU
Marina Glancy [Tue, 12 Jun 2018 04:11:23 +0000 (12:11 +0800)]
MDL-51803 core: autoscroll module from OU