moodle.git
3 years agoMerge branch 'MDL-60320' of git://github.com/aolley/moodle
Eloy Lafuente (stronk7) [Mon, 16 Oct 2017 22:05:54 +0000 (00:05 +0200)]
Merge branch 'MDL-60320' of git://github.com/aolley/moodle

3 years agoMerge branch 'MDL-60176-master' of git://github.com/andrewnicols/moodle
David Monllao [Mon, 16 Oct 2017 18:02:03 +0000 (20:02 +0200)]
Merge branch 'MDL-60176-master' of git://github.com/andrewnicols/moodle

3 years agoMerge branch 'wip-MDL-60284-master' of git://github.com/abgreeve/moodle
David Monllao [Mon, 16 Oct 2017 17:41:36 +0000 (19:41 +0200)]
Merge branch 'wip-MDL-60284-master' of git://github.com/abgreeve/moodle

3 years agoMerge branch 'MDL-57455' of https://github.com/stronk7/moodle
David Monllao [Mon, 16 Oct 2017 17:33:37 +0000 (19:33 +0200)]
Merge branch 'MDL-57455' of https://github.com/stronk7/moodle

3 years agoMDL-57455 mod_data: table aliases cannot use AS for crossdb
Eloy Lafuente (stronk7) [Mon, 16 Oct 2017 17:16:17 +0000 (19:16 +0200)]
MDL-57455 mod_data: table aliases cannot use AS for crossdb

3 years agoMerge branch 'MDL-60373-master' of git://github.com/andrewnicols/moodle
David Monllao [Mon, 16 Oct 2017 16:28:47 +0000 (18:28 +0200)]
Merge branch 'MDL-60373-master' of git://github.com/andrewnicols/moodle

3 years agoMerge branch 'MDL-60374-master' of git://github.com/andrewnicols/moodle
David Monllao [Mon, 16 Oct 2017 16:26:55 +0000 (18:26 +0200)]
Merge branch 'MDL-60374-master' of git://github.com/andrewnicols/moodle

3 years agoMerge branch 'wip-MDL-60280-master' of git://github.com/marinaglancy/moodle
David Monllao [Mon, 16 Oct 2017 11:46:19 +0000 (13:46 +0200)]
Merge branch 'wip-MDL-60280-master' of git://github.com/marinaglancy/moodle

3 years agoMerge branch 'wip-MDL-60237-master' of git://github.com/marinaglancy/moodle
David Monllao [Mon, 16 Oct 2017 10:37:55 +0000 (12:37 +0200)]
Merge branch 'wip-MDL-60237-master' of git://github.com/marinaglancy/moodle

3 years agoMerge branch 'wip-MDL-60337-master' of git://github.com/marinaglancy/moodle
Andrew Nicols [Mon, 16 Oct 2017 07:40:44 +0000 (15:40 +0800)]
Merge branch 'wip-MDL-60337-master' of git://github.com/marinaglancy/moodle

3 years agoMerge branch 'wip-MDL-60033-master' of git://github.com/marinaglancy/moodle
Jake Dallimore [Mon, 16 Oct 2017 07:36:29 +0000 (15:36 +0800)]
Merge branch 'wip-MDL-60033-master' of git://github.com/marinaglancy/moodle

3 years agoMerge branch 'MDL-58547-master-bennulib' of git://github.com/mudrd8mz/moodle
Jun Pataleta [Mon, 16 Oct 2017 07:34:06 +0000 (15:34 +0800)]
Merge branch 'MDL-58547-master-bennulib' of git://github.com/mudrd8mz/moodle

3 years agoMerge branch 'wip-MDL-60091-master' of git://github.com/marinaglancy/moodle
Jake Dallimore [Mon, 16 Oct 2017 07:32:21 +0000 (15:32 +0800)]
Merge branch 'wip-MDL-60091-master' of git://github.com/marinaglancy/moodle

3 years agoMerge branch 'MDL-59166-master' of git://github.com/andrewnicols/moodle
Jun Pataleta [Mon, 16 Oct 2017 07:26:36 +0000 (15:26 +0800)]
Merge branch 'MDL-59166-master' of git://github.com/andrewnicols/moodle

3 years agoMDL-59166 admin: Add moodle mobile configuration warning
Andrew Nicols [Tue, 20 Jun 2017 04:42:46 +0000 (12:42 +0800)]
MDL-59166 admin: Add moodle mobile configuration warning

