5113 Commits

Author SHA1 Message Date
Andrew Nicols
18b947671b Merge branch 'MDL-63969-master-4' of git://github.com/mihailges/moodle 2018-11-19 12:27:37 +08:00
Mihail Geshoski
329f1f23ff MDL-63969 core_course: Store favourite courses in the course context
The course favourites were previously set in the system context which
is not right as they should be stored in the course context.
2018-11-16 12:20:17 +08:00
Mihail Geshoski
214696b04f MDL-63969 core_course: Update course privacy provider unit tests 2018-11-16 12:19:46 +08:00
Mihail Geshoski
4f8c9232f1 MDL-63969 core_course: Include core_favourites subsystem in provider 2018-11-16 12:18:58 +08:00
Eloy Lafuente (stronk7)
d27e49448f Merge branch 'MDL-53566-master' of git://github.com/andrewnicols/moodle 2018-11-13 23:55:38 +01:00
Andrew Nicols
3a8cf5e67d MDL-53566 core: Add UI for context locking 2018-11-13 21:17:40 +08:00
Andrew Nicols
0616f045c3 MDL-53566 core: Add support for context locking
This chagne adds support for a new feature known as Context Locking.
This allows a context to be locked, thereby removing all write
capabilities for all users (including admin) for that context, and all
child contexts.
2018-11-13 21:17:40 +08:00
Damyon Wiese
160e77f9d0 MDL-63716 course: less user_accesstime_log() calls
We should only call this function when a user actually views a course. It is not called
automatically when a course context is validated from a webservice. It is called directly
from the core_course_view_course webservice.
2018-11-12 16:11:15 +08:00
Bas Brands
78c06a660b MDL-63830 block_myoverview: star icon updates
Change the star icon from being in a button and allow it to be
inline using spans instead of divs.
Add the option to passes css classed to the template.
2018-11-07 09:48:00 +01:00
Víctor Déniz Falcón
4f6680a1e9 MDL-63062 block_recentlyaccessedcourses: add starred icon 2018-11-05 23:51:49 +00:00
Victor Deniz
98a52c80bb MDL-63062 block_recentlyaccessedcourses: add web service 2018-11-05 23:46:43 +00:00
Andrew Nicols
f3d077d0a7 Merge branch 'MDL-63457-master' of git://github.com/peterRd/moodle 2018-11-01 15:03:34 +08:00
Andrew Nicols
2badbd52a0 Merge branch 'MDL-63064-master' of git://github.com/lameze/moodle 2018-11-01 09:16:39 +08:00
Bas Brands
f6c6f215be MDL-63064 block_starredcourses: move favouriteicon template 2018-10-31 10:44:20 -04:00
lameze
07fdb5a0a3 MDL-63064 block_starredcourses: change events to use pubsub 2018-10-31 10:44:08 -04:00
Eloy Lafuente (stronk7)
f3507f5982 Merge branch 'MDL-61197-master' of git://github.com/jleyva/moodle 2018-10-31 00:22:30 +01:00
Juan Leyva
716c103d49 MDL-63522 course: Restore config and static cache 2018-10-30 17:35:46 +01:00
Juan Leyva
b8a3567407 MDL-61197 core_group: Refactor get_course_user_groups to get all groups
This is a refactor of the function to be able to get all the user
course groups in just one call
2018-10-30 10:22:58 +01:00
Juan Leyva
1de51367f7 MDL-63522 course: Return completion info in get_course_content WS 2018-10-29 11:11:38 +01:00
Juan Leyva
1206a4878c MDL-63522 course: Return more fields in get_course_content WS
We need those fields on the mobile app to be able to render the course view properly.
2018-10-29 11:10:51 +01:00
Peter
7dcb274c9e MDL-63457 block_myoverview: Update getters for enrolled courses
* Update the enrol courses getter to accept an 'exclude course' id array
* Use the db query to filter hidden courses
2018-10-29 08:36:59 +08:00
Peter
e6f03948d7 MDL-63457 block_myoverview: Hide courses from individual overview blocks
* add new preferences for hidden courses
* Modified course filter to use the user preference
* Behat test
* Regex update
* Toggle hide/show
* Update enrolled_course getter to pass hidden value
* provider
* unit tests
2018-10-29 08:32:05 +08:00
Eloy Lafuente (stronk7)
51da48f193 Merge branch 'MDL-63765-master' of git://github.com/damyon/moodle 2018-10-26 10:21:43 +02:00
Damyon Wiese
cfd390ee94 MDL-63765 behat: Fix behat tests opening a menu
If javascript is disabled, we don't need to open the menus at all. If it is enabled
we should use the custom step where possible.

