Commit graph

24952 commits

Author SHA1 Message Date
Adrian Greeve
e90a0a7415 MDL-62491 core_privacy: Add html files to the user data export.
This adds html to the data export that allows for easier navigation
and reading of data.
2018-10-08 09:00:08 +08:00
Jun Pataleta
86abaf31c8 Merge branch 'MDL-63442-master' of git://github.com/abias/moodle 2018-10-04 11:02:34 +08:00
Eloy Lafuente (stronk7)
95f82860d5 Merge branch 'MDL-62610-master' of git://github.com/lameze/moodle 2018-10-03 18:00:08 +02:00
Jun Pataleta
941b90a509 Merge branch 'MDL-63211_master' of git://github.com/markn86/moodle 2018-10-03 13:45:52 +08:00
Mark Nelson
be016b0144 MDL-63211 core: added notification when contact request is made 2018-10-03 11:58:39 +08:00
Mark Nelson
f219eac7b4 MDL-63211 core: update core to use new APIs 2018-10-03 11:51:29 +08:00
Mark Nelson
beeadbf783 MDL-63211 core: updated upgrade.txt files 2018-10-03 11:51:29 +08:00
Mark Nelson
522841861f MDL-63211 core_message: added new web services 2018-10-03 11:35:26 +08:00
Mark Nelson
0b3eadcd96 MDL-63211 core_message: deprecated functions and added new API 2018-10-03 11:35:26 +08:00
Mark Nelson
bacebf3738 MDL-63211 core: created new events for blocking/unblocking users 2018-10-03 11:35:25 +08:00
Eloy Lafuente (stronk7)
ca2ac0c1a3 Merge branch 'MDL-58000-master' of https://github.com/mackensen/moodle 2018-10-02 23:39:27 +02:00
Jun Pataleta
b79482f5d7 MDL-63493 core_question: Fix field parameters for the index definitions
* The fields for the ID number-related indexes that were created for
  the question and question_categories tables in MDL-62708 should not
  be in comma-separated strings.
2018-10-02 11:31:36 +08:00
Jun Pataleta
0410cee69e MDL-63493 core_message: Fix field parameters for the index definitions
* The fields for the ID number-related indexes that were created for
  the messages and message_user_actions tables in MDL-36941 should not
  be in comma-separated strings.
2018-10-02 11:31:36 +08:00
Simey Lameze
9b1fc262d8 MDL-63185 mod_quiz: make CiBoT happy again
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Simey Lameze
a190910595 MDL-63185 core_test: add set_user function to behat
Part of MDL-62610
2018-09-28 11:07:21 +08:00
Mark Nelson
b393296311 MDL-63211 core: deprecated events for blocking/unblocking contacts
The message_contact_blocked and message_contact_unblocked
events were deprecated. The reason being that you will be
able to block and unblock any user, regardless if they are
a contact or not. This information is also now stored in a
separate DB table.
2018-09-28 10:19:57 +08:00
Mark Nelson
b65bfc8ab4 MDL-63211 core: upgrade to remove duplicate contacts
Remove any duplicate rows - from now on adding contacts just requires 1 row.
The person who made the contact request (userid) and the person who approved
it (contactid). Upgrade the table so that the first person to add the contact
was the one who made the request.
2018-09-28 10:19:57 +08:00
Mark Nelson
3ec5c7701c MDL-63211 core: upgrade to remove non-mutual contacts 2018-09-28 10:19:56 +08:00
Mark Nelson
4428b042cb MDL-63211 core: upgrade to move blocked contacts to new table 2018-09-28 09:16:31 +08:00
Mark Nelson
d842d9a90a MDL-63211 core: added new database tables
Allow NULL values for timecreated in both message_contacts
and message_users_blocked because there is existing data
that has no timecreated value associated with it.
2018-09-28 09:15:52 +08: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
1e44de35b3 MDL-63044 block_timeline: add timeline block 2018-09-27 13:10:45 +08:00
Ryan Wyllie
bbe6eadda7 MDL-63044 block_myoverview: remove tab preference 2018-09-27 13:10:45 +08:00
Ryan Wyllie
2c13ae01d9 MDL-63044 javascript: improve paged content widget 2018-09-27 13:10:45 +08:00
Ryan Wyllie
2c1d19fde6 MDL-63044 course: add get_enrolled_courses_by_timeline_classification 2018-09-27 13:10:44 +08:00
Ryan Wyllie
40a14ef345 MDL-63044 icon: add next and previous icons 2018-09-27 13:09:23 +08:00
Ryan Wyllie
119c0124c4 MDL-63044 javascript: add getUserMidnightForTimestamp to user_date 2018-09-27 13:09:23 +08:00
Ryan Wyllie
6e403eb62f MDL-63044 javascript: add global helper for dropdowns 2018-09-27 13:09:23 +08:00
Ryan Wyllie
d4e8e94025 MDL-63044 javascript: add simple pubsub implementation 2018-09-27 13:09:23 +08:00
David Monllao
e8ce6ca306 MDL-54035 accesslib: Check if the user can switch role before switching 2018-09-26 13:03:08 +02:00
Eloy Lafuente (stronk7)
a649a3a120 Merge branch 'MDL-62714-boost_course_visibility_in_navbar' of https://github.com/fskandalis/moodle 2018-09-25 23:17:52 +02:00
Eloy Lafuente (stronk7)
de7c685e52 Merge branch 'MDL-63253-master-adminsearchresults' of git://github.com/mudrd8mz/moodle 2018-09-25 22:56:11 +02:00
Eloy Lafuente (stronk7)
b687205e27 Merge branch 'MDL-60028' of https://github.com/paulholden/moodle 2018-09-25 16:57:58 +02:00
Eloy Lafuente (stronk7)
b8749c6208 Merge branch 'wip-MDL-62708-master' of https://github.com/Beedell/moodle 2018-09-25 16:52:50 +02:00
Charles Fulton
49b464f814 MDL-58000 badges: use large image when baking 2018-09-25 10:46:05 -04:00
Eloy Lafuente (stronk7)
4f06a97702 Merge branch 'MDL-57610' of git://github.com/aolley/moodle 2018-09-25 14:46:09 +02:00
Alexander Bias
3e24741d0a MDL-63442 login: Show MOODLEID cookie note only if needed
AMOS BEGIN
 CPY [cookiesenabled,core],[cookiesenabledonlysession,core]
