Jun Pataleta [Wed, 14 Nov 2018 06:23:06 +0000 (14:23 +0800)]
Merge branch 'MDL-63926-master' of git://github.com/mickhawkins/moodle
Damyon Wiese [Wed, 14 Nov 2018 04:11:12 +0000 (12:11 +0800)]
Merge branch 'MDL-63868-master' of git://github.com/abgreeve/moodle
Michael Hawkins [Mon, 12 Nov 2018 06:33:09 +0000 (14:33 +0800)]
MDL-63926 block_recentlyaccesseditems: Add privacy provider unit tests
Michael Hawkins [Mon, 12 Nov 2018 04:19:51 +0000 (12:19 +0800)]
MDL-63926 block_recentlyaccesseditems: Support user removal by context
Also fixed the provider interface type. This is self contained, so is
not a subsystem provider. It was also already set up as a plugin
provider, just not defined as such.
Damyon Wiese [Wed, 14 Nov 2018 03:14:18 +0000 (11:14 +0800)]
Merge branch 'MDL-63901-master' of git://github.com/sarjona/moodle
Michael Hawkins [Mon, 12 Nov 2018 04:24:52 +0000 (12:24 +0800)]
MDL-63926 block_recentlyaccesseditems: Improved get_contexts_for_userid
Updated the provider::get_contexts_for_userid method, to prevent false
positives. Previously, the user context would always be returned, now
the method checks data exists for the block first.
Andrew Nicols [Wed, 14 Nov 2018 01:54:40 +0000 (09:54 +0800)]
Merge branch 'MDL-63923-master' of git://github.com/bmbrands/moodle
Eloy Lafuente (stronk7) [Wed, 14 Nov 2018 00:04:46 +0000 (01:04 +0100)]
MDL-53566 core: add back upgrade code removed @
0616f04 by mistake
Eloy Lafuente (stronk7) [Tue, 13 Nov 2018 22:55:38 +0000 (23:55 +0100)]
Merge branch 'MDL-53566-master' of git://github.com/andrewnicols/moodle
David Monllao [Tue, 13 Nov 2018 15:07:14 +0000 (16:07 +0100)]
Merge branch 'MDL-63882-master' of git://github.com/damyon/moodle
Andrew Nicols [Tue, 13 Nov 2018 13:15:10 +0000 (21:15 +0800)]
MDL-53566 tool_monitor: Fix context preload
Andrew Nicols [Tue, 13 Nov 2018 01:14:34 +0000 (09:14 +0800)]
MDL-53566 core: Allow admins more control over locking
This change allows sites to configure locking such that it does not
apply to administrators at all.
Andrew Nicols [Tue, 13 Nov 2018 00:06:25 +0000 (08:06 +0800)]
MDL-53566 core: Move managecontextlocking to module
This will allow the capability to be applied at a range of contexts and
not just the system, making the system much more definable to a range of
users.
Andrew Nicols [Tue, 13 Nov 2018 00:03:49 +0000 (08:03 +0800)]
MDL-53566 core: Remove unused ancestorlocked field
This was originalyl intended as a performance improvement, but the
parent is already stored, and once calculated the value of locked is
already returned.
Andrew Nicols [Fri, 2 Nov 2018 07:31:51 +0000 (15:31 +0800)]
MDL-53566 core: Add behat test for context loking
Andrew Nicols [Thu, 7 Jun 2018 06:35:45 +0000 (14:35 +0800)]
MDL-53566 mod_forum: Correct captype for writeable capabilities
Andrew Nicols [Fri, 8 Jun 2018 03:37:43 +0000 (11:37 +0800)]
MDL-53566 core: Add UI for context locking
Andrew Nicols [Thu, 7 Jun 2018 06:35:26 +0000 (14:35 +0800)]
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.
David Monllao [Tue, 13 Nov 2018 12:11:07 +0000 (13:11 +0100)]
on-demand release 3.6dev+
David Monllao [Tue, 13 Nov 2018 12:11:05 +0000 (13:11 +0100)]
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
David Monllao [Tue, 13 Nov 2018 10:13:37 +0000 (11:13 +0100)]
Merge branch 'MDL-63729-master' of git://github.com/dpalou/moodle
dpalou [Tue, 13 Nov 2018 09:40:27 +0000 (10:40 +0100)]
MDL-63729 badges: Fix course badge test
Sara Arjona [Fri, 9 Nov 2018 11:15:36 +0000 (12:15 +0100)]
MDL-63901 core_message: Avoid duplicate last message
Adrian Greeve [Tue, 13 Nov 2018 07:28:03 +0000 (15:28 +0800)]
MDL-63868 core_calendar: Clicking link leads to events.
The mini calendar did not link to the daily events properly.
Damyon Wiese [Tue, 13 Nov 2018 03:57:12 +0000 (11:57 +0800)]
Merge branch 'MDL-63927' of git://github.com/stronk7/moodle
Andrew Nicols [Tue, 13 Nov 2018 03:20:54 +0000 (11:20 +0800)]
Merge branch 'MDL-63716-master' of git://github.com/damyon/moodle
Damyon Wiese [Tue, 6 Nov 2018 06:06:49 +0000 (14:06 +0800)]
MDL-63882 core_message: Use validate_parameters
external_api::validate_parameters() sets defaults, and does cleaning and sanitisation of the
inputs. It returns the cleaned params. We can't be re-using the arguments to this function
instead of the results, because they have not been cleaned.
Jun Pataleta [Tue, 13 Nov 2018 01:35:23 +0000 (09:35 +0800)]
Merge branch 'MDL-63834_master' of git://github.com/markn86/moodle
Mark Nelson [Tue, 13 Nov 2018 00:37:09 +0000 (08:37 +0800)]
MDL-63834 core_message: validate conversation type before creating
AMOS bot [Tue, 13 Nov 2018 00:07:31 +0000 (00:07 +0000)]
Automatically generated installer lang files
Andrew Nicols [Mon, 12 Nov 2018 23:47:45 +0000 (07:47 +0800)]
Merge branch 'master_MDL-63953' of https://github.com/danmarsden/moodle
David Monllao [Mon, 12 Nov 2018 16:44:18 +0000 (17:44 +0100)]
Merge branch 'MDL-63729-master' of git://github.com/dpalou/moodle
David Monllao [Mon, 12 Nov 2018 15:26:14 +0000 (16:26 +0100)]
MDL-63724 messaging: Prefix field with the table alias
David Monllao [Mon, 12 Nov 2018 12:27:08 +0000 (13:27 +0100)]
Merge branch 'MDL-63855-master' of git://github.com/bmbrands/moodle
Eloy Lafuente (stronk7) [Mon, 12 Nov 2018 11:07:45 +0000 (12:07 +0100)]
Merge branch 'MDL-63907-master' of git://github.com/cescobedo/moodle
Eloy Lafuente (stronk7) [Mon, 12 Nov 2018 11:02:51 +0000 (12:02 +0100)]
Merge branch 'MDL-63929-master' of git://github.com/jleyva/moodle
David Monllao [Mon, 12 Nov 2018 10:57:42 +0000 (11:57 +0100)]
Merge branch 'MDL-63925-master' of git://github.com/mickhawkins/moodle
David Monllao [Mon, 12 Nov 2018 09:42:36 +0000 (10:42 +0100)]
Merge branch 'MDL-63940-master-recaptchaurl' of git://github.com/mudrd8mz/moodle
Sara Arjona [Thu, 8 Nov 2018 09:30:42 +0000 (10:30 +0100)]
MDL-63901 core_message: Fix error when the conversation does not exist
Create a conversation instead of throwing an exception to get the
behaviour working as it was before.
The string lang 'conversationdoesntexist' can be removed because
it was added in MDL-63466 and it's not used anywhere more.
David Monllao [Mon, 12 Nov 2018 09:09:33 +0000 (10:09 +0100)]
Merge branch 'MDL-63823-master' of git://github.com/lameze/moodle
Bas Brands [Mon, 12 Nov 2018 09:03:34 +0000 (10:03 +0100)]
MDL-63855 core_my: no vertical scroll card blocks
card desks using class .dashboard-card-deck.one-row should not
show a vertical scrollbar
David Monllao [Mon, 12 Nov 2018 09:02:17 +0000 (10:02 +0100)]
Merge branch 'MDL-63968-master' of git://github.com/andrewnicols/moodle
Damyon Wiese [Mon, 12 Nov 2018 08:36:57 +0000 (16:36 +0800)]
Merge branch 'MDL-63945_master' of git://github.com/markn86/moodle
Damyon Wiese [Fri, 9 Nov 2018 05:09:54 +0000 (13:09 +0800)]
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.
Bas Brands [Thu, 8 Nov 2018 09:24:50 +0000 (10:24 +0100)]
MDL-63923: core_my: card sizes clean and boost
Cards should have a minimum size of 250px wide
Mark Nelson [Mon, 12 Nov 2018 07:29:41 +0000 (15:29 +0800)]
MDL-63945 core_message: fixed discrepancy between helpers
Damyon Wiese [Mon, 12 Nov 2018 06:16:31 +0000 (14:16 +0800)]
Merge branch 'MDL-63724-master-3' of https://github.com/snake/moodle
Damyon Wiese [Mon, 12 Nov 2018 06:01:01 +0000 (14:01 +0800)]
Merge branch 'MDL-63909_master' of git://github.com/markn86/moodle
Damyon Wiese [Mon, 12 Nov 2018 05:37:46 +0000 (13:37 +0800)]
MDL-63864 message: Contact request fix
The contactrequestid was removed from the api, so now we search by both
the userid from and the userid to.
Andrew Nicols [Mon, 12 Nov 2018 02:32:32 +0000 (10:32 +0800)]
Merge branch 'MDL-63763-master' of https://github.com/nwp90/moodle
Andrew Nicols [Mon, 12 Nov 2018 00:36:23 +0000 (08:36 +0800)]
MDL-63968 message: Correct use of get_in_or_equal
Jake Dallimore [Mon, 5 Nov 2018 06:28:00 +0000 (14:28 +0800)]
MDL-63724 core_message: add send_messages_to_conversation() web service
Jake Dallimore [Mon, 12 Nov 2018 01:11:48 +0000 (09:11 +0800)]
MDL-63724 core_message: move message redirection into helper function
Jake Dallimore [Mon, 12 Nov 2018 02:05:17 +0000 (10:05 +0800)]
MDL-63724 core_message: add send_message_to_conversation() to api
Jake Dallimore [Thu, 8 Nov 2018 14:26:36 +0000 (22:26 +0800)]
MDL-63724 core_message: buffering support for conv messages in manager
We need to be able to delay calling all member processors with localised
event data if a DB transaction is taking place. This code treats a
conversation message as a single item of work to be buffered, and stores
all localised eventdata, and processorlists for later reference. When
processing the buffer, we pass off all localised eventdata items to
their respective member's processors, before firing a single event.
Jake Dallimore [Thu, 8 Nov 2018 10:07:00 +0000 (18:07 +0800)]
MDL-63724 core_message: add conversation support to message_send()
Added a test confirming that processors are called for each member
and that a single event is fired.
Jake Dallimore [Thu, 8 Nov 2018 05:31:36 +0000 (13:31 +0800)]
MDL-63724 core_message: add send_message_to_conversation() to manager
Jake Dallimore [Thu, 8 Nov 2018 06:53:25 +0000 (14:53 +0800)]
MDL-63724 core_message: add new group_message_sent event
Jake Dallimore [Thu, 8 Nov 2018 03:23:33 +0000 (11:23 +0800)]
MDL-63724 core_message: split up event and processor code in the manager
This was couple before, but we're going to want this to be separate for
group conversation messages, where we'll call many users' processors,
but only create a single 'group_message_sent' event.
Jake Dallimore [Mon, 5 Nov 2018 08:08:48 +0000 (16:08 +0800)]
MDL-63724 core_message: fix method signature for can_contact_user()
This method required objects, but only used their ids, so has been
changed to require only ids.
Jake Dallimore [Thu, 1 Nov 2018 02:26:28 +0000 (10:26 +0800)]
MDL-63724 core_message: add can_send_message_to_conversation() to api
Damyon Wiese [Mon, 12 Nov 2018 02:02:25 +0000 (10:02 +0800)]
Merge branch 'MDL-63864_master' of git://github.com/markn86/moodle
Andrew Nicols [Mon, 12 Nov 2018 01:54:59 +0000 (09:54 +0800)]
Merge branch 'MDL-63838-master' of git://github.com/vmdef/moodle
Simey Lameze [Mon, 12 Nov 2018 01:53:07 +0000 (09:53 +0800)]
MDL-63823 tool_lpimportcsv: supress progress bar debugging
Andrew Nicols [Sun, 11 Nov 2018 23:53:09 +0000 (07:53 +0800)]
Merge branch 'MDL-63850_master' of git://github.com/markn86/moodle
Dan Marsden [Sun, 11 Nov 2018 20:19:37 +0000 (09:19 +1300)]
MDL-63953 mod_scorm: Use correct value for first attempt.
Eloy Lafuente (stronk7) [Sat, 10 Nov 2018 11:53:31 +0000 (12:53 +0100)]
on-demand release 3.6dev+
Eloy Lafuente (stronk7) [Sat, 10 Nov 2018 11:53:29 +0000 (12:53 +0100)]
NOBUG: Fixed SVG browser compatibility
Eloy Lafuente (stronk7) [Sat, 10 Nov 2018 09:27:35 +0000 (10:27 +0100)]
Merge branch 'MDL-63960-master' of git://github.com/andrewnicols/moodle
Andrew Nicols [Fri, 9 Nov 2018 23:27:58 +0000 (07:27 +0800)]
MDL-63960 dataprivacy: Do not perform strict type checks for id
When inherit is specified in the data registry it is stored as a
string and we cannot perform a strict comparison with it.
We should still compare strict comparison checks against null, or false,
but not for the NOTSET (0) or INHERIT values (-1).
Andrew Nicols [Sat, 10 Nov 2018 02:59:25 +0000 (10:59 +0800)]
Merge branch 'MDL-63919' of git://github.com/stronk7/moodle
Eloy Lafuente (stronk7) [Sat, 10 Nov 2018 02:49:14 +0000 (03:49 +0100)]
Merge branch 'MDL-63596-master' of git://github.com/andrewnicols/moodle
Andrew Nicols [Sat, 10 Nov 2018 02:46:38 +0000 (10:46 +0800)]
MDL-63596 backup: Add missing include
Eloy Lafuente (stronk7) [Sat, 10 Nov 2018 01:22:12 +0000 (02:22 +0100)]
MDL-63919 tool_dataprivacy: admin & notify fixes
This includes the following:
1) Replace $ADMIN->id by get_admin()->id. The former doesn't exist.
2) Only change the notify parameter when it has not been specified
at creation time (null). If specified, observe it.
3) Set the current user in tests to admin, able to create those
requests.
Eloy Lafuente (stronk7) [Fri, 9 Nov 2018 18:32:23 +0000 (19:32 +0100)]
Merge branch 'MDL-63596-master' of git://github.com/andrewnicols/moodle
dpalou [Fri, 9 Nov 2018 07:53:13 +0000 (08:53 +0100)]
MDL-63729 badges: Return new DB tables data in WS
dpalou [Thu, 8 Nov 2018 08:24:48 +0000 (09:24 +0100)]
MDL-63729 badges: Return new fields in badge table in WS
dpalou [Wed, 7 Nov 2018 15:45:28 +0000 (16:45 +0100)]
MDL-63729 badges: Create an exporter for badge info
Andrew Nicols [Fri, 9 Nov 2018 10:39:42 +0000 (18:39 +0800)]
MDL-63919 tool_dataprivacy: Notify by default
Eloy Lafuente (stronk7) [Fri, 9 Nov 2018 10:19:02 +0000 (11:19 +0100)]
Merge branch 'MDL-63884-master-fix' of https://github.com/snake/moodle
Jake Dallimore [Fri, 9 Nov 2018 09:27:55 +0000 (17:27 +0800)]
MDL-63884 core_message: fix for get_conversations legacy adapter code
This code also tries to adapt other conversation types, but it should
only support individual conversations, where we know members exist.
Jake Dallimore [Fri, 9 Nov 2018 09:27:04 +0000 (17:27 +0800)]
MDL-63884 core_message: fix for groups without images
If we don't have an image for the group, leave this extra field empty.
Eloy Lafuente (stronk7) [Fri, 9 Nov 2018 09:59:04 +0000 (10:59 +0100)]
Merge branch 'MDL-62564-master-fix' of git://github.com/andrewnicols/moodle
Damyon Wiese [Fri, 9 Nov 2018 07:22:17 +0000 (15:22 +0800)]
MDL-63596 backup: Deal with controller types
For privacy requests, deal with all 3 controller types.
Andrew Nicols [Fri, 9 Nov 2018 09:34:46 +0000 (17:34 +0800)]
MDL-62564 tool_dataprivacy: Do not delete deleted user
This also ensures that we do not call delete_user on an already deleted
user.
Juan Leyva [Thu, 8 Nov 2018 14:02:12 +0000 (15:02 +0100)]
MDL-63929 user: Support unsetting prefs in update_user_preferences WS
Mihail Geshoski [Fri, 9 Nov 2018 08:09:22 +0000 (16:09 +0800)]
MDL-63596 core_backup: Add support for removal of context users
This issue is part of the MDL-62560 Epic.
Jun Pataleta [Fri, 9 Nov 2018 07:31:28 +0000 (15:31 +0800)]
Merge branch 'MDL-63867-master' of git://github.com/mickhawkins/moodle
Michael Hawkins [Wed, 7 Nov 2018 14:19:49 +0000 (22:19 +0800)]
MDL-63867 tool_dataprivacy: Add site purpose checks to tasks
If a site purpose is not defined, requests cannot be processed.
Michael Hawkins [Wed, 7 Nov 2018 05:53:52 +0000 (13:53 +0800)]
MDL-63867 tool_dataprivacy: Fix context expired/unprotected user check
It now checks the system context has been defined, since that is
required for data privacy to be set up correctly, and the check
to be valid. This also fixes an error being thrown when checking
pending delete requests in cron.
Jun Pataleta [Fri, 9 Nov 2018 05:41:44 +0000 (13:41 +0800)]
Merge branch 'MDL-63946-master' of git://github.com/andrewnicols/moodle
Mark Nelson [Fri, 9 Nov 2018 05:20:37 +0000 (13:20 +0800)]
MDL-63864 core_message: added unit tests
Mark Nelson [Fri, 9 Nov 2018 04:18:41 +0000 (12:18 +0800)]
MDL-63864 core_message: can now specify limit for contact requests
Andrew Nicols [Fri, 9 Nov 2018 05:25:33 +0000 (13:25 +0800)]
MDL-63946 plagirism: Filename typo fix
Mark Nelson [Fri, 9 Nov 2018 04:12:17 +0000 (12:12 +0800)]
MDL-63864 core_message: get_contact_requests now uses helper
Jun Pataleta [Fri, 9 Nov 2018 04:07:05 +0000 (12:07 +0800)]
Merge branch 'MDL-63830-master' of git://github.com/bmbrands/moodle
Jun Pataleta [Fri, 9 Nov 2018 03:57:38 +0000 (11:57 +0800)]
Merge branch 'MDL-63924-master' of git://github.com/andrewnicols/moodle
Jun Pataleta [Fri, 9 Nov 2018 03:44:02 +0000 (11:44 +0800)]
Merge branch 'MDL-63942-master' of git://github.com/andrewnicols/moodle
Jun Pataleta [Fri, 9 Nov 2018 03:30:28 +0000 (11:30 +0800)]
Merge branch 'MDL-63897-master' of git://github.com/andrewnicols/moodle
Andrew Nicols [Fri, 9 Nov 2018 03:26:21 +0000 (11:26 +0800)]
fixup! MDL-63897 dataprivacy: Kill the preprocess stage