Commit graph

24940 commits

Author SHA1 Message Date
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
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
Eloy Lafuente (stronk7)
4f06a97702 Merge branch 'MDL-57610' of git://github.com/aolley/moodle 2018-09-25 14:46:09 +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
Paul Holden
f56e695883 MDL-60028 enrol: fix counting of enrolled users in a given context.
Previously users enrolled in a course via multiple enrolment methods
would be counted multiple times.
2018-09-21 10:14:55 +01:00
Tim Hunt
3923151a1a MDL-47962 filter_glossary: changes made during integration review 2018-09-20 17:58:01 +01:00
Tim Hunt
5a8c44d000 MDL-47962 filter_glossary: only create replacement HTML if needed 2018-09-20 17:58:01 +01:00
Tim Hunt
1d8d00d91d MDL-47962 filter_glossary: only prepare the replacement if used 2018-09-20 17:58:00 +01:00
Tim Hunt
ac66652078 MDL-47962 filter_glossary: clean up filterobject class
This is another preliminary commit, rationalising the ->work... fields
and also moving the code that sets them up into a separate function.
This is also to prepare for the next commit.
2018-09-20 17:58:00 +01:00
Tim Hunt
c01503de75 MDL-47962 filter_glossary: only prepare_phrases_for_filtering once 2018-09-20 17:58:00 +01:00
Tim Hunt
2abf8fbf86 MDL-47962 filter_glossary: use preg features for fullmatch
This eliminates a lot of necessary string manipulation for something
that preg can just do with the \b assertion.

The change also extracts all the work to prepare ->work_phrase (renamed
->regexp) into a separate function. This is to pave the way for future
efficiency gains, but for now I have not done them, so it is easier to
verify by inspection that this commit does not change behaviour.

Also, some tidy-ups to the filterobject structure, to eliminate some
redundant fields.
2018-09-20 17:58:00 +01:00
Tim Hunt
43d270e4ef MDL-47962 filterlib: Fix lots of coding style 2018-09-20 17:58:00 +01:00
Tim Hunt
5abc431335 MDL-63020 ddl: fix nullable unique indexes in OCI and MS SQL
This works-around the default non-standard behaviour of these DB engines.
2018-09-20 17:41:22 +01:00
Tim Hunt
54b2b1d27f MDL-63020 xmldb: Improve PHPdoc comments for better IDE autocomplete 2018-09-20 17:41:22 +01:00
David Monllao
0e5144fe24 Merge branch 'MDL-63333_master' of git://github.com/markn86/moodle 2018-09-18 12:17:46 +02:00
Jun Pataleta
58e529e0c0 Merge branch 'm36_MDL-63319_MySQL_MSSQL_Rename_Field_Reserved_Word' of https://github.com/scara/moodle 2018-09-18 14:10:11 +08:00