3 years agoMDL-60091 webservice: enhancements to WS test client
Marina Glancy [Wed, 6 Sep 2017 06:32:32 +0000 (14:32 +0800)]
MDL-60091 webservice: enhancements to WS test client

3 years agoMerge branch 'MDL-60124-master' of https://github.com/snake/moodle
Jun Pataleta [Mon, 16 Oct 2017 06:33:53 +0000 (14:33 +0800)]
Merge branch 'MDL-60124-master' of https://github.com/snake/moodle

3 years agoMerge branch 'wip-MDL-60194-master' of git://github.com/abgreeve/moodle
Andrew Nicols [Mon, 16 Oct 2017 06:10:18 +0000 (14:10 +0800)]
Merge branch 'wip-MDL-60194-master' of git://github.com/abgreeve/moodle

3 years agoMerge branch 'MDL-60150' of git://github.com/stronk7/moodle
Jun Pataleta [Mon, 16 Oct 2017 06:04:55 +0000 (14:04 +0800)]
Merge branch 'MDL-60150' of git://github.com/stronk7/moodle

3 years agoMerge branch 'wip-MDL-60286-master' of git://github.com/abgreeve/moodle
Andrew Nicols [Mon, 16 Oct 2017 05:49:50 +0000 (13:49 +0800)]
Merge branch 'wip-MDL-60286-master' of git://github.com/abgreeve/moodle

3 years agoMerge branch 'MDL-60307-master' of git://github.com/lameze/moodle
Jun Pataleta [Mon, 16 Oct 2017 05:43:22 +0000 (13:43 +0800)]
Merge branch 'MDL-60307-master' of git://github.com/lameze/moodle

3 years agoMDL-60307 core_calendar: rename subscriptions name and url
Simey Lameze [Mon, 2 Oct 2017 03:04:14 +0000 (11:04 +0800)]
MDL-60307 core_calendar: rename subscriptions name and url

3 years agoMerge branch 'MDL-60058-master-4' of git://github.com/ryanwyllie/moodle
Damyon Wiese [Mon, 16 Oct 2017 04:28:59 +0000 (12:28 +0800)]
Merge branch 'MDL-60058-master-4' of git://github.com/ryanwyllie/moodle

3 years agoMerge branch 'MDL-45730_master' of git://github.com/markn86/moodle
Jun Pataleta [Mon, 16 Oct 2017 04:10:51 +0000 (12:10 +0800)]
Merge branch 'MDL-45730_master' of git://github.com/markn86/moodle

3 years agoMerge branch 'MDL-57455_master' of git://github.com/markn86/moodle
Jake Dallimore [Mon, 16 Oct 2017 02:34:01 +0000 (10:34 +0800)]
Merge branch 'MDL-57455_master' of git://github.com/markn86/moodle

3 years agoMDL-60124 assign: comment annotation now auto reduces in size on delete
Jake Dallimore [Wed, 13 Sep 2017 04:55:13 +0000 (12:55 +0800)]
MDL-60124 assign: comment annotation now auto reduces in size on delete

3 years agoMerge branch 'MDL-59988_master' of git://github.com/dmonllao/moodle
Andrew Nicols [Mon, 16 Oct 2017 00:19:06 +0000 (08:19 +0800)]
Merge branch 'MDL-59988_master' of git://github.com/dmonllao/moodle

3 years agoMDL-59988 analytics: Process pending training and prediction files
David Monllao [Tue, 10 Oct 2017 07:45:21 +0000 (09:45 +0200)]
MDL-59988 analytics: Process pending training and prediction files

3 years agoMDL-59988 analytics: Files marked as used only if valid
David Monllao [Thu, 7 Sep 2017 12:42:17 +0000 (14:42 +0200)]
MDL-59988 analytics: Files marked as used only if valid

- Basic unit test for minimum machine learning backends requirements
- Warning return messages now include not enough data
- Clear models when the predictions processor is changed
- Refined the name of a couple of constants / methods

3 years agoMDL-60058 assign: stop teacher from seeing due date event on dashboard
Ryan Wyllie [Wed, 11 Oct 2017 06:26:16 +0000 (06:26 +0000)]
MDL-60058 assign: stop teacher from seeing due date event on dashboard

Thanks to Damyon Wiese for the patch.

