moodle.git
2 years agoMDL-58428 theme: Update upgrade txt & versions.
Mathew May [Tue, 26 Feb 2019 05:41:56 +0000 (13:41 +0800)]
MDL-58428 theme: Update upgrade txt & versions.

2 years agoMDL-58428 theme: Add templates to Course
Mathew May [Tue, 26 Feb 2019 04:19:18 +0000 (12:19 +0800)]
MDL-58428 theme: Add templates to Course

2 years agoMDL-58428 theme: Move templates from admin/tool/usertours
Mathew May [Fri, 22 Feb 2019 07:26:10 +0000 (15:26 +0800)]
MDL-58428 theme: Move templates from admin/tool/usertours

2 years agoMDL-58428 theme: Move templates from admin/tool/lp
Mathew May [Fri, 22 Feb 2019 07:26:09 +0000 (15:26 +0800)]
MDL-58428 theme: Move templates from admin/tool/lp

2 years agoMDL-58428 theme: Move templates from mod/forum
Mathew May [Fri, 22 Feb 2019 07:26:01 +0000 (15:26 +0800)]
MDL-58428 theme: Move templates from mod/forum

2 years agoMDL-58428 theme: Move templates from mod/assign
Mathew May [Fri, 22 Feb 2019 07:25:59 +0000 (15:25 +0800)]
MDL-58428 theme: Move templates from mod/assign

2 years agoMDL-58428 theme: Move templates from grade/grading/form/guide
Mathew May [Fri, 22 Feb 2019 07:25:21 +0000 (15:25 +0800)]
MDL-58428 theme: Move templates from grade/grading/form/guide

2 years agoMDL-58428 theme: Move templates from grade/report/singleview
Mathew May [Fri, 22 Feb 2019 07:25:20 +0000 (15:25 +0800)]
MDL-58428 theme: Move templates from grade/report/singleview

2 years agoMDL-58428 theme: Move templates from grade/report/history
Mathew May [Fri, 22 Feb 2019 07:25:19 +0000 (15:25 +0800)]
MDL-58428 theme: Move templates from grade/report/history

2 years agoMDL-58428 theme: Move templates from grades
Mathew May [Fri, 22 Feb 2019 07:25:19 +0000 (15:25 +0800)]
MDL-58428 theme: Move templates from grades

2 years agoMDL-58428 theme: Move templates from calendar
Mathew May [Fri, 22 Feb 2019 07:25:18 +0000 (15:25 +0800)]
MDL-58428 theme: Move templates from calendar

2 years agoMDL-58428 theme: Move templates from admin
Mathew May [Fri, 22 Feb 2019 07:25:12 +0000 (15:25 +0800)]
MDL-58428 theme: Move templates from admin

2 years agoMDL-58428 theme: Move templates from lib
Mathew May [Fri, 22 Feb 2019 07:25:04 +0000 (15:25 +0800)]
MDL-58428 theme: Move templates from lib

2 years agoMDL-58428 theme: Move templates from blocks/settings
Mathew May [Fri, 22 Feb 2019 07:22:24 +0000 (15:22 +0800)]
MDL-58428 theme: Move templates from blocks/settings

2 years agoMDL-58428 theme: Move templates from blocks/search_forums
Mathew May [Mon, 18 Feb 2019 03:51:39 +0000 (11:51 +0800)]
MDL-58428 theme: Move templates from blocks/search_forums

2 years agoMDL-58428 renderer: Correct paths & xpaths
Mathew May [Thu, 14 Feb 2019 05:58:04 +0000 (13:58 +0800)]
MDL-58428 renderer: Correct paths & xpaths

2 years agoMDL-58428 renderer: Move renderer override from core
Mathew May [Wed, 13 Feb 2019 08:29:22 +0000 (16:29 +0800)]
MDL-58428 renderer: Move renderer override from core

Also update all html_writer user to escape the namespace.
Also update the xpaths in behat

2 years agoMDL-58428 renderer: Move renderer override from blocks
Mathew May [Wed, 13 Feb 2019 06:20:23 +0000 (14:20 +0800)]
MDL-58428 renderer: Move renderer override from blocks

