Mark Nelson [Tue, 27 Feb 2018 05:23:53 +0000 (13:23 +0800)]
MDL-36941 core_message: improved performance of helper::get_messages()
Improved the query to use the 'convhash' field as well as adding an index.
Also fixed issue where 'timeread' was hardcoded as 0.
Mark Nelson [Wed, 24 Jan 2018 09:33:24 +0000 (17:33 +0800)]
MDL-36941 core_message: added details to upgrade.txt
Mark Nelson [Tue, 27 Feb 2018 01:39:51 +0000 (09:39 +0800)]
MDL-36941 core: added index to 'message_user_actions' table
Mark Nelson [Mon, 26 Feb 2018 10:44:02 +0000 (18:44 +0800)]
MDL-36941 core_message: deprecated 'api::mark_all_read_for_user'
Mark Nelson [Mon, 26 Feb 2018 07:46:39 +0000 (15:46 +0800)]
MDL-36941 core: removed 'message_working' table
Mark Nelson [Tue, 20 Feb 2018 08:27:57 +0000 (16:27 +0800)]
MDL-36941 message_popup: removed 'message_popup' table
Mark Nelson [Tue, 6 Feb 2018 04:11:48 +0000 (12:11 +0800)]
MDL-36941 core: added 'convhash' field to quickly get conversations
Mark Nelson [Thu, 25 Jan 2018 00:54:10 +0000 (08:54 +0800)]
MDL-36941 core: final deprecation of functions
This was done earlier than the usual deprecation
process since we have changed the table structure.
It would take time to change the logic in these
functions, but as they have been deprecated for
some time it was decided to forego this effort.
Mark Nelson [Mon, 5 Feb 2018 06:55:10 +0000 (14:55 +0800)]
MDL-36941 message_popup: use new WS for marking notifications as read
Also changed the observer to listen for the notification_viewed event,
rather than the message_viewed event.
Mark Nelson [Mon, 5 Feb 2018 06:54:16 +0000 (14:54 +0800)]
MDL-36941 core: added new mark notification as read webservice
Mark Nelson [Fri, 2 Feb 2018 10:07:01 +0000 (18:07 +0800)]
MDL-36941 core: added events for notifications
Mark Nelson [Mon, 26 Feb 2018 11:10:16 +0000 (19:10 +0800)]
MDL-36941 core_message: mark notification/messages takes stdClass
This avoid unnecessary DB calls.
Mark Nelson [Thu, 4 Jan 2018 07:01:37 +0000 (15:01 +0800)]
MDL-36941 core: convert existing api to use new table structure
Also deprecated the following functions -
1. message_move_userfrom_unread2read - It is not necessary
for us to mark a message as read on user deletion.
2. message_get_blocked_users - Horrible logic used to
determine if a user is blocked via reference on some
randomly chosen 'isblocked' variable.
3. message_get_contacts - The same as above. This can be
done in a much nicer way.
4. message_mark_message_read - We want two functions to do
this to avoid confusing messages and notifications.
5. message_can_delete_message - This assumed the variable
$message contained the 'useridto' property, which
was present in the old table structure. We do not want
future usages where a query is done on the new table
and is simply passed as this won't contain this property.
6. message_delete_message - Same as above.
Mark Nelson [Thu, 4 Jan 2018 09:17:55 +0000 (17:17 +0800)]
MDL-36941 core: alter events to use new table structure
Mark Nelson [Thu, 4 Jan 2018 09:17:44 +0000 (17:17 +0800)]
MDL-36941 core_message: removed unit test that will always fail
We are changing how the API behaves so the old tables will never
be populated. This unit test is testing a deprecated function
which we will not be refactoring to use the new table structure.
Mark Nelson [Thu, 21 Dec 2017 05:28:07 +0000 (13:28 +0800)]
MDL-36941 core: added new messaging and notification tables
Eloy Lafuente (stronk7) [Thu, 22 Mar 2018 15:57:05 +0000 (16:57 +0100)]
weekly release 3.5dev
Eloy Lafuente (stronk7) [Thu, 22 Mar 2018 15:57:02 +0000 (16:57 +0100)]
Merge branch 'install_master' of https://git.in.moodle.com/amosbot/moodle-install
Jun Pataleta [Thu, 22 Mar 2018 04:33:24 +0000 (12:33 +0800)]
Merge branch 'MDL-61678' of git://github.com/stronk7/moodle
Jake Dallimore [Thu, 22 Mar 2018 04:05:29 +0000 (12:05 +0800)]
Merge branch 'MDL-58179-master-fix' of https://github.com/andrewnicols/moodle
Andrew Nicols [Wed, 21 Mar 2018 04:11:11 +0000 (12:11 +0800)]
MDL-58179 mod_lesson: Add missing : in labels
Andrew Nicols [Thu, 22 Mar 2018 03:49:09 +0000 (11:49 +0800)]
Merge branch 'MDL-61530-master' of git://github.com/andrewnicols/moodle
Renaat Debleu [Mon, 12 Mar 2018 19:21:36 +0000 (20:21 +0100)]
MDL-61530 mod_glossary: import_entries.feature needs @_file_upload tag
Jun Pataleta [Thu, 22 Mar 2018 03:29:56 +0000 (11:29 +0800)]
Merge branch 'MDL-52989-master' of git://github.com/junpataleta/moodle
Jun Pataleta [Thu, 22 Mar 2018 03:27:24 +0000 (11:27 +0800)]
MDL-52989 mod_lesson: Fix typo in feature description
Jun Pataleta [Thu, 22 Mar 2018 02:52:53 +0000 (10:52 +0800)]
Merge branch 'MDL-61514-master' of git://github.com/rezaies/moodle
Shamim Rezaie [Wed, 21 Mar 2018 22:50:00 +0000 (09:50 +1100)]
MDL-61514 Quiz: Fix restore error
Include mod/quiz/locallib.php to fix the restore error.
Eloy Lafuente (stronk7) [Wed, 21 Mar 2018 18:36:36 +0000 (19:36 +0100)]
Merge branch 'MDL-61658-master-allcountrycodes' of git://github.com/mudrd8mz/moodle
David Mudrák [Thu, 15 Mar 2018 12:17:31 +0000 (13:17 +0100)]
MDL-61658 user: Fix displaying of user's country name
In these cases we want to use the method get_list_of_countries() to
obtain translated names of all potential country codes. The country code
is already there in the database. So it does not matter if the country
is among those whitelisted in $CFG->allcountrycodes - we want to see its
name anyway.
David Mudrák [Wed, 21 Mar 2018 17:04:56 +0000 (18:04 +0100)]
MDL-61658 user: Fix parsing of the agedigitalconsentmap setting
When parsing and validating the value of the Digital age of consent
(agedigitalconsentmap) field, we want to load all country codes. Not
just the ones whitelisted for drop down menus that users can choose
from.
Eloy Lafuente (stronk7) [Wed, 21 Mar 2018 13:55:39 +0000 (14:55 +0100)]
MDL-61410 question: Check we have tags to set to avoid notices
Jake Dallimore [Wed, 21 Mar 2018 02:00:47 +0000 (10:00 +0800)]
Merge branch 'MDL-59434-master' of https://github.com/sammarshallou/moodle
Andrew Nicols [Wed, 21 Mar 2018 01:09:03 +0000 (09:09 +0800)]
Merge branch 'MDL-61519-master' of https://github.com/andrewnicols/moodle
Andrew Nicols [Wed, 21 Mar 2018 00:48:42 +0000 (08:48 +0800)]
MDL-61519 coursecat: Reset the coursecat cache on enrolment
Andrew Nicols [Wed, 21 Mar 2018 00:14:41 +0000 (08:14 +0800)]
Merge branch 'MDL-61519-master' of https://github.com/MartinGauk/moodle
AMOS bot [Wed, 21 Mar 2018 00:05:59 +0000 (00:05 +0000)]
Automatically generated installer lang files
Eloy Lafuente (stronk7) [Tue, 20 Mar 2018 23:24:46 +0000 (00:24 +0100)]
Merge branch 'MDL-61605' of https://github.com/timhunt/moodle
Eloy Lafuente (stronk7) [Tue, 20 Mar 2018 23:21:24 +0000 (00:21 +0100)]
Merge branch 'MDL-61589-master' of git://github.com/rezaies/moodle
Eloy Lafuente (stronk7) [Tue, 20 Mar 2018 22:53:28 +0000 (23:53 +0100)]
Merge branch 'MDL-61410-master' of git://github.com/lameze/moodle
Martin Gauk [Tue, 20 Mar 2018 13:13:08 +0000 (13:13 +0000)]
MDL-61519 coursecat: do not cache get_all_children_ids
sam marshall [Thu, 23 Nov 2017 10:55:07 +0000 (10:55 +0000)]
MDL-59434 core_search: Alternate result orders including by context
Implements a mechanism by which search engines can provide different
result orderings, and implements a 'by location' ordering within the
Solr search engine (available whenever the user starts their search
from within a course or activity).
Eloy Lafuente (stronk7) [Tue, 20 Mar 2018 09:20:11 +0000 (10:20 +0100)]
Merge branch 'MDL-61615-master' of git://github.com/rezaies/moodle
Shamim Rezaie [Tue, 20 Mar 2018 06:30:21 +0000 (17:30 +1100)]
MDL-61615 Questions: Only move question categories if there is any
Andrew Nicols [Tue, 20 Mar 2018 06:08:16 +0000 (14:08 +0800)]
Merge branch 'master_MDL-58080' of https://github.com/danmarsden/moodle
Andrew Nicols [Tue, 20 Mar 2018 05:53:36 +0000 (13:53 +0800)]
Merge branch 'MDL-61519-master' of https://github.com/MartinGauk/moodle
Andrew Nicols [Tue, 20 Mar 2018 05:38:59 +0000 (13:38 +0800)]
Merge branch 'MDL-58179-master' of https://github.com/lucaboesch/moodle
Eloy Lafuente (stronk7) [Tue, 20 Mar 2018 01:25:11 +0000 (02:25 +0100)]
Merge branch 'MDL-61597-master' of git://github.com/andrewnicols/moodle
AMOS bot [Tue, 20 Mar 2018 00:05:59 +0000 (00:05 +0000)]
Automatically generated installer lang files
AMOS bot [Tue, 20 Mar 2018 00:05:58 +0000 (00:05 +0000)]
Automatically generated installer lang files
Eloy Lafuente (stronk7) [Mon, 19 Mar 2018 23:27:48 +0000 (00:27 +0100)]
Merge branch 'MDL-61529-master' of https://github.com/bmbrands/moodle
Luca Bösch [Mon, 19 Mar 2018 20:10:07 +0000 (21:10 +0100)]
MDL-58179 lesson: Avoid using span with class "label"
Eloy Lafuente (stronk7) [Mon, 19 Mar 2018 10:21:48 +0000 (11:21 +0100)]
Merge branch 'MDL-61615-master' of git://github.com/rezaies/moodle
Simey Lameze [Thu, 8 Mar 2018 04:18:17 +0000 (12:18 +0800)]
MDL-61410 question: merge course and question tags
Simey Lameze [Tue, 6 Mar 2018 06:23:34 +0000 (14:23 +0800)]
MDL-61410 question: fix unit tests failures
Simey Lameze [Fri, 2 Mar 2018 04:29:26 +0000 (12:29 +0800)]
MDL-61410 question: support course tags on import
Simey Lameze [Fri, 2 Mar 2018 03:41:05 +0000 (11:41 +0800)]
MDL-61410 question: unit tests for question_sort_tags
Simey Lameze [Fri, 2 Mar 2018 01:01:40 +0000 (09:01 +0800)]
MDL-61410 question: change logic on xml format
Simey Lameze [Fri, 2 Mar 2018 00:24:00 +0000 (08:24 +0800)]
MDL-61410 question: move tag sorting logic to a new function
Simey Lameze [Fri, 2 Mar 2018 04:21:54 +0000 (12:21 +0800)]
MDL-61410 question: support course tags on export
Andrew Nicols [Mon, 19 Mar 2018 02:51:27 +0000 (10:51 +0800)]
Merge branch 'MDL-61265-master' of git://github.com/sarjona/moodle
Andrew Nicols [Mon, 19 Mar 2018 02:22:14 +0000 (10:22 +0800)]
Merge branch 'MDL-58179-master' of https://github.com/lucaboesch/moodle
Andrew Nicols [Mon, 19 Mar 2018 02:09:29 +0000 (10:09 +0800)]
Merge branch 'MDL-61154_master' of git://github.com/dmonllao/moodle
Andrew Nicols [Mon, 19 Mar 2018 01:01:19 +0000 (09:01 +0800)]
Merge branch 'MDL-61514-master' of git://github.com/rezaies/moodle
Eloy Lafuente (stronk7) [Sun, 18 Mar 2018 22:40:02 +0000 (23:40 +0100)]
MDL-61678 phpunit: Bump to current / latest 6.5.x before major release
Tim Hunt [Sun, 18 Mar 2018 20:40:43 +0000 (20:40 +0000)]
MDL-61605 quiz report: add missing index/key
Thanks to Patryk Szuta for the suggestion
Martin Gauk [Mon, 5 Mar 2018 16:16:41 +0000 (16:16 +0000)]
MDL-61519 calendar: do not iterate through all categories
Replace calls to \coursecat::get_all() or cache the results.
Luca Bösch [Thu, 15 Mar 2018 09:52:58 +0000 (10:52 +0100)]
MDL-52989 mod_lesson: Fix cluster_jump returning a cluster page id.
Sara Arjona [Wed, 24 Jan 2018 08:48:01 +0000 (09:48 +0100)]
MDL-61265 enrol: Add default numsections for external db
Bas Brands [Fri, 16 Mar 2018 09:36:40 +0000 (10:36 +0100)]
MDL-61529 core: update lib scssphp to version 0.7.5
David Monllao [Mon, 5 Mar 2018 09:40:32 +0000 (10:40 +0100)]
MDL-61154 analytics: No escaping for text format url
Luca Bösch [Tue, 6 Mar 2018 15:10:32 +0000 (16:10 +0100)]
MDL-58179 lesson: Avoid using span with class "label"
Jake Dallimore [Fri, 16 Mar 2018 02:08:46 +0000 (10:08 +0800)]
weekly release 3.5dev
Eloy Lafuente (stronk7) [Fri, 16 Mar 2018 00:15:16 +0000 (01:15 +0100)]
Merge branch 'MDL-61570-master' of git://github.com/andrewnicols/moodle
Eloy Lafuente (stronk7) [Thu, 15 Mar 2018 23:29:34 +0000 (00:29 +0100)]
Merge branch 'MDL-61566-master' of git://github.com/andrewnicols/moodle
Eloy Lafuente (stronk7) [Thu, 15 Mar 2018 22:48:24 +0000 (23:48 +0100)]
Merge branch 'MDL-61571-master' of git://github.com/andrewnicols/moodle
Jake Dallimore [Thu, 15 Mar 2018 08:44:02 +0000 (16:44 +0800)]
Merge branch 'wip-MDL-61477-master-behat' of https://github.com/marinaglancy/moodle
Marina Glancy [Thu, 15 Mar 2018 08:16:00 +0000 (16:16 +0800)]
MDL-61477 auth_email: behat tests for sign up
Shamim Rezaie [Thu, 15 Mar 2018 07:47:25 +0000 (18:47 +1100)]
MDL-61589 Questions: Top question category naming improvement
Display the context name next to the top question category name.
Jake Dallimore [Thu, 15 Mar 2018 03:38:14 +0000 (11:38 +0800)]
Merge branch 'wip-MDL-61477-master-manager' of git://github.com/marinaglancy/moodle
Marina Glancy [Mon, 12 Mar 2018 01:58:46 +0000 (09:58 +0800)]
MDL-61477 auth_email: add sitepolicyhandler to the config WS
Marina Glancy [Mon, 12 Mar 2018 01:33:43 +0000 (09:33 +0800)]
MDL-61477 admin: sitepolicy handler API
- Define sitepolicy handler manager class, base class and the core handler
- Allow to set a plugin as sitepolicyhandler that implements the sitepolicy API
- Modify web services to return information from the 3rd party handler instead of core if needed
David Mudrák [Wed, 24 Jan 2018 22:19:51 +0000 (23:19 +0100)]
MDL-61477 admin: Allow plugins to act as alternate policy handlers
The patch introduces a new site setting 'sitepolicyhandler' that can be
either empty or contain a plugin component name. If it is empty, the
site policy feature keeps working as before and the core keeps the
control over it.
If a plugin is specified, it is expected to implement the callback
'site_policy_handler' in its lib.php file. The callback should return a
URL to a script where the user can accept the site policies. The plugin
itself is responsible for setting the 'policyagreed' flag in the users
table. The callback may return an empty value, in which case the user
can continue using the site without being redirected.
The patch adds support for a new pre-config flag NO_SITEPOLICY_CHECK.
This constant should be defined and set to true if we should not check
the user's policyagreed status during the require_login().
This is for pages where the user actually accepts the site policies and
helps to avoid the redirect loop.
Dan Marsden [Wed, 14 Mar 2018 23:50:38 +0000 (12:50 +1300)]
MDL-58080 mod_scorm: add immutable header for scorm content files.
Eloy Lafuente (stronk7) [Wed, 14 Mar 2018 13:43:25 +0000 (14:43 +0100)]
Merge branch 'MDL-61600-master' of git://github.com/dpalou/moodle
Eloy Lafuente (stronk7) [Wed, 14 Mar 2018 12:39:17 +0000 (13:39 +0100)]
Merge branch 'MDL-61620_master' of git://github.com/dmonllao/moodle
David Monllao [Thu, 8 Mar 2018 17:27:46 +0000 (18:27 +0100)]
MDL-61620 output: New action_menu options
Eloy Lafuente (stronk7) [Wed, 14 Mar 2018 10:22:17 +0000 (11:22 +0100)]
Merge branch 'MDL-61398-master' of git://github.com/andrewnicols/moodle
Eloy Lafuente (stronk7) [Wed, 14 Mar 2018 10:00:57 +0000 (11:00 +0100)]
Merge branch 'MDL-61475-master-v3' of git://github.com/snake/moodle
Dani Palou [Tue, 6 Mar 2018 15:05:55 +0000 (16:05 +0100)]
MDL-61600 recaptcha: Create a script to display recaptcha
Eloy Lafuente (stronk7) [Wed, 14 Mar 2018 09:30:51 +0000 (10:30 +0100)]
Merge branch 'MDL-61526-master' of git://github.com/rezaies/moodle
Andrew Nicols [Wed, 14 Mar 2018 06:55:34 +0000 (14:55 +0800)]
Merge branch 'MDL-61465-master-2' of git://github.com/ryanwyllie/moodle
Andrew Nicols [Wed, 14 Mar 2018 05:18:14 +0000 (13:18 +0800)]
Merge branch 'MDL-43362-master' of git://github.com/Kathrin84/moodle
Andrew Nicols [Wed, 14 Mar 2018 02:33:03 +0000 (10:33 +0800)]
Merge branch 'MDL-60398-master' of git://github.com/mihailges/moodle
Jake Dallimore [Wed, 14 Mar 2018 01:41:00 +0000 (09:41 +0800)]
Merge branch 'MDL-61307-master' of git://github.com/andrewnicols/moodle
Jake Dallimore [Tue, 13 Mar 2018 01:52:19 +0000 (09:52 +0800)]
MDL-61475 mod_choice: perf improvement when exporting personal data
Instead of creating an array containing all record information and then
writing, we know write periodically during the recordset iteration, thus
alleviating any memory concerns associated with the array approach.
Jake Dallimore [Wed, 28 Feb 2018 07:42:53 +0000 (15:42 +0800)]
MDL-61475 mod_choice: Update core_privacy implementation
Jun Pataleta [Mon, 19 Feb 2018 08:37:41 +0000 (16:37 +0800)]
MDL-61475 mod_choice: Add implementation of Privacy API
Andrew Nicols [Thu, 8 Feb 2018 07:45:02 +0000 (15:45 +0800)]
MDL-61398 block_html: Implement privacy API
Andrew Nicols [Tue, 13 Mar 2018 05:13:57 +0000 (13:13 +0800)]
MDL-61307 core_privacy: Add unit test to check installed providers
David Mudrák [Thu, 15 Feb 2018 11:50:46 +0000 (12:50 +0100)]
MDL-61392 enrol_paypal: Improve IPN input parameters checking