3 years agoMDL-60058 assign: Updating gradingduedate on drag/drop
Andrew Nicols [Sun, 1 Oct 2017 12:08:07 +0000 (20:08 +0800)]
MDL-60058 assign: Updating gradingduedate on drag/drop

3 years agoMDL-60058 calendar: fix event context issue in month_detailed
Ryan Wyllie [Fri, 29 Sep 2017 03:02:16 +0000 (03:02 +0000)]
MDL-60058 calendar: fix event context issue in month_detailed

3 years agoMDL-60058 choice: implement timestart range callback for calendar UI
Ryan Wyllie [Thu, 28 Sep 2017 06:56:40 +0000 (06:56 +0000)]
MDL-60058 choice: implement timestart range callback for calendar UI

3 years agoweekly release 3.4dev
Jake Dallimore [Fri, 13 Oct 2017 06:33:08 +0000 (14:33 +0800)]
weekly release 3.4dev

3 years agoNOBUG: Fixed file access permissions
Jake Dallimore [Fri, 13 Oct 2017 06:33:08 +0000 (14:33 +0800)]
NOBUG: Fixed file access permissions

3 years agoNOBUG: Fixed SVG browser compatibility
Jake Dallimore [Fri, 13 Oct 2017 06:33:08 +0000 (14:33 +0800)]
NOBUG: Fixed SVG browser compatibility

3 years agoMerge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
Jake Dallimore [Fri, 13 Oct 2017 06:33:07 +0000 (14:33 +0800)]
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install

3 years agoMDL-60058 calendar: add visual indicator to UI for valid drop zones
Ryan Wyllie [Mon, 18 Sep 2017 03:56:20 +0000 (03:56 +0000)]
MDL-60058 calendar: add visual indicator to UI for valid drop zones

3 years agoMDL-60058 assign: allow update of assign calendar action events
Ryan Wyllie [Mon, 18 Sep 2017 03:53:36 +0000 (03:53 +0000)]
MDL-60058 assign: allow update of assign calendar action events

3 years agoMerge branch 'MDL-60357-master-fix' of https://github.com/andrewnicols/moodle
Jake Dallimore [Fri, 13 Oct 2017 03:40:05 +0000 (11:40 +0800)]
Merge branch 'MDL-60357-master-fix' of https://github.com/andrewnicols/moodle

3 years agoMDL-57455 mod_data: extended Behat test to cover searching names
Mark Nelson [Tue, 10 Oct 2017 10:02:20 +0000 (18:02 +0800)]
MDL-57455 mod_data: extended Behat test to cover searching names

Merged two Behat files that were doing similar things.

3 years agoMerge branch 'MDL-60029-master-fix' of git://github.com/junpataleta/moodle
Jake Dallimore [Fri, 13 Oct 2017 02:49:32 +0000 (10:49 +0800)]
Merge branch 'MDL-60029-master-fix' of git://github.com/junpataleta/moodle

3 years agoMDL-60029 profile: Replace table alias with non-reserve word
Jun Pataleta [Fri, 13 Oct 2017 02:38:00 +0000 (10:38 +0800)]
MDL-60029 profile: Replace table alias with non-reserve word

* The table alias 'uid' is a reserved word in oracle. Replaced it with
something a little more safe.

3 years agoMDL-60357 search: Ensure that the document is valid
Andrew Nicols [Fri, 13 Oct 2017 01:41:57 +0000 (09:41 +0800)]
MDL-60357 search: Ensure that the document is valid

We were previously testing tha the parent is valid, which it was, and
then fetching the current record, before fetching data from it.

However, the way in which the recordset walk works, the valid function
checks whether the _record_ itself is valid, whilst the current allows
for a callback to be applied.

In this instance, the data-entry was failing because the count of
indexfields was < 2. The recordset data itself was valid, but the view
was not, and as a result, the current() function returned false.

This false was not previously handled.

I've changed the logic so that we handle this case, and have removed a
double-negative in the process.

3 years agoMerge branch 'MDL-60002-master' of https://github.com/snake/moodle
Damyon Wiese [Fri, 13 Oct 2017 01:20:18 +0000 (09:20 +0800)]
Merge branch 'MDL-60002-master' of https://github.com/snake/moodle

3 years agoMDL-60002 assign: Fixed validation on save and save and show next.
Jake Dallimore [Fri, 13 Oct 2017 01:04:08 +0000 (09:04 +0800)]
MDL-60002 assign: Fixed validation on save and save and show next.