2 years agoMDL-58428 renderer: Move renderer override from maintenance
Mathew May [Wed, 13 Feb 2019 06:16:26 +0000 (14:16 +0800)]
MDL-58428 renderer: Move renderer override from maintenance

2 years agoMDL-58428 renderer: Move renderer override from grade report
Mathew May [Wed, 13 Feb 2019 06:09:38 +0000 (14:09 +0800)]
MDL-58428 renderer: Move renderer override from grade report

2 years agoMDL-58428 renderer: Move renderer override from Question bank
Mathew May [Wed, 13 Feb 2019 06:06:30 +0000 (14:06 +0800)]
MDL-58428 renderer: Move renderer override from Question bank

2 years agoMDL-58428 renderer: Move renderer override from course management
Mathew May [Wed, 13 Feb 2019 04:52:06 +0000 (12:52 +0800)]
MDL-58428 renderer: Move renderer override from course management

2 years agoMDL-58428 renderer: Move renderer override from files
Mathew May [Wed, 13 Feb 2019 04:38:01 +0000 (12:38 +0800)]
MDL-58428 renderer: Move renderer override from files

2 years agoMDL-58428 renderer: Move renderer override from course
Mathew May [Wed, 13 Feb 2019 04:25:24 +0000 (12:25 +0800)]
MDL-58428 renderer: Move renderer override from course

2 years agoMDL-58428 behat: Fix regression of MDL-49399.
Mathew May [Wed, 23 Jan 2019 00:36:38 +0000 (08:36 +0800)]
MDL-58428 behat: Fix regression of MDL-49399.

The behat for tool_task was no longer working in Clean & More due to the menu changes.
This updates the affected steps on Master only as 49399 was a master only fix.

2 years agoMDL-58428 phpunit: PHPUnit will mock the theme config in testing.
Mathew May [Tue, 22 Jan 2019 06:07:48 +0000 (14:07 +0800)]
MDL-58428 phpunit: PHPUnit will mock the theme config in testing.

Other fixes to the require paths, correct the class names in fixtures for 'nofeatures' mock theme.

2 years agoMDL-58428 behat: Check parent themes for Behat override steps.
Andrew Nicols [Thu, 17 Jan 2019 05:57:12 +0000 (13:57 +0800)]
MDL-58428 behat: Check parent themes for Behat override steps.

Behat will now look at the current themes' parents for Behat ovveride steps.
If found we will use the steps replacing the Moodle core steps.

2 years agoMDL-58428 theme: Shift templates ready for Bootstrapbase removal
Mathew May [Wed, 16 Jan 2019 04:03:40 +0000 (12:03 +0800)]
MDL-58428 theme: Shift templates ready for Bootstrapbase removal

Move behat override steps from boost into their Moodle core locations &
Move the effected core behat steps into bootstrapbase as override steps.

2 years agoweekly release 3.7dev
Andrew Nicols [Fri, 22 Feb 2019 02:51:13 +0000 (10:51 +0800)]
weekly release 3.7dev

2 years agoMerge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
Andrew Nicols [Fri, 22 Feb 2019 02:51:09 +0000 (10:51 +0800)]
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install

2 years agoMerge branch 'wip-MDL-64729-master' of https://github.com/Beedell/moodle
Adrian Greeve [Thu, 21 Feb 2019 11:20:48 +0000 (12:20 +0100)]
Merge branch 'wip-MDL-64729-master' of https://github.com/Beedell/moodle

2 years agoMerge branch 'MDL-64093_master' of git://github.com/markn86/moodle
Adrian Greeve [Thu, 21 Feb 2019 08:46:54 +0000 (09:46 +0100)]
Merge branch 'MDL-64093_master' of git://github.com/markn86/moodle

2 years agoMerge branch 'MDL-64823_master' of https://github.com/marxjohnson/moodle
Andrew Nicols [Thu, 21 Feb 2019 02:32:29 +0000 (10:32 +0800)]
Merge branch 'MDL-64823_master' of https://github.com/marxjohnson/moodle