In some tests (user profile) we have to use link_or_button because
the element that opens the menu will be a link or a button in different themes.
2018-10-26 16:14:41 +08:00
Andrew Nicols
2263bbdfce Merge branch 'MDL-63058-master' of git://github.com/bmbrands/moodle 2018-10-25 11:49:45 +08:00
Michael Hawkins
01723da4eb MDL-63668 core_course: Add support for removal of context users
This issue is a part of the MDL-62560 Epic.
2018-10-23 10:06:26 +08:00
Bas Brands
3cfff88516 MDL-63058 block_myoverview: starring and storing preferences 2018-10-20 17:53:35 +02:00
Eloy Lafuente (stronk7)
e38e2cde4e Merge branch 'MDL-60145-master' of https://github.com/snake/moodle 2018-10-18 18:56:34 +02:00
Damyon Wiese
54697072a6 Merge branch 'MDL-62960-master' of git://github.com/rezaies/moodle 2018-10-16 11:43:24 +08:00
Shamim Rezaie
586886b346 MDL-62960 calendar: Implementing course events validity check callback 2018-10-16 12:58:25 +11:00
Eloy Lafuente (stronk7)
1a51deaf69 Merge branch 'MDL-63583-master' of git://github.com/jleyva/moodle 2018-10-16 00:29:02 +02:00
Jun Pataleta
6bcf1e76c4 Merge branch 'MDL-63337-master' of git://github.com/bmbrands/moodle 2018-10-15 21:03:16 +08:00
Bas Brands
6481a21fc3 MDL-63337 block_myoverview: enrol_get_my_courses sort ul.timeaccess 2018-10-15 08:42:08 +02:00
Andrew Nicols
489dd14569 Merge branch 'MDL-63542-master' of git://github.com/jleyva/moodle 2018-10-15 10:57:38 +08:00
David Monllao
a169745489 MDL-60710 course: Fix incorrect reference to role 2018-10-10 10:57:47 +02:00
Jake Dallimore
de60737dd7 MDL-60145 course: fix bug with group restictions button during mod edit
If a mod doesn't support groups, then we remove the grouping element,
and now also the 'add group/group restriction' helper button too.
2018-10-10 08:40:07 +08:00
Eloy Lafuente (stronk7)
609c73be26 Merge branch 'MDL-29895' of https://github.com/enovation/moodle 2018-10-10 00:29:16 +02:00
David Monllao
bbb2141084 Merge branch 'MDL-60710-master' of git://github.com/abias/moodle 2018-10-09 09:00:42 +02:00
Alexander Bias
da4d17313d MDL-60710 course: Overhaul of Behat tests 2018-10-08 22:49:36 +02:00
Juan Leyva
bd4a6a7060 MDL-63583 course: Include course/lib.php always
core_course_get_courses_by_field WS must include always course/lib.php to not depend on functions including it.
2018-10-08 16:32:15 +02:00
Juan Leyva
10b88bf2c7 MDL-63542 core_course: Support stealth activities in WS 2018-10-05 14:51:01 +02:00
David Knuplesch
a487a3edf2 MDL-60710 course: setting to show/hide duplicate coursecontact 2018-10-01 13:39:17 +02:00
David Herney
97fd2fb575 MDL-63323 course: Fixed wrong classes key in activity_navigation class
Replaced "classes" by "class" attribute, when the prev and next links are builded into the activity navigation.
2018-09-27 18:40:46 -05:00
Andrew Nicols
20f9b981f9 Merge branch 'dashboard-split-overview-block' of https://github.com/ryanwyllie/moodle 2018-09-27 14:08:55 +08:00
Ryan Wyllie
2c1d19fde6 MDL-63044 course: add get_enrolled_courses_by_timeline_classification 2018-09-27 13:10:44 +08:00
David Monllao
0e79528704 Merge branch 'MDL-61161-master' of https://github.com/mackensen/moodle 2018-09-26 10:23:39 +02:00
Charles Fulton
3b31d8c92c MDL-61161 course: grace period for classifying in progress courses 2018-09-25 14:11:32 -04:00
Daniel Neis Araujo
28af88f364 MDL-62334 admin: add a new course link on admin/search 2018-09-25 14:31:50 -03:00
Jonathan Champ
d2a98f89bd MDL-54035 course: Test reset roles in reset_course_userdata()
Previously, reset_course_userdata() was deleting the role_capabilities
directly, but has_capability() checks the local capabilities cache
which was still returning the previous value.
2018-09-21 09:17:43 -04:00
Jonathan Champ
b2f349a433 MDL-54035 accesslib: separate role definition cache clear
Thanks to MDL-49398, we can separate the combined user session and role
definition cache clearing function into two separate functions. At the
same time, we want to identify and remove mark_dirty() calls that were
added for role definition changes but were incorrectly left behind.

Change highlights:
 - Remove unnecessary mark_dirty() calls performed after
   assign_capability(), unassign_capability(), delete_role(),
   deleted contexts, brand new contexts
 - Move role definition cache clear from the user-centric
   accesslib_clear_all_caches() to the newly created,
   role-dedicated accesslib_reset_role_cache()
2018-09-21 09:17:42 -04:00