3 years agoMerge branch 'MDL-60046-master' of https://github.com/snake/moodle
Andrew Nicols [Fri, 13 Oct 2017 00:32:57 +0000 (08:32 +0800)]
Merge branch 'MDL-60046-master' of https://github.com/snake/moodle

3 years agoMDL-60046 participants: Fix for groups behat feature.
Jake Dallimore [Fri, 13 Oct 2017 00:26:42 +0000 (08:26 +0800)]
MDL-60046 participants: Fix for groups behat feature.

3 years agoMerge branch 'MDL-60209-master-mathjaxlib' of git://github.com/mudrd8mz/moodle
Eloy Lafuente (stronk7) [Thu, 12 Oct 2017 20:51:59 +0000 (22:51 +0200)]
Merge branch 'MDL-60209-master-mathjaxlib' of git://github.com/mudrd8mz/moodle

3 years agoMDL-60209 mathjax: Do not load broken accessibility extensions
David Mudrák [Thu, 12 Oct 2017 13:03:36 +0000 (15:03 +0200)]
MDL-60209 mathjax: Do not load broken accessibility extensions

The Accessible.js config loads accessibility-menu extension which in
turn loads mathjax-sre.js library. There is a bug in this library
https://github.com/zorkow/speech-rule-engine/issues/182 that makes it
fail in RequireJS environments. This has been reported upstream as
https://github.com/mathjax/MathJax/issues/1854

As an immediate solution for now, this patch changes the default MathJax
configuration so that it does not load accessibility extensions at all.

3 years agoMDL-57455 mod_data: added 'Manage standard tags' link
Mark Nelson [Tue, 10 Oct 2017 10:01:27 +0000 (18:01 +0800)]
MDL-57455 mod_data: added 'Manage standard tags' link

3 years agoMDL-57455 mod_data: added reset tags functionality
Mark Nelson [Wed, 20 Sep 2017 08:45:38 +0000 (16:45 +0800)]
MDL-57455 mod_data: added reset tags functionality

3 years agoMDL-57455 mod_data: performance improvement for tags backup/restore
Mark Nelson [Mon, 2 Oct 2017 05:26:06 +0000 (13:26 +0800)]
MDL-57455 mod_data: performance improvement for tags backup/restore

3 years agoMDL-57455 mod_data: allow tags to be removed from search criteria
Mark Nelson [Thu, 12 Oct 2017 05:46:33 +0000 (13:46 +0800)]
MDL-57455 mod_data: allow tags to be removed from search criteria

3 years agoMDL-57455 mod_data: added missing accessibility check
Mark Nelson [Thu, 21 Sep 2017 06:44:46 +0000 (14:44 +0800)]
MDL-57455 mod_data: added missing accessibility check

3 years agoMDL-57455 mod_data: Added PHPUnit tests
Andrew Hancox [Thu, 14 Sep 2017 10:17:05 +0000 (18:17 +0800)]
MDL-57455 mod_data: Added PHPUnit tests

3 years agoMDL-57455 mod_data: Added Behat tests to cover tagging
Andrew Hancox [Thu, 24 Aug 2017 21:31:19 +0000 (00:31 +0300)]
MDL-57455 mod_data: Added Behat tests to cover tagging

3 years agoMDL-57455 mod_data: Import and export tags
Andrew Hancox [Mon, 31 Jul 2017 10:09:08 +0000 (11:09 +0100)]
MDL-57455 mod_data: Import and export tags

3 years agoMDL-57455 mod_data: Extend advanced search to cover tags
Andrew Hancox [Mon, 31 Jul 2017 07:45:11 +0000 (08:45 +0100)]
MDL-57455 mod_data: Extend advanced search to cover tags

Also removed redundant code as $advtables, $advwhere etc.
are only used below when constructing $fromsql which is
only used if advanced is empty.

3 years agoMDL-57455 mod_data: Implement tagging
Andrew Hancox [Thu, 14 Sep 2017 08:57:00 +0000 (16:57 +0800)]
MDL-57455 mod_data: Implement tagging

3 years agoMerge branch 'wip-MDL-60029-master' of git://github.com/marinaglancy/moodle
Jun Pataleta [Thu, 12 Oct 2017 08:16:42 +0000 (16:16 +0800)]
Merge branch 'wip-MDL-60029-master' of git://github.com/marinaglancy/moodle