2 years agoMerge branch 'MDL-64571-master' of git://github.com/cescobedo/moodle
Andrew Nicols [Thu, 21 Feb 2019 00:10:54 +0000 (08:10 +0800)]
Merge branch 'MDL-64571-master' of git://github.com/cescobedo/moodle

2 years agoMerge branch 'MDL-64856_m37v1' of git://github.com/sbourget/moodle
Adrian Greeve [Wed, 20 Feb 2019 17:01:53 +0000 (18:01 +0100)]
Merge branch 'MDL-64856_m37v1' of git://github.com/sbourget/moodle

2 years agoMerge branch 'MDL-64749' of https://github.com/mkassaei/moodle
Eloy Lafuente (stronk7) [Wed, 20 Feb 2019 16:01:56 +0000 (17:01 +0100)]
Merge branch 'MDL-64749' of https://github.com/mkassaei/moodle

2 years agoMerge branch 'MDL-64200-master' of git://github.com/damyon/moodle
Adrian Greeve [Wed, 20 Feb 2019 14:57:55 +0000 (15:57 +0100)]
Merge branch 'MDL-64200-master' of git://github.com/damyon/moodle

2 years agoMDL-64749 Question gapselect: Replace 'Choose...' with blank
M Kassaei [Wed, 20 Feb 2019 11:06:51 +0000 (11:06 +0000)]
MDL-64749 Question gapselect: Replace 'Choose...' with blank

2 years agoMerge branch 'MDL-64450-master' of git://github.com/peterRd/moodle
Adrian Greeve [Wed, 20 Feb 2019 10:35:14 +0000 (11:35 +0100)]
Merge branch 'MDL-64450-master' of git://github.com/peterRd/moodle

2 years agoMerge branch 'm37_MDL-64443_Ignore_More_Swap_File_Types' of https://github.com/scara...
Eloy Lafuente (stronk7) [Wed, 20 Feb 2019 09:21:46 +0000 (10:21 +0100)]
Merge branch 'm37_MDL-64443_Ignore_More_Swap_File_Types' of https://github.com/scara/moodle

2 years agoMDL-64500 tool_analytics: noanalysables negation better than analysables
David Monllaó [Wed, 20 Feb 2019 07:10:44 +0000 (08:10 +0100)]
MDL-64500 tool_analytics: noanalysables negation better than analysables

2 years agoMerge branch 'MDL-64570-master-fix1' of git://github.com/damyon/moodle
Andrew Nicols [Wed, 20 Feb 2019 02:52:22 +0000 (10:52 +0800)]
Merge branch 'MDL-64570-master-fix1' of git://github.com/damyon/moodle

2 years agoMDL-64570 user: input field purpose
Damyon Wiese [Wed, 20 Feb 2019 01:42:26 +0000 (09:42 +0800)]
MDL-64570 user: input field purpose

Do not autocomplete the user fields when editing another user.

2 years agoMerge branch 'MDL-64679_master' of git://github.com/dmonllao/moodle
Eloy Lafuente (stronk7) [Tue, 19 Feb 2019 23:06:50 +0000 (00:06 +0100)]
Merge branch 'MDL-64679_master' of git://github.com/dmonllao/moodle

2 years agoMerge branch 'MDL-63134-master' of git://github.com/rezaies/moodle
Eloy Lafuente (stronk7) [Tue, 19 Feb 2019 22:57:10 +0000 (23:57 +0100)]
Merge branch 'MDL-63134-master' of git://github.com/rezaies/moodle

2 years agoMerge branch 'MDL-64806-master' of git://github.com/damyon/moodle
Eloy Lafuente (stronk7) [Tue, 19 Feb 2019 22:34:38 +0000 (23:34 +0100)]
Merge branch 'MDL-64806-master' of git://github.com/damyon/moodle

2 years agoMerge branch 'MDL-64242' of git://github.com/timhunt/moodle
Eloy Lafuente (stronk7) [Tue, 19 Feb 2019 22:22:52 +0000 (23:22 +0100)]
Merge branch 'MDL-64242' of git://github.com/timhunt/moodle

2 years agoMerge branch 'MDL-63938-master' of https://github.com/HuongNV13/moodle
Eloy Lafuente (stronk7) [Tue, 19 Feb 2019 18:07:14 +0000 (19:07 +0100)]
Merge branch 'MDL-63938-master' of https://github.com/HuongNV13/moodle

