Andrew Nicols
8fd1dfc795
Merge branch 'MDL-68030-master' of https://github.com/Chocolate-lightning/moodle
2020-03-12 12:42:17 +08:00
Mathew May
d2695ab2f3
MDL-68030 core_course: Relocate chooser templates
2020-03-12 12:05:20 +08:00
Mathew May
c515848ce0
MDL-68030 core_course: Update behat
2020-03-12 11:51:45 +08:00
Mathew May
4883aabf0d
MDL-68030 core_course: Tuncate long module names
2020-03-12 11:51:45 +08:00
Mathew May
486abbcb74
MDL-68030 core_course: Set focus onto the help area header
2020-03-12 11:51:45 +08:00
Mathew May
c368657153
MDL-68030 core_course: Properly size elements in the chooser
2020-03-12 11:51:45 +08:00
Eloy Lafuente (stronk7)
0b698cb00b
Merge branch 'MDL-67752-master-userstats' of git://github.com/mudrd8mz/moodle
2020-03-12 00:23:30 +01:00
Eloy Lafuente (stronk7)
a17bdbd5cf
Merge branch 'MDL-68019-master' of git://github.com/peterRd/moodle
2020-03-11 23:47:43 +01:00
Andrew Nicols
ff1a10333d
Merge branch 'MDL-67263-master' of git://github.com/mihailges/moodle
2020-03-05 13:22:40 +08:00
Mihail Geshoski
ae0e9801bd
MDL-67263 course: Add behat tests
2020-03-05 11:57:14 +08:00
Mihail Geshoski
f152b71dd4
MDL-67263 course: Add search functionality in the activity chooser
2020-03-05 11:56:39 +08:00
Andrew Nicols
ba3263332d
Merge branch 'MDL-65298' of https://github.com/Chocolate-lightning/moodle
2020-03-05 10:39:25 +08:00
Mathew May
f3c47c9ca8
MDL-65298 core_course: Remove unused function parameters
2020-03-05 10:36:41 +08:00
Sara Arjona
b71604b058
Merge branch 'MDL-68055-master' of https://github.com/snake/moodle
2020-03-04 08:16:47 +01:00
Jake Dallimore
d86274c64b
MDL-68055 core_course: export content item description as markdown
2020-03-04 11:44:26 +08:00
Peter
b3b2d72c1e
MDL-68019 course: Performance improvement with component favourites
...
Add the ability to get all/select itemtypes within a component
2020-02-28 11:28:15 +08:00
David Mudrák
c268c1bd3f
MDL-67752 course: Improve the average_number_of_participants function
...
The patch adds two new optional parameters that control the function
behaviour. With default values, the function is backwards compatible and
it simply uses the number of enrolment records. The new parameters allow
to include only active enrolments and/or only recently active users.
2020-02-27 13:14:39 +01:00
Jun Pataleta
9585a6fdf7
Merge branch 'MDL-67584-integration-2' of https://github.com/Chocolate-lightning/moodle
2020-02-27 12:36:33 +08:00
Mathew May
6e1a4477d8
MDL-67584 core_course: Activity chooser favouriting frontend
2020-02-27 12:13:35 +08:00
Eloy Lafuente (stronk7)
6304e6a380
Merge branch 'MDL-64686-master' of git://github.com/lucaboesch/moodle
2020-02-26 23:25:23 +01:00
Mathew May
e04b4be619
MDL-67586 core_course: Recommended modules frontend
2020-02-25 14:07:40 +08:00
Eloy Lafuente (stronk7)
30206d545e
MDL-67262 core_course: fix behat looking for non-existing page
2020-02-24 23:15:28 +01:00
Jun Pataleta
c31085bb66
MDL-67262 core_course: Rebuild recommended activities JS module
2020-02-24 16:04:06 +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
Luca Bösch
8398273dfd
MDL-64686 theme: align course search form for small screens sizes.
2020-02-21 06:38:08 +01: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
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
Mathew May
c58c23d6c6
MDL-67321 core_course: Add support for tabbing activities in the chooser
2020-02-19 13:28:54 +08:00