3 years agoMerge branch 'MDL-55356-master-fix' of git://github.com/junpataleta/moodle
Andrew Nicols [Thu, 12 Oct 2017 07:49:25 +0000 (15:49 +0800)]
Merge branch 'MDL-55356-master-fix' of git://github.com/junpataleta/moodle

3 years agoMDL-55356 search: Remove unnecessary var_dump call
Jun Pataleta [Thu, 12 Oct 2017 07:45:46 +0000 (15:45 +0800)]
MDL-55356 search: Remove unnecessary var_dump call

3 years agoMerge branch 'MDL-55356-master-fix' of https://github.com/andrewnicols/moodle
Jake Dallimore [Thu, 12 Oct 2017 07:00:11 +0000 (15:00 +0800)]
Merge branch 'MDL-55356-master-fix' of https://github.com/andrewnicols/moodle

3 years agoMDL-55356 backup: Correct variable name
Andrew Nicols [Thu, 12 Oct 2017 06:53:16 +0000 (14:53 +0800)]
MDL-55356 backup: Correct variable name

3 years agoMerge branch 'MDL-60288-master' of git://github.com/ankitagarwal/moodle
Andrew Nicols [Thu, 12 Oct 2017 06:48:59 +0000 (14:48 +0800)]
Merge branch 'MDL-60288-master' of git://github.com/ankitagarwal/moodle

3 years agoMerge branch 'wip-MDL-60195-master' of git://github.com/abgreeve/moodle
Andrew Nicols [Thu, 12 Oct 2017 06:34:05 +0000 (14:34 +0800)]
Merge branch 'wip-MDL-60195-master' of git://github.com/abgreeve/moodle

3 years agoMerge branch 'MDL-60092-master-fix2' of git://github.com/lameze/moodle
Damyon Wiese [Thu, 12 Oct 2017 06:31:17 +0000 (14:31 +0800)]
Merge branch 'MDL-60092-master-fix2' of git://github.com/lameze/moodle

3 years agoMDL-60288 libraries: Upgrade spout to 2.7.3
Ankit Agarwal [Thu, 5 Oct 2017 19:31:17 +0000 (01:01 +0530)]
MDL-60288 libraries: Upgrade spout to 2.7.3

3 years agoMDL-60268 tool_usertours: Switch to Template.append
Andrew Nicols [Thu, 12 Oct 2017 05:54:09 +0000 (13:54 +0800)]
MDL-60268 tool_usertours: Switch to Template.append

3 years agoMerge branch 'wip-MDL-60268-master' of https://github.com/Beedell/moodle
Andrew Nicols [Thu, 12 Oct 2017 05:44:16 +0000 (13:44 +0800)]
Merge branch 'wip-MDL-60268-master' of https://github.com/Beedell/moodle

3 years agoMDL-60092 calendar: fix no events message message logic
Simey Lameze [Thu, 12 Oct 2017 05:39:35 +0000 (13:39 +0800)]
MDL-60092 calendar: fix no events message message logic

3 years agoMDL-59106 analytics: whitespace fixes
Jake Dallimore [Thu, 12 Oct 2017 04:31:56 +0000 (12:31 +0800)]
MDL-59106 analytics: whitespace fixes

3 years agoMerge branch 'MDL-59854-master' of git://github.com/junpataleta/moodle
Jun Pataleta [Thu, 12 Oct 2017 04:27:34 +0000 (12:27 +0800)]
Merge branch 'MDL-59854-master' of git://github.com/junpataleta/moodle

3 years agoMDL-59854 forum: Created unique db key for forum_subscriptions
Tobias Reischmann [Thu, 17 Aug 2017 15:01:22 +0000 (17:01 +0200)]
MDL-59854 forum: Created unique db key for forum_subscriptions

Due to race conditions in the function subscribe_user
it was possible to create duplicate forum subscriptions.
This lead to error messages, when displaying the list of
all subscriptions.
This patch removes all existing duplicate entries and
creates a unique db key to prevent this from happening in
the future.

3 years agoMDL-55356 search: Merge conflict fix
Andrew Nicols [Thu, 12 Oct 2017 03:54:04 +0000 (11:54 +0800)]
MDL-55356 search: Merge conflict fix

3 years agoMDL-55356 search: Insert non-empty default data in block fixture data
Andrew Nicols [Thu, 12 Oct 2017 03:53:06 +0000 (11:53 +0800)]
MDL-55356 search: Insert non-empty default data in block fixture data