2 years agoMerge branch 'MDL-64791-master' of git://github.com/jleyva/moodle
Eloy Lafuente (stronk7) [Tue, 19 Feb 2019 16:42:21 +0000 (17:42 +0100)]
Merge branch 'MDL-64791-master' of git://github.com/jleyva/moodle

2 years agoMerge branch 'MDL-62008-master' of git://github.com/damyon/moodle
Eloy Lafuente (stronk7) [Tue, 19 Feb 2019 16:23:41 +0000 (17:23 +0100)]
Merge branch 'MDL-62008-master' of git://github.com/damyon/moodle

2 years agoMerge branch 'MDL-64500_master' of git://github.com/dmonllao/moodle
Eloy Lafuente (stronk7) [Tue, 19 Feb 2019 16:10:38 +0000 (17:10 +0100)]
Merge branch 'MDL-64500_master' of git://github.com/dmonllao/moodle

2 years agoMerge branch 'MDL-60459_master' of git://github.com/markn86/moodle
Adrian Greeve [Tue, 19 Feb 2019 10:48:14 +0000 (11:48 +0100)]
Merge branch 'MDL-60459_master' of git://github.com/markn86/moodle

2 years agoMDL-63938 Enrolments: course_enrolment_manager method improvement
Huong Nguyen [Tue, 27 Nov 2018 09:14:38 +0000 (16:14 +0700)]
MDL-63938 Enrolments: course_enrolment_manager method improvement

course_enrolment_manager method should not always do a count_records and a get_records

2 years agoMerge branch 'MDL-64570-master' of git://github.com/damyon/moodle
David Monllaó [Tue, 19 Feb 2019 05:45:21 +0000 (06:45 +0100)]
Merge branch 'MDL-64570-master' of git://github.com/damyon/moodle

2 years agoMerge branch 'MDL-45151-master' of git://github.com/damyon/moodle
David Monllaó [Tue, 19 Feb 2019 05:39:24 +0000 (06:39 +0100)]
Merge branch 'MDL-45151-master' of git://github.com/damyon/moodle

2 years agoMDL-64570 user: coding style
Damyon Wiese [Tue, 29 Jan 2019 03:36:44 +0000 (11:36 +0800)]
MDL-64570 user: coding style

Fix cibot warnings on line length.

2 years agoMDL-64570 accessibility: autocomplete user profile fields
Damyon Wiese [Mon, 14 Jan 2019 08:14:45 +0000 (16:14 +0800)]
MDL-64570 accessibility: autocomplete user profile fields

Only if editing your own user details and not logged in as someone else.

2 years agoMerge branch 'MDL-53346-master' of git://github.com/damyon/moodle
Eloy Lafuente (stronk7) [Mon, 18 Feb 2019 23:23:21 +0000 (00:23 +0100)]
Merge branch 'MDL-53346-master' of git://github.com/damyon/moodle

2 years agoMerge branch 'MDL-64314-master-upgrade-fix' of git://github.com/abgreeve/moodle
Eloy Lafuente (stronk7) [Mon, 18 Feb 2019 15:49:50 +0000 (16:49 +0100)]
Merge branch 'MDL-64314-master-upgrade-fix' of git://github.com/abgreeve/moodle

2 years agoMDL-64314 messaging: Quick fix for empty insights configuration.
Adrian Greeve [Mon, 18 Feb 2019 15:30:19 +0000 (16:30 +0100)]
MDL-64314 messaging: Quick fix for empty insights configuration.

2 years agoMerge branch 'MDL-64452-master-cachesession' of git://github.com/mudrd8mz/moodle
Adrian Greeve [Mon, 18 Feb 2019 14:51:30 +0000 (15:51 +0100)]
Merge branch 'MDL-64452-master-cachesession' of git://github.com/mudrd8mz/moodle

2 years agoMerge branch 'MDL-64314_master' of git://github.com/dmonllao/moodle
Adrian Greeve [Mon, 18 Feb 2019 13:50:59 +0000 (14:50 +0100)]
Merge branch 'MDL-64314_master' of git://github.com/dmonllao/moodle