AMOS END
2018-09-25 12:16:47 +02:00
David Monllao
85d4b77cd3 Merge branch 'MDL-61967-master' of git://github.com/sarjona/moodle 2018-09-25 11:08:53 +02:00
Adam Olley
1afbb97b6b MDL-57610 assignfeedback_editpdf: integration cleanup
* Add a note to upgrade.php to notify devs/admins of the new setting.
* Replace update_record with set_field.
* Add missing phpdoc.
2018-09-25 09:54:39 +09:30
Sara Arjona
5290d0604b MDL-61967 core_user: Allow filtering by No groups on participants page
A new optional parameter $context has been added to the
core_group::groups_get_members_join() function.
Besides, some core_group methods now accept -1 (USERSWITHOUTHGROUP) for
the groupid field.
2018-09-24 18:33:45 +02:00
Eloy Lafuente (stronk7)
0de29dbf35 MDL-63020 tests: ensure that searching for is null values also works ok 2018-09-24 17:38:10 +02:00
Eloy Lafuente (stronk7)
985b6b75c2 Merge branch 'MDL-63020' of git://github.com/timhunt/moodle 2018-09-24 16:01:21 +02:00
Tim Hunt
eb6c769a8c MDL-63020 dml: improve the unit tests 2018-09-24 11:41:25 +01:00
David Monllao
ccff34bf07 Merge branch 'MDL-47962' of git://github.com/timhunt/moodle 2018-09-24 09:45:47 +02:00
David Monllao
bdc511364c MDL-54035 upgrade.txt: Limit comments to relevant info for upgrades 2018-09-24 09:41:18 +02:00
Jonathan Champ
1113e34675 MDL-54035 accesslib: Add context->get_parent_context_paths()
Returns full context paths for parent contexts. Useful for exact
matches, such as when checking dirtycontexts.
2018-09-21 09:17:43 -04:00
Jonathan Champ
1d049e08e5 MDL-54035 accesslib: add mark_user_dirty helper
Instead of marking an entire context dirty and affecting all users
of those contexts, mark the user as dirty when the change only
affects that user.
2018-09-21 09:17:43 -04:00
Jonathan Champ
34dd57053d MDL-54035 accesslib: only modify role_capabilities in accesslib
Whenever the role_capabilities table is changed, we need to remember
to clear the cache for the role(s) being modified. This is far simpler
when all of those changes happen in a single file, i.e. accesslib.php,
allowing other parts of the application to use the public functions
without requiring knowledge of the cache internals.
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
John Beedell
6189fda47f MDL-62708 question: Add idnumbers to question and question category 2018-09-21 12:26:24 +01:00