3 years agoMDL-55356 backup: Check setting exists before checking value
Andrew Nicols [Thu, 12 Oct 2017 03:28:40 +0000 (11:28 +0800)]
MDL-55356 backup: Check setting exists before checking value

3 years agoMerge branch 'MDL-55356-master' of https://github.com/sammarshallou/moodle
Andrew Nicols [Thu, 12 Oct 2017 03:28:04 +0000 (11:28 +0800)]
Merge branch 'MDL-55356-master' of https://github.com/sammarshallou/moodle

3 years agoMerge branch 'MDL-59106_master-fix2' of git://github.com/dmonllao/moodle
Jake Dallimore [Thu, 12 Oct 2017 02:54:47 +0000 (10:54 +0800)]
Merge branch 'MDL-59106_master-fix2' of git://github.com/dmonllao/moodle

3 years agoMerge branch 'MDL-59106_master-fix' of git://github.com/dmonllao/moodle
Jake Dallimore [Thu, 12 Oct 2017 02:54:25 +0000 (10:54 +0800)]
Merge branch 'MDL-59106_master-fix' of git://github.com/dmonllao/moodle

3 years agoMerge branch 'MDL-59106_master' of git://github.com/markn86/moodle
Jake Dallimore [Thu, 12 Oct 2017 02:53:20 +0000 (10:53 +0800)]
Merge branch 'MDL-59106_master' of git://github.com/markn86/moodle

3 years agoMerge branch 'MDL-59921-master-fix2' of git://github.com/lameze/moodle
Jun Pataleta [Thu, 12 Oct 2017 01:49:49 +0000 (09:49 +0800)]
Merge branch 'MDL-59921-master-fix2' of git://github.com/lameze/moodle

3 years agoMDL-59921 calendar: remove disabledIf from group select
Simey Lameze [Thu, 12 Oct 2017 01:19:43 +0000 (09:19 +0800)]
MDL-59921 calendar: remove disabledIf from group select

3 years agoMerge branch 'MDL-60209-master-mathjaxlib' of git://github.com/mudrd8mz/moodle
Eloy Lafuente (stronk7) [Wed, 11 Oct 2017 23:52:47 +0000 (01:52 +0200)]
Merge branch 'MDL-60209-master-mathjaxlib' of git://github.com/mudrd8mz/moodle

3 years agoMDL-60291 libraries: bump readme to actual versions
Eloy Lafuente (stronk7) [Wed, 11 Oct 2017 22:47:22 +0000 (00:47 +0200)]
MDL-60291 libraries: bump readme to actual versions

3 years agoMerge branch 'MDL-60291-master' of git://github.com/ankitagarwal/moodle
Eloy Lafuente (stronk7) [Wed, 11 Oct 2017 22:42:57 +0000 (00:42 +0200)]
Merge branch 'MDL-60291-master' of git://github.com/ankitagarwal/moodle

3 years agoMerge branch 'MDL-60301-master' of git://github.com/ankitagarwal/moodle
Eloy Lafuente (stronk7) [Wed, 11 Oct 2017 22:37:11 +0000 (00:37 +0200)]
Merge branch 'MDL-60301-master' of git://github.com/ankitagarwal/moodle

3 years agoMerge branch 'MDL-60302-master' of git://github.com/jleyva/moodle
Eloy Lafuente (stronk7) [Wed, 11 Oct 2017 19:14:54 +0000 (21:14 +0200)]
Merge branch 'MDL-60302-master' of git://github.com/jleyva/moodle

3 years agoMerge branch 'MDL-60357-master' of https://github.com/sammarshallou/moodle
Eloy Lafuente (stronk7) [Wed, 11 Oct 2017 18:49:01 +0000 (20:49 +0200)]
Merge branch 'MDL-60357-master' of https://github.com/sammarshallou/moodle

3 years agoMDL-55356 core_search: Make indexing task/CLI do context requests
sam marshall [Fri, 15 Sep 2017 13:08:09 +0000 (14:08 +0100)]
MDL-55356 core_search: Make indexing task/CLI do context requests

3 years agoMDL-55356 core_search: New manager API index_context
sam marshall [Mon, 11 Sep 2017 16:30:10 +0000 (17:30 +0100)]
MDL-55356 core_search: New manager API index_context