2 years agoMerge branch 'MDL-64587-master' of https://github.com/junpataleta/moodle
David Monllaó [Mon, 18 Feb 2019 09:25:35 +0000 (10:25 +0100)]
Merge branch 'MDL-64587-master' of https://github.com/junpataleta/moodle

2 years agoMerge branch 'MDL-55211-master' of git://github.com/damyon/moodle
Adrian Greeve [Mon, 18 Feb 2019 08:34:43 +0000 (09:34 +0100)]
Merge branch 'MDL-55211-master' of git://github.com/damyon/moodle

2 years agoMDL-64587 tool_xmldb: Change Continue to Back link for consistency
Jun Pataleta [Mon, 18 Feb 2019 08:09:50 +0000 (16:09 +0800)]
MDL-64587 tool_xmldb: Change Continue to Back link for consistency

* For consistency with the rest of navigation links in the tool, change
the Continue button to a Back link.

2 years agoMDL-64587 xmldb: XMLDB option to add mandatory persistent fields.
Michael Aherne [Tue, 15 Jan 2019 14:36:19 +0000 (14:36 +0000)]
MDL-64587 xmldb: XMLDB option to add mandatory persistent fields.

2 years agoMerge branch 'MDL-62142-master' of git://github.com/damyon/moodle
Jun Pataleta [Mon, 18 Feb 2019 06:28:09 +0000 (14:28 +0800)]
Merge branch 'MDL-62142-master' of git://github.com/damyon/moodle

2 years agoMDL-62142 navigation: accessibility
Damyon Wiese [Fri, 7 Sep 2018 03:55:06 +0000 (11:55 +0800)]
MDL-62142 navigation: accessibility

Set unique meaningful labels on all nav components rendered in the "boost" theme.

2 years agoMerge branch 'MDL-62728-locale_5' of https://github.com/DSI-Universite-Rennes2/moodle
Andrew Nicols [Mon, 18 Feb 2019 04:27:40 +0000 (12:27 +0800)]
Merge branch 'MDL-62728-locale_5' of https://github.com/DSI-Universite-Rennes2/moodle

2 years agoMerge branch 'MDL-61575-master' of git://github.com/cescobedo/moodle
Andrew Nicols [Mon, 18 Feb 2019 00:34:46 +0000 (08:34 +0800)]
Merge branch 'MDL-61575-master' of git://github.com/cescobedo/moodle

2 years agoMDL-64443 git: Excluded vim swap files
Matteo Scaramuccia [Wed, 19 Dec 2018 09:14:02 +0000 (10:14 +0100)]
MDL-64443 git: Excluded vim swap files

Vim swap filenames are deterministic someway.
Refs:
- http://vimdoc.sourceforge.net/htmldoc/recover.html#swap-file
- https://github.com/vim/vim/blob/4efe73b478d3ba689078da502fd96f45204ff1f5/src/memline.c#L4683
- https://unix.stackexchange.com/a/326737
- https://github.com/github/gitignore/blob/master/Global/Vim.gitignore

2 years agoAutomatically generated installer lang files
AMOS bot [Sat, 16 Feb 2019 00:13:20 +0000 (00:13 +0000)]
Automatically generated installer lang files

2 years agoMDL-64729 mod_glossary: glossary_get_entries_search case sensitivity
John Beedell [Wed, 30 Jan 2019 14:46:40 +0000 (14:46 +0000)]
MDL-64729 mod_glossary: glossary_get_entries_search case sensitivity

2 years agoMDL-62728 lang: display a warning when missing some locales on server
Julien Boulen [Fri, 15 Feb 2019 08:53:00 +0000 (09:53 +0100)]
MDL-62728 lang: display a warning when missing some locales on server

2 years agoMDL-64452 cache: Add tests for key prefix based on session id
David Mudrák [Tue, 8 Jan 2019 19:03:06 +0000 (20:03 +0100)]
MDL-64452 cache: Add tests for key prefix based on session id

Unfortunately, we can't simply use session_id() to regenerate the
session id in unit tests. Starting from PHP 7.2, it would trigger
"session_id(): Cannot change session id when headers already sent",
refer to MDL-60978 and PHP bug #75628 for more details.

