Jun Pataleta
326527c25b
Merge branch 'MDL-67262-master-2' of git://github.com/snake/moodle
2020-02-24 15:56:04 +08:00
Jake Dallimore
b3fe33ac75
MDL-67262 core_course: integration review changes
2020-02-24 13:13:49 +08:00
Adrian Greeve
ebdbe8736e
MDL-67262 core_course: Unit and behat tests for recommendations.
2020-02-24 11:00:44 +08:00
Adrian Greeve
cd09777dbd
MDL-67262 core_course: Added the ability to recommend activities.
...
This allows an adminsitrator or a user with
'moodle/course:recommendactivity' to recommend activities in the
activity chooser.
2020-02-24 10:59:55 +08:00
Mikhail Golenkov
e63040d02b
MDL-67980 tasks: Sort ad-hoc tasks by nextruntime.
2020-02-24 09:30:09 +11:00
Adrian Hutchinson
9c66d72779
MDL-67988 mod_lti: remove padding from JWS base64url encoding
2020-02-21 08:42:41 -08:00
Pau Ferrer Ocaña
c6d2e5c5ab
MDL-67728 behat: Increase app start timeout
2020-02-21 12:45:05 +01:00
Pau Ferrer Ocaña
ab892ccb7a
MDL-67728 behat: Improve behat app selectors
2020-02-21 12:45:05 +01:00
cescobedo
5d81efd1f7
MDL-67131 core_h5p: Allow use webservice/pluginfile|tokenpluginfile url
...
With this fix the player accepts webservice/pluginfile.php, pluginfile.php
and tokenpluginfile.php URLs to find the h5p files.
Also, we allow to build fileurl with the proper endpoint if
the URL is webservice/pluginfile, tokenpluginfile.php or pluginfile.php
as Mobile App needs.
2020-02-21 09:46:23 +01:00
Sara Arjona
92ad6bd901
MDL-67921 core_h5p: re-implement framework->getOption
...
The implementation done for getOption was not correct because it
was only taking into account the displayoptions for download and
embed.
Besides, setOption implementation has been added.
2020-02-21 09:29:07 +01:00
Amaia Anabitarte
f531a30252
MDL-67920 core_h5p: Move upload button into form and fix title
...
Minor bugs in Site administration > H5P > Manage H5P content types admin page'
2020-02-21 08:59:27 +01:00
Luca Bösch
8398273dfd
MDL-64686 theme: align course search form for small screens sizes.
2020-02-21 06:38:08 +01:00
Jun Pataleta
37b2ee3f64
weekly release 3.9dev
2020-02-21 11:02:08 +08:00
Jun Pataleta
dd8144ebff
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
2020-02-21 11:01:17 +08:00
Eloy Lafuente (stronk7)
a1a5f87093
Merge branch 'MDL-67727-master' of git://github.com/crazyserver/moodle
2020-02-20 16:12:23 +01:00
Jun Pataleta
5a4c63aa4f
Merge branch 'MDL-67585-master-4' of git://github.com/snake/moodle
2020-02-20 11:58:02 +08:00
Adrian Greeve
a7b2378d72
MDL-67585 core_course: Added legacyitem to exporter.
...
Legacy items have no id and so can not be favourited nor
recommended. We needed a way to easily determine whether to show
these features in the templates.
2020-02-20 11:42:24 +08:00
Adrian Greeve
54561c885e
MDL-67585 core_course: Removing functions introduced this release.
...
For the initial rewrite of the activity chooser we had some
temporary functions to make everything work. These have been replaced
with different functions and so these functions are now being removed.
2020-02-20 11:42:23 +08:00
Adrian Greeve
618d310663
MDL-67585 core_course: Update to provider to add favourites info.
...
This adds information to the privacy report about the user being
able to favourite activities in the activity chooser.
2020-02-20 11:42:23 +08:00
Adrian Greeve
5c78541f80
MDL-67585 core_course: Service factory for course content items.
2020-02-20 11:42:23 +08:00
Jake Dallimore
806e736a7c
MDL-67585 core_course: use new content item service to load the chooser
2020-02-20 11:42:23 +08:00
Jake Dallimore
85b4eec5b7
MDL-67585 core_course: new web service to return course content items
2020-02-20 11:42:23 +08:00
Jake Dallimore
a826857844
MDL-67585 core_course: added web services for content item favourites
...
Two new services:
add_content_item_to_user_favourites
remove_content_item_from_user_favourites
2020-02-20 11:42:23 +08:00
Jake Dallimore
f09e9b887e
MDL-67585 core_course: add favouriting to the content item service class
2020-02-20 11:42:22 +08:00
Jake Dallimore
57dfcf951d
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.
2020-02-20 11:42:22 +08:00
Jake Dallimore
520add19d6
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.
2020-02-20 11:42:21 +08:00
Jake Dallimore
39b9e293e7
MDL-67585 core_course: only accept content items from mods and submods
...
This matches the prior behaviour in core.
2020-02-20 09:28:57 +08:00
Jake Dallimore
8fc7d83f38
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.
2020-02-20 09:28:57 +08:00
Jake Dallimore
38a9d717a9
MDL-67585 format_singleactivity: fix hassubtype to use the service data
...
TODO: really need to properly work out subtypes lower down in the repo.
2020-02-20 09:28:57 +08:00
Jake Dallimore
12f73788b4
MDL-67585 core_course: deprecate get_module_metadata() from course/lib
2020-02-20 09:28:57 +08:00
Jake Dallimore
2f040002ee
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.
2020-02-20 09:28:57 +08:00
Jake Dallimore
dd494a41a4
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.
2020-02-20 09:28:57 +08:00
Jake Dallimore
8210186372
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.
2020-02-20 09:28:57 +08:00
Jake Dallimore
eec2d09f84
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.
2020-02-20 09:28:57 +08:00
Jake Dallimore
7c7ae1bd6f
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.
2020-02-20 09:28:57 +08:00
Jake Dallimore
92715acd0c
MDL-67585 core: add course content item cache
...
To be indexed by userid_courseid.
2020-02-20 09:28:57 +08:00
Jake Dallimore
e843336ee6
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.
2020-02-20 09:28:57 +08:00
Jake Dallimore
94420851a5
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.
2020-02-20 09:28:57 +08:00
Jake Dallimore
dd8048e350
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.
2020-02-20 09:28:57 +08:00
Eloy Lafuente (stronk7)
a21ba663fd
Merge branch 'MDL-67899-master' of git://github.com/rezaies/moodle
2020-02-20 00:41:19 +01:00
Luke Tucker
785271c6d9
MDL-50455: tool_capability: Use static cache when loading context data
2020-02-20 00:27:33 +01:00
Eloy Lafuente (stronk7)
287c044f9c
Merge branch 'MDL-67942-master' of https://github.com/HuongNV13/moodle
2020-02-19 19:17:09 +01:00
Eloy Lafuente (stronk7)
2b97ab8adb
Merge branch 'MDL-67947' of https://github.com/timhunt/moodle
2020-02-19 17:48:14 +01:00
Tim Hunt
887daf932c
MDL-67947 questions: questions_in_use should ask all components
...
Previously it was only checking mods.
2020-02-19 11:55:04 +00:00
Dani Palou
956232db1d
MDL-67749 ws: Set private token when reset or manual create token
2020-02-19 12:03:48 +01:00
Shamim Rezaie
768c318ad6
MDL-67969 lib: Fix duplicate blockinstanceid for fake blocks
2020-02-19 21:20:01 +11:00
Huong Nguyen
fbad7a5170
MDL-67942 Quiz: Quiz attempt report delete_selected_attempts issue
2020-02-19 15:34:34 +07:00
Jun Pataleta
56a73a3f1e
Merge branch 'MDL-67321-latest' of https://github.com/Chocolate-lightning/moodle
2020-02-19 14:44:13 +08:00
Mathew May
c58c23d6c6
MDL-67321 core_course: Add support for tabbing activities in the chooser
2020-02-19 13:28:54 +08:00
Eloy Lafuente (stronk7)
751189a83a
Merge branch 'MDL-67471_master' of https://github.com/t-schroeder/moodle
2020-02-18 23:54:35 +01:00