Jake Dallimore [Wed, 29 Jan 2020 03:52:46 +0000 (11:52 +0800)]
MDL-67585 core_course: add hook get_all_content_items
Returns all content items which are provided by the plugin, irrespective
of whether or not a user can see an item in a particular course. This is
used to generate a global list of content items, allowing for admin
level features to be added.
Jake Dallimore [Fri, 31 Jan 2020 23:45:46 +0000 (07:45 +0800)]
MDL-67585 core_course: deprecate the callback get_shortcuts()
This involves a few changes:
- The callback is still called by the repository but only if the
replacement callback get_course_content_items is not implemented.
- Debugging is called when the get_shortcuts callback is called.
- We leave lti's implementation of get_shortcuts alone, in order to
maintain the output of get_module_metadata during its deprecation life
span.
Jake Dallimore [Tue, 28 Jan 2020 08:47:09 +0000 (16:47 +0800)]
MDL-67585 core_course: only accept content items from mods and submods
This matches the prior behaviour in core.
Jake Dallimore [Thu, 23 Jan 2020 07:45:34 +0000 (15:45 +0800)]
MDL-67585 core_course: add get_course_content_items hook
Plugins use this to report which content items relate to a user in
a course.
Jake Dallimore [Sat, 1 Feb 2020 02:28:26 +0000 (10:28 +0800)]
MDL-67585 format_singleactivity: fix hassubtype to use the service data
TODO: really need to properly work out subtypes lower down in the repo.
Jake Dallimore [Thu, 23 Jan 2020 01:41:55 +0000 (09:41 +0800)]
MDL-67585 core_course: deprecate get_module_metadata() from course/lib
Jake Dallimore [Tue, 21 Jan 2020 06:14:18 +0000 (14:14 +0800)]
MDL-67585 core_course: Use the content_item_service to build the picker
Replace get_module_metadata calls with calls to the new
content_item_service class.
Jake Dallimore [Tue, 21 Jan 2020 03:43:08 +0000 (11:43 +0800)]
MDL-67585 core_course: add content_item_service class
The service object encapsulates access control logic and allows
consumers to query content items in different contexts/scopes.
Jake Dallimore [Tue, 21 Jan 2020 05:21:48 +0000 (13:21 +0800)]
MDL-67585 core_course: add user param to course_allowed_module
We want to be able to call this for a user, not rely on a global.
Jake Dallimore [Tue, 21 Jan 2020 03:04:54 +0000 (11:04 +0800)]
MDL-67585 core_course: add exporter for course content items
An exporter will allow let us add calculated fields like 'favourited'
to the data being transferred.
Jake Dallimore [Mon, 20 Jan 2020 07:18:30 +0000 (15:18 +0800)]
MDL-67585 core_course: add caching_content_item_repository class
A repository object which caches results for a user and course. This
allows this repository to be called many time in a single request - a
pattern we expect when objects of this type replace the existing
get_module_metadata() method.
Jake Dallimore [Mon, 20 Jan 2020 06:56:13 +0000 (14:56 +0800)]
MDL-67585 core: add course content item cache
To be indexed by userid_courseid.
Jake Dallimore [Mon, 20 Jan 2020 06:11:33 +0000 (14:11 +0800)]
MDL-67585 core_course: add content_item_readonly_repository class
Add a read-only repository, which returns the list of content items
which can be added to a course. This class does not handle access
control nor user-related data pertaining to to core content_items.
This will be handled in a future commit in any calling code using
the repositories.
Jake Dallimore [Wed, 22 Jan 2020 05:49:28 +0000 (13:49 +0800)]
MDL-67585 core_course: add support for custom titles to content_item
Plugins have always been able to return either a string or a lang string
when implementing the hook, 'get_shortcuts'. Since content_items will
be the replacement for that stdClass implementation, we need a way
for plugins to continue to have this flexibility. This just provides
a small contract and some classes that plugins can use in future.
Jake Dallimore [Mon, 20 Jan 2020 05:09:00 +0000 (13:09 +0800)]
MDL-67585 core_course: add the content_item class
Objects of this class represent items able to be added to a course,
including modules and submodules.
Eloy Lafuente (stronk7) [Wed, 19 Feb 2020 23:41:19 +0000 (00:41 +0100)]
Merge branch 'MDL-67899-master' of git://github.com/rezaies/moodle
Luke Tucker [Thu, 4 Jun 2015 01:58:44 +0000 (11:28 +0930)]
MDL-50455: tool_capability: Use static cache when loading context data
Eloy Lafuente (stronk7) [Wed, 19 Feb 2020 18:17:09 +0000 (19:17 +0100)]
Merge branch 'MDL-67942-master' of https://github.com/HuongNV13/moodle
Eloy Lafuente (stronk7) [Wed, 19 Feb 2020 16:48:14 +0000 (17:48 +0100)]
Merge branch 'MDL-67947' of https://github.com/timhunt/moodle
Tim Hunt [Thu, 13 Feb 2020 16:09:33 +0000 (16:09 +0000)]
MDL-67947 questions: questions_in_use should ask all components
Previously it was only checking mods.
Huong Nguyen [Wed, 12 Feb 2020 08:45:04 +0000 (15:45 +0700)]
MDL-67942 Quiz: Quiz attempt report delete_selected_attempts issue
Jun Pataleta [Wed, 19 Feb 2020 06:44:13 +0000 (14:44 +0800)]
Merge branch 'MDL-67321-latest' of https://github.com/Chocolate-lightning/moodle
Mathew May [Mon, 3 Feb 2020 05:13:14 +0000 (13:13 +0800)]
MDL-67321 core_course: Add support for tabbing activities in the chooser
Eloy Lafuente (stronk7) [Tue, 18 Feb 2020 22:54:35 +0000 (23:54 +0100)]
Merge branch 'MDL-67471_master' of https://github.com/t-schroeder/moodle
Eloy Lafuente (stronk7) [Tue, 18 Feb 2020 18:07:05 +0000 (19:07 +0100)]
Merge branch 'MDL-61390-master' of git://github.com/junpataleta/moodle
Eloy Lafuente (stronk7) [Tue, 18 Feb 2020 16:09:17 +0000 (17:09 +0100)]
Merge branch 'MDL-67953-master' of git://github.com/andrewnicols/moodle
Eloy Lafuente (stronk7) [Tue, 18 Feb 2020 09:20:07 +0000 (10:20 +0100)]
Merge branch 'MDL-67949-master' of git://github.com/andrewnicols/moodle
Andrew Nicols [Thu, 13 Feb 2020 05:12:20 +0000 (13:12 +0800)]
MDL-67949 grunt: normalise component paths
Eloy Lafuente (stronk7) [Mon, 17 Feb 2020 22:29:28 +0000 (23:29 +0100)]
Merge branch 'MDL-61389-master' of git://github.com/junpataleta/moodle
Eloy Lafuente (stronk7) [Mon, 17 Feb 2020 21:40:45 +0000 (22:40 +0100)]
Merge branch 'MDL-67309' of https://github.com/Peterburnett/moodle
Eloy Lafuente (stronk7) [Mon, 17 Feb 2020 21:08:09 +0000 (22:08 +0100)]
Merge branch 'MDL-67817-master' of https://github.com/dthies/moodle
Eloy Lafuente (stronk7) [Mon, 17 Feb 2020 11:28:05 +0000 (12:28 +0100)]
Merge branch 'MDL-67712-master' of git://github.com/andrewnicols/moodle
Tim Schroeder [Fri, 6 Dec 2019 10:42:19 +0000 (11:42 +0100)]
MDL-67471 message: fixed mark_notification_read with messaging disabled
Jun Pataleta [Fri, 7 Feb 2020 07:10:27 +0000 (15:10 +0800)]
MDL-61390 mod_forum: Create template for forum search results
Jun Pataleta [Thu, 13 Feb 2020 08:30:35 +0000 (16:30 +0800)]
MDL-61389 mod_forum: Descriptive aria-label for "Discuss this topic"
Peter Burnett [Mon, 27 Jan 2020 23:11:43 +0000 (09:11 +1000)]
MDL-67309 login: Added check for password policy at login time.
Andrew Nicols [Thu, 13 Feb 2020 05:26:31 +0000 (13:26 +0800)]
MDL-67949 grunt: Add debugging information
Andrew Nicols [Thu, 16 Jan 2020 13:41:17 +0000 (21:41 +0800)]
MDL-67712 grunt: Ensure that more-specific matches are first
Daniel Thies [Fri, 7 Feb 2020 15:51:19 +0000 (09:51 -0600)]
MDL-67817 core_date: Add test for timezone localization strings
Daniel Thies [Fri, 14 Feb 2020 17:42:33 +0000 (11:42 -0600)]
MDL-67817 core_lang: Update timezone strings deprecating old identifiers
Sara Arjona [Fri, 14 Feb 2020 11:12:02 +0000 (12:12 +0100)]
weekly release 3.9dev
Sara Arjona [Fri, 14 Feb 2020 11:12:00 +0000 (12:12 +0100)]
NOBUG: Fixed SVG browser compatibility
Sara Arjona [Fri, 14 Feb 2020 11:11:59 +0000 (12:11 +0100)]
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
Jun Pataleta [Fri, 14 Feb 2020 05:25:16 +0000 (13:25 +0800)]
Merge branch 'MDL-67965-master' of git://github.com/andrewnicols/moodle
Andrew Nicols [Thu, 13 Feb 2020 03:46:29 +0000 (11:46 +0800)]
Merge branch 'MDL-67878' of https://github.com/timhunt/moodle
Andrew Nicols [Thu, 13 Feb 2020 03:43:41 +0000 (11:43 +0800)]
Merge branch 'MDL-67264-review-squashed' of https://github.com/Chocolate-lightning/moodle
Eloy Lafuente (stronk7) [Wed, 12 Feb 2020 14:56:01 +0000 (15:56 +0100)]
Merge branch 'MDL-67876' of https://github.com/timhunt/moodle
Sara Arjona [Wed, 12 Feb 2020 09:11:29 +0000 (10:11 +0100)]
Merge branch 'MDL-63032-master' of git://github.com/peterRd/moodle
Andrew Nicols [Wed, 12 Feb 2020 00:21:54 +0000 (08:21 +0800)]
Merge branch 'MDL-67857' of https://github.com/timhunt/moodle
Eloy Lafuente (stronk7) [Tue, 11 Feb 2020 22:07:58 +0000 (23:07 +0100)]
Merge branch 'MDL-67532' of https://github.com/paulholden/moodle
Eloy Lafuente (stronk7) [Tue, 11 Feb 2020 21:56:26 +0000 (22:56 +0100)]
Merge branch 'MDL-67675-master' of git://github.com/rezaies/moodle
Eloy Lafuente (stronk7) [Tue, 11 Feb 2020 21:46:46 +0000 (22:46 +0100)]
Merge branch 'MDL-67690-master' of git://github.com/merrill-oakland/moodle
Andrew Nicols [Fri, 14 Feb 2020 01:52:23 +0000 (09:52 +0800)]
MDL-67965 behat: Get theme-specific context classes correctly
Andrew Nicols [Thu, 13 Feb 2020 05:14:49 +0000 (13:14 +0800)]
MDL-67953 grunt: Work around spawn length limits
Mathew May [Wed, 12 Feb 2020 02:41:50 +0000 (10:41 +0800)]
MDL-67264 lib modal: Add deffered promises to content promises
Peter [Wed, 15 Jan 2020 03:40:06 +0000 (11:40 +0800)]
MDL-67264 core_course: Activity chooser behat
Update the selectors to use a button
Add new tests to cover new functionality
Add new new step definitions to minimise usage of xpaths
Co-authored-by: Mathew May <mathewm@hotmail.co.nz>
Co-authored-by: Mihail Geshoski <mihail@moodle.com>
Co-authored-by: Peter <peterrolanddias@gmail.com>
Tim Hunt [Wed, 12 Feb 2020 14:26:16 +0000 (14:26 +0000)]
MDL-67878 grunt: make it works on Windows
To be honest, all the real skill here is Andrew Nicols, but I made the patch, so the credit is mine! All mine!
Tim Hunt [Wed, 12 Feb 2020 09:58:47 +0000 (09:58 +0000)]
MDL-67876 forms: not all field types need validation JS
Tim Hunt [Wed, 5 Feb 2020 12:18:17 +0000 (12:18 +0000)]
MDL-67876 forms: scroll to any invalid element if form cannot submit
Mathew May [Mon, 3 Feb 2020 01:35:11 +0000 (09:35 +0800)]
MDL-67264 core_course: Activity chooser new feature
Roll in the base for the new activity chooser
It renders all modules into a modal
Gives the user to add from either the base or help screens
All checked by accessability tools with great coverage
Adds minimal overhead to the course edit setup time
Co-authored-by: Mathew May <mathewm@hotmail.co.nz>
Co-authored-by: Mihail Geshoski <mihail@moodle.com>
Shamim Rezaie [Tue, 11 Feb 2020 14:01:22 +0000 (01:01 +1100)]
MDL-67899 message: Add aria-label to the emoji picker button
Sara Arjona [Tue, 11 Feb 2020 12:52:19 +0000 (13:52 +0100)]
Merge branch 'MDL-59303' of https://github.com/paulholden/moodle
Sara Arjona [Tue, 11 Feb 2020 12:22:54 +0000 (13:22 +0100)]
Merge branch 'MDL-67635-filesystem-cleanup' of https://github.com/brendanheywood/moodle
Sara Arjona [Tue, 11 Feb 2020 11:28:24 +0000 (12:28 +0100)]
Merge branch 'MDL-66847-master' of git://github.com/lucaboesch/moodle
Luca Bösch [Thu, 10 Oct 2019 08:04:05 +0000 (10:04 +0200)]
MDL-66847 webservice: Correct breadcrumb + title for ws documentation.
Sara Arjona [Tue, 11 Feb 2020 10:54:12 +0000 (11:54 +0100)]
Merge branch 'MDL-66834-master' of https://github.com/kepeter/moodle
Sara Arjona [Tue, 11 Feb 2020 10:40:18 +0000 (11:40 +0100)]
Merge branch 'MDL-67060-master' of git://github.com/aanabit/moodle
Tim Hunt [Mon, 3 Feb 2020 18:53:06 +0000 (18:53 +0000)]
MDL-67857 formchangechecker: support form submits that dont save
Amaia Anabitarte [Thu, 30 Jan 2020 14:31:01 +0000 (15:31 +0100)]
MDL-67060 core_h5p: Behats for H5P tools Overview
Amaia Anabitarte [Thu, 30 Jan 2020 14:47:38 +0000 (15:47 +0100)]
MDL-67060 core_h5p: Improvements to Manage H5P setting page
Co-authored by: Adrian Greeve <adrian@moodle.com>
AMOS BEGIN
CPY [description,moodle],[description,core_h5p]
CPY [status,moodle],[status,core_h5p]
AMOS END
Amaia Anabitarte [Tue, 11 Feb 2020 09:25:21 +0000 (10:25 +0100)]
MDL-67060 core_h5p: Improving H5P libraries list
Sara Arjona [Tue, 11 Feb 2020 09:18:49 +0000 (10:18 +0100)]
Merge branch 'bugfix-MDL-67142' of https://github.com/AngadSethi/moodle
Sara Arjona [Tue, 11 Feb 2020 07:20:29 +0000 (08:20 +0100)]
Merge branch 'MDL-67894-master' of https://github.com/grabs/moodle
Peter Dias [Mon, 10 Feb 2020 04:54:29 +0000 (12:54 +0800)]
MDL-63032 core: Update the timezone to the latest windows list
Sara Arjona [Mon, 10 Feb 2020 16:59:22 +0000 (17:59 +0100)]
Merge branch 'MDL-67192-master' of git://github.com/vmdef/moodle
Víctor Déniz Falcón [Wed, 5 Feb 2020 15:22:27 +0000 (15:22 +0000)]
MDL-67192 core_h5p: remove redundant assignment
Víctor Déniz Falcón [Wed, 5 Feb 2020 15:22:12 +0000 (15:22 +0000)]
MDL-67192 core_h5p: get site UUID from H5P using the API
Mihail Geshoski [Mon, 3 Feb 2020 01:31:44 +0000 (09:31 +0800)]
MDL-67264 core_course: Begin set up for Activity chooser
Mathew May [Wed, 22 Jan 2020 06:07:57 +0000 (14:07 +0800)]
MDL-67264 core_templates: If classes exists render it out
Angad Sethi [Fri, 7 Feb 2020 09:29:17 +0000 (14:59 +0530)]
MDL-67142 quiz: fixed error when deleting saved questions long-name-quiz
An error was showing up while deleting questions
(in the question_save_from_deletion method) which had been saved
and which belonged to a quiz with a super long name, not exceeding 255
characters, as the 'name' field in 'question_categories' table had a
max size of 255 characters. The shorten_text function was used to
shorten the string to 255 characters and a unit test was added with
the name test_question_save_from_deletion_quiz_with_long_name to test
the patch.
AMOS bot [Sat, 8 Feb 2020 00:11:45 +0000 (00:11 +0000)]
Automatically generated installer lang files
Andreas Grabs [Fri, 7 Feb 2020 17:47:37 +0000 (18:47 +0100)]
MDL-67894 mod_feedback: database error on show responses
Paul Holden [Fri, 25 Oct 2019 11:42:47 +0000 (12:42 +0100)]
MDL-59303 auth_shibboleth: consistent readme URL.
Paul Holden [Fri, 24 Jan 2020 08:22:08 +0000 (08:22 +0000)]
MDL-67532 badges: better default for new badge language.
Sara Arjona [Fri, 7 Feb 2020 08:44:47 +0000 (09:44 +0100)]
weekly release 3.9dev
Sara Arjona [Fri, 7 Feb 2020 08:44:44 +0000 (09:44 +0100)]
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
Brendan Heywood [Fri, 17 Jan 2020 11:25:27 +0000 (22:25 +1100)]
MDL-67726 tool_phpunit: Removed webrunner tool
Andrew Nicols [Fri, 7 Feb 2020 00:08:43 +0000 (08:08 +0800)]
Merge branch 'MDL-67175-master' of git://github.com/andrewnicols/moodle
Ferran Recio [Thu, 9 Jan 2020 14:39:39 +0000 (15:39 +0100)]
MDL-67175 mod_scorm: fixing js eslint errors
Sam Hemelryk [Tue, 15 Oct 2019 04:28:25 +0000 (17:28 +1300)]
MDL-67175 mod_scorm: sync XHR requests use sendBeacon when available
Totara reference TL-22621 (original code by Sam Hemelryk)
https://github.com/moodle/moodle/commit/
2add402f8183c50bc1238ef2da5ea9cd06cb1dd9
Brendan Cox [Tue, 1 Oct 2019 22:35:31 +0000 (11:35 +1300)]
MDL-67175 session: set SameSite=None for Chrome 78 and above
Totara reference TL-22311 (original code by Brendan Cox and Sam Hemelryk)
https://github.com/moodle/moodle/commit/
a3f4de2b7efe66de6617a67ce7c87f2862e76ac6
Eloy Lafuente (stronk7) [Wed, 5 Feb 2020 22:59:59 +0000 (23:59 +0100)]
Merge branch 'MDL-67832' of https://github.com/timhunt/moodle
(fixed a couple of typos in the merge commit)
Eloy Lafuente (stronk7) [Wed, 5 Feb 2020 18:14:30 +0000 (19:14 +0100)]
Merge branch 'MDL-67387-master' of git://github.com/cescobedo/moodle
Eloy Lafuente (stronk7) [Wed, 5 Feb 2020 18:07:55 +0000 (19:07 +0100)]
Merge branch 'MDL-67830' of https://github.com/timhunt/moodle
Sara Arjona [Wed, 5 Feb 2020 12:10:59 +0000 (13:10 +0100)]
Merge branch 'MDL-66463-master' of git://github.com/ferranrecio/moodle
Ferran Recio [Wed, 5 Feb 2020 09:41:00 +0000 (10:41 +0100)]
MDL-66463 theme_boost: IE and Edge go to top link compatibility
Eloy Lafuente (stronk7) [Wed, 5 Feb 2020 08:32:32 +0000 (09:32 +0100)]
Merge branch 'MDL-46542' of https://github.com/timhunt/moodle
Andrew Nicols [Wed, 5 Feb 2020 05:48:29 +0000 (13:48 +0800)]
Merge branch 'MDL-49103-master' of git://github.com/sarjona/moodle
Andrew Nicols [Wed, 5 Feb 2020 05:45:34 +0000 (13:45 +0800)]
Merge branch 'MDL-58584-master' of git://github.com/rezaies/moodle
Eloy Lafuente (stronk7) [Tue, 4 Feb 2020 21:44:24 +0000 (22:44 +0100)]
Merge branch 'MDL-67842' of https://github.com/timhunt/moodle