As a workaround, we use a static property allowing us to inject the
value that we then use as a session identifier. This is reasonably
enough to make sure that the identifier is used as a part of the key
prefix.

2 years agoMDL-64452 cache: Always use the current session id in the key prefix
David Mudrák [Tue, 8 Jan 2019 18:23:59 +0000 (19:23 +0100)]
MDL-64452 cache: Always use the current session id in the key prefix

The current logic in the cache_session::check_tracked_user() is not
right. We must always set the current session id. A typical use case is
when the cache instance is instantiated for a not logged in user. We
can't let the sessionid property null in that case as it forms an
important part of the parsed key.

Similarly, even if we have the same user currently loaded, we must still
set the sessionid to make sure the data will be associated with the
current PHP session. Same user (including visitors or guest users) can
access the site from different browsers and each must end up with its
own key prefix.

2 years agoMerge branch 'MDL-63944-master' of https://github.com/lethevinh/moodle
Jun Pataleta [Fri, 15 Feb 2019 08:27:02 +0000 (16:27 +0800)]
Merge branch 'MDL-63944-master' of https://github.com/lethevinh/moodle

2 years agoMDL-64314 messaging: Web notifications for insights
David Monllaó [Fri, 8 Feb 2019 12:46:43 +0000 (13:46 +0100)]
MDL-64314 messaging: Web notifications for insights

2 years agoMDL-64679 tool_analytics: Allow trained models to be cleared
David Monllaó [Wed, 23 Jan 2019 15:20:56 +0000 (16:20 +0100)]
MDL-64679 tool_analytics: Allow trained models to be cleared

2 years agoMDL-63944 Question: Add toggle all to Quiz Activity
VinhLe [Tue, 12 Feb 2019 08:22:08 +0000 (15:22 +0700)]
MDL-63944 Question: Add toggle all to Quiz Activity

2 years agoMDL-63944 Question: Convert toggle all to generic module
Andrew Nicols [Wed, 2 Jan 2019 07:22:09 +0000 (15:22 +0800)]
MDL-63944 Question: Convert toggle all to generic module

2 years agoMDL-63944 Questions Bank: Select all checkbox should be checked
VinhLe [Tue, 13 Nov 2018 07:47:55 +0000 (14:47 +0700)]
MDL-63944 Questions Bank: Select all checkbox should be checked

When checkbox item be chosen then "Select All" be chosen.
When "Select All" be chosen then all checkbox item be chosen.

2 years agoweekly release 3.7dev
Andrew Nicols [Fri, 15 Feb 2019 00:29:14 +0000 (08:29 +0800)]
weekly release 3.7dev

2 years agoMerge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
Andrew Nicols [Fri, 15 Feb 2019 00:29:12 +0000 (08:29 +0800)]
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install

2 years agoMDL-64856 mod_glossary: Always show the settings cog on the view page.
Stephen Bourget [Thu, 14 Feb 2019 17:36:55 +0000 (12:36 -0500)]
MDL-64856 mod_glossary: Always show the settings cog on the view page.

2 years agoMerge branch 'MDL-64552_admin_hideif' of git://github.com/davosmith/moodle
Jun Pataleta [Thu, 14 Feb 2019 07:12:22 +0000 (15:12 +0800)]
Merge branch 'MDL-64552_admin_hideif' of git://github.com/davosmith/moodle

2 years agoMerge branch 'MDL-64736-master-2' of git://github.com/andrewnicols/moodle
Jun Pataleta [Thu, 14 Feb 2019 07:00:56 +0000 (15:00 +0800)]
Merge branch 'MDL-64736-master-2' of git://github.com/andrewnicols/moodle

2 years agoMerge branch 'MDL-64788_master' of git://github.com/markn86/moodle
Andrew Nicols [Thu, 14 Feb 2019 01:40:13 +0000 (09:40 +0800)]
Merge branch 'MDL-64788_master' of git://github.com/markn86/moodle

