Adrian Greeve
c84cb13cd4
MDL-62574 core_privacy: Check the contextlist for real contexts.
...
There are situations when contexts will be deleted in the provider.
The context list is not updated and so we have introduced a try
catch.
2018-06-12 11:24:38 +08:00
Eloy Lafuente (stronk7)
28ec28e026
Merge branch 'MDL-62251-master' of git://github.com/rezaies/moodle
2018-05-13 20:10:44 +02:00
Jun Pataleta
0697a52218
Merge branch 'MDL-62394-master' of git://github.com/andrewnicols/moodle
2018-05-11 14:23:41 +08:00
Andrew Nicols
20f3b33b24
MDL-62394 privacy: Make JSON export pretty
2018-05-11 14:12:10 +08:00
Shamim Rezaie
07890336ab
MDL-62251 Privacy: Url path separator should be platform independant
...
It should always be forward slash.
2018-05-10 23:30:38 +10:00
Shamim Rezaie
44efefcbeb
MDL-62251 Privacy: Fix get_path() and get_full_path() bug in Windows
2018-05-10 23:30:23 +10:00
Jake Dallimore
84bc2245f7
Merge branch 'MDL-62383-master' of git://github.com/junpataleta/moodle
2018-05-10 10:03:32 +08:00
Jun Pataleta
6c0c9d5d08
MDL-62383 privacy: Close recordset in contextlist::add_from_sql()
2018-05-10 09:55:33 +08:00
Jake Dallimore
e4a37fbef1
MDL-62029 core_course: Fixes to context-aware provider implementation.
2018-05-09 15:34:41 +08:00
Adrian Greeve
9faf51a7ca
MDL-62029 core_privacy: context aware provider creation.
2018-05-09 10:11:47 +08:00
Andrew Nicols
630a72f19f
Merge branch 'MDL-62285-master' of git://github.com/ryanwyllie/moodle
2018-05-08 11:08:03 +08:00
Andrew Nicols
9846d710fe
Merge branch 'wip-MDL-62137-master' of git://github.com/abgreeve/moodle
2018-05-07 15:24:01 +08:00
Adrian Greeve
6d3b250b4f
MDL-62137 core_privacy: Update to helper to use core_completion
2018-05-07 14:28:17 +08:00
Sara Arjona
7a3707797d
MDL-62240 privacy: Avoid error when path is higher than allowed
...
A new method shorten_filenames has been added to moodlelib.
2018-05-03 09:16:13 +02:00
Ryan Wyllie
3041fe6faa
MDL-62285 privacy: use context id when generating context path
...
moodle_content_writer::get_context_path() now includes the context
id in the path to ensure that it will always generate unique paths
even when the context names are not unique.
2018-05-02 12:08:58 +08:00
Shamim Rezaie
c5d720ab51
MDL-62060 core_privacy: Make sure the exported json is human readable
2018-05-01 12:35:00 +10:00
Andrew Nicols
f829edb719
Merge branch 'MDL-62140_master' of git://github.com/markn86/moodle
2018-04-24 10:04:52 +08:00
Mark Nelson
aa725516d3
MDL-62140 core_privacy: add helper functions to add system/user context
2018-04-23 20:06:02 +08:00
Jun Pataleta
c8619b28a3
Merge branch 'MDL-62049_master' of git://github.com/markn86/moodle
2018-04-23 13:54:38 +08:00
Mark Nelson
63d170647c
MDL-62049 core_privacy: use correct lang string for date
2018-04-23 13:03:23 +08:00
David Mudrák
7a429a160d
MDL-62003 privacy: Fix reported coding style violation
2018-04-18 17:10:18 +02:00
David Mudrák
3ecbf154db
MDL-62003 privacy: Consistently export files into _files folder
...
There were two major issues with the previous implementation:
* The exported folder name was localised so it was "Files" or "Soubory"
etc depending on the current language. Yet URLs referring to the files
in that folder were always rewritten with hard-coded English "files".
* Files from all fileareas and itemids were all exported to a single
target directory. So if there were two files with the same name being
exported from multiple areas (such as submission_content and
submission_attachment in the workshop module), one would overwrite
another.
The patch addresses these issues as follows:
* To unify the folder name and also to minimise the risk of conflict
with a subcontext folder, we now always export stored files under
"_files" folder.
* Under that folder, there is a subdirectory with the area name and then
eventually another subdirectory with non-zero itemid. And there
finally the stored_file is exported to under its own file path.
2018-04-18 17:10:12 +02:00
Andrew Nicols
fa9243cd85
MDL-61743 core_privacy: Reduce context specificty
...
Deletion is called for a context against all components, not just
modules.
2018-04-06 08:57:24 +02:00
Andrew Nicols
3fb9ad0ea7
MDL-61703 privacy: Allow writing of user preferences at any context
2018-03-29 15:28:13 +08:00
Andrew Nicols
e98f0cf7ff
MDL-61307 privacy: Rename deletion functions
2018-03-13 08:48:13 +08:00
Andrew Nicols
70f0923499
MDL-61307 core: Remove deletion_criteria
2018-03-13 08:48:12 +08:00
Andrew Nicols
81f1e31a51
MDL-61307 core_privacy: Define and test providers
2018-03-09 10:01:18 +08:00