New function which uses the get_document_recordset function in
search areas to support full and partial indexing of a given
context.

3 years agoMDL-55356 core_search: Change existing search areas to new API
sam marshall [Mon, 11 Sep 2017 10:29:26 +0000 (11:29 +0100)]
MDL-55356 core_search: Change existing search areas to new API

This change considers all existing search areas in Moodle and makes
necessary changes.

Custom change to course search, supported by helper in base.php:

* course/classes/search/mycourse.php

Custom change to message search:

* message/classes/search/message_received.php
* message/classes/search/message_sent.php

Custom change to user search:

* user/classes/search/user.php

Custom changes to module areas, supported by helper in base_mod.php:

* mod/book/classes/search/chapter.php
* mod/data/classes/search/entry.php
* mod/forum/classes/search/post.php
* mod/glossary/classes/search/entry.php
* mod/survey/classes/search/activity.php
* mod/wiki/classes/search/collaborative_page.php

(Note: the unit tests do not exhaustively check every context type
for these, given that's mainly handled by the helper function
which was already tested in the base_activity test.)

Handled by block base class (no change):

* blocks/html/classes/search/content.php

Handled by activity base class (no change):

* mod/assign/classes/search/activity.php
* mod/book/classes/search/activity.php
* mod/chat/classes/search/activity.php
* mod/choice/classes/search/activity.php
* mod/data/classes/search/activity.php
* mod/feedback/classes/search/activity.php
* mod/folder/classes/search/activity.php
* mod/forum/classes/search/activity.php
* mod/glossary/classes/search/activity.php
* mod/imscp/classes/search/activity.php
* mod/label/classes/search/activity.php
* mod/lesson/classes/search/activity.php
* mod/lti/classes/search/activity.php
* mod/page/classes/search/activity.php
* mod/quiz/classes/search/activity.php
* mod/resource/classes/search/activity.php
* mod/scorm/classes/search/activity.php
* mod/url/classes/search/activity.php
* mod/wiki/classes/search/activity.php
* mod/workshop/classes/search/activity.php

3 years agoMDL-55356 core_message: Rename unit tests with wrong names
sam marshall [Mon, 11 Sep 2017 12:25:11 +0000 (13:25 +0100)]
MDL-55356 core_message: Rename unit tests with wrong names

3 years agoMDL-55356 core_search: New area API get_document_recordset
sam marshall [Wed, 6 Sep 2017 14:37:14 +0000 (15:37 +0100)]
MDL-55356 core_search: New area API get_document_recordset

The search area API now includes a new function get_document_recordset
which should be implemented in preference to the older
get_recordset_by_timestamp. (It's also possible to implement both in
plugin search areas which need to work against older Moodle versions.)

Existing search areas without the new function will continue to work as
before (obviously without the new functionality).

3 years agoMDL-55356 core_search: Restore now requests search indexing
sam marshall [Thu, 7 Sep 2017 11:00:50 +0000 (12:00 +0100)]
MDL-55356 core_search: Restore now requests search indexing

When restoring into a new course, it will queue a request to index
the whole course; when adding to existing, it will queue a request
to index the specific (a) activities and (b) blocks that were
restored.

3 years agoMDL-55356 core_search: API to queue contexts for indexing
sam marshall [Thu, 7 Sep 2017 15:38:38 +0000 (16:38 +0100)]
MDL-55356 core_search: API to queue contexts for indexing

New API \core_search\manager::request_index($context, $areaid = '')
adds the given context to a list which is intended to be indexed
later by the scheduled task.

3 years agoMDL-55356 core_search: API to check if indexing enabled
sam marshall [Thu, 7 Sep 2017 09:46:58 +0000 (10:46 +0100)]
MDL-55356 core_search: API to check if indexing enabled

New function \core_search\manager::is_indexing_enabled(), analagous
to existing is_global_search_enabled().

This replaces existing duplicated code, ready for more use in
following commits.

3 years agoMDL-55356 core_search: Make base_block handle empty restored blocks
sam marshall [Fri, 15 Sep 2017 14:55:20 +0000 (15:55 +0100)]
MDL-55356 core_search: Make base_block handle empty restored blocks

3 years agoMDL-59921 core_calendar: remove unnecessary behat step
Simey Lameze [Wed, 11 Oct 2017 08:37:46 +0000 (16:37 +0800)]
MDL-59921 core_calendar: remove unnecessary behat step