2 years agoMerge branch 'MDL-63892-master-rework' of git://github.com/mickhawkins/moodle
Jun Pataleta [Wed, 13 Feb 2019 13:01:32 +0000 (21:01 +0800)]
Merge branch 'MDL-63892-master-rework' of git://github.com/mickhawkins/moodle

2 years agoMDL-63892 mod_forum: Behat update for post order
Michael Hawkins [Wed, 13 Feb 2019 08:47:46 +0000 (16:47 +0800)]
MDL-63892 mod_forum: Behat update for post order

2 years agoMerge branch 'MDL-64835-master' of git://github.com/andrewnicols/moodle
Jun Pataleta [Wed, 13 Feb 2019 08:27:15 +0000 (16:27 +0800)]
Merge branch 'MDL-64835-master' of git://github.com/andrewnicols/moodle

2 years agoMerge branch 'MDL-64557_course_hideif' of git://github.com/davosmith/moodle
Jun Pataleta [Wed, 13 Feb 2019 08:17:44 +0000 (16:17 +0800)]
Merge branch 'MDL-64557_course_hideif' of git://github.com/davosmith/moodle

2 years agoMDL-63977 Behat: Wait longer for app login
Andrew Nicols [Wed, 13 Feb 2019 06:14:32 +0000 (14:14 +0800)]
MDL-63977 Behat: Wait longer for app login

2 years agoMDL-63977 Behat: Prefer ionic approot over wwwroot
Andrew Nicols [Wed, 13 Feb 2019 05:55:34 +0000 (13:55 +0800)]
MDL-63977 Behat: Prefer ionic approot over wwwroot

2 years agoMerge branch 'MDL-63977-beforemerge' of https://github.com/sammarshallou/moodle
Andrew Nicols [Wed, 13 Feb 2019 05:21:15 +0000 (13:21 +0800)]
Merge branch 'MDL-63977-beforemerge' of https://github.com/sammarshallou/moodle

2 years agoMerge branch 'MDL-64714-master' of git://github.com/cescobedo/moodle
Andrew Nicols [Wed, 13 Feb 2019 03:22:24 +0000 (11:22 +0800)]
Merge branch 'MDL-64714-master' of git://github.com/cescobedo/moodle

2 years agoMerge branch 'MDL-63892-master-rework' of git://github.com/mickhawkins/moodle
Andrew Nicols [Wed, 13 Feb 2019 02:18:25 +0000 (10:18 +0800)]
Merge branch 'MDL-63892-master-rework' of git://github.com/mickhawkins/moodle

2 years agoMDL-64835 JS: Reduce cache invalidation checks
Andrew Nicols [Tue, 12 Feb 2019 23:45:02 +0000 (07:45 +0800)]
MDL-64835 JS: Reduce cache invalidation checks

The cache invalidation check was previously occuring every time either
the `set` or `get` function was called on the cache. However, the cache
invalidation check is based on the jsrev which is static for the
lifetime of the page.

This change moved the invalidation to happen during the setup of the AMD
module such that it only happens one time per storage type (Local +
Session).

2 years agoMDL-64835 JS: Stop using the jsrev in the jsrevPrefix
Andrew Nicols [Tue, 12 Feb 2019 23:37:03 +0000 (07:37 +0800)]
MDL-64835 JS: Stop using the jsrev in the jsrevPrefix

We only use the jsrevPrefix to determine if the cache should be
invalidated, but the prefix that we were using is based on the new
jsrev.

For example, the jsrevPrefix will be:

    hash(wwwroot + '/ + config.jsrev) + '/jsrev'

Where config.jsrev is the _current_ (new) jsrev.

As a result when searching for the jsrev used to store the data which is
currently in the storage cache, no key is returned, and we instead set
an 'initial' value and the cache is not cleared

This patch changes the jsrevPrefix to be:

    hash(wwwroot) + '/jsrev'

Since the wwwroot does not change, the key remains static for the
current site. As a result, when the jsrev is bumped via a Moodle cache
purge, we are able to correctly fetch the old jsrev from the cache,
determine that the jsrev has changed, and purge the cache.

2 years agoAutomatically generated installer lang files
AMOS bot [Wed, 13 Feb 2019 00:11:35 +0000 (00:11 +0000)]
Automatically generated installer lang files