Marina Glancy
468c8d39c3
MDL-62351 privacy: check that subsystem/plugintype exist
2018-05-09 17:37:31 +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
Marina Glancy
2d9d4a1d88
MDL-61976 privacy: replace pluginfile in test writer
2018-05-08 12:03:41 +08:00
Marina Glancy
8dd8486355
MDL-61976 privacy: add subcontext argument to has_any_data
2018-05-08 12:03:41 +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
Jake Dallimore
209f6e1eda
Merge branch 'MDL-61407-master' of git://github.com/andrewnicols/moodle
2018-05-04 11:50:26 +08:00
Andrew Nicols
50f5a097a2
MDL-61407 privacy: Reset the writer after writer tests
...
The writer was not reset after these tests which had the potential to
affect the next test after these were run.
2018-05-03 16:14:38 +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
Andrew Nicols
04507546ec
MDL-61407 privacy: Track changes in any context
2018-05-02 19:13:30 +08: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
Jun Pataleta
1891ed7bb0
Merge branch 'MDL-62060-master' of git://github.com/rezaies/moodle
2018-05-01 10:44:59 +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
9b7527defc
MDL-62248 core_privacy: Add getter for user context prefs
2018-04-30 20:35:56 +08:00
Andrew Nicols
81fa241788
MDL-62248 core_privacy: Unit test for get_user_preferences
2018-04-30 16:00:24 +08:00
Andrew Nicols
970be4496e
Merge branch 'MDL-62248-master' of git://github.com/FMCorz/moodle
2018-04-30 15:59:39 +08:00
Frédéric Massart
97b05c8f1e
MDL-62248 core_privacy: Test writer writes user prefs in right contexts
2018-04-30 15:23:41 +08:00
David Mudrák
15ce5b7e9b
MDL-62241 privacy: Include the unit tests from the 3.3 branch
...
The tests do not actually do anything, they just make sure that the
method signature is correct on the given PHP version. They are mostly
relevant and useful on 3.3.
2018-04-27 15:25:38 +02:00
Andrew Nicols
7d05f5813d
Merge branch 'MDL-62140_master' of git://github.com/markn86/moodle
2018-04-24 11:16:07 +08:00
Mark Nelson
6d82a42353
MDL-62140 core_privacy: only reset tests when necessary
2018-04-24 10:54:21 +08:00
Andrew Nicols
3bdcd4d8c3
MDL-62140 core_privacy: Improve unit test
2018-04-24 10:18:31 +08: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
Andrew Nicols
be056e1b28
Merge branch 'wip-MDL-61759-master' of https://github.com/marinaglancy/moodle
2018-04-23 18:31:04 +08:00
David Monllao
a07d13dcbf
Merge branch 'MDL-61891-master' of git://github.com/andrewnicols/moodle
2018-04-23 11:55:15 +02: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
Marina Glancy
a74c511e7f
MDL-61759 admin: non-existing site policy handler means no policy
2018-04-23 10:25:00 +08:00
Andrew Nicols
4f9f035ae3
MDL-61891 privacy: Add helper to call methods on interfaces
2018-04-23 10:07:54 +08:00
Andrew Nicols
0683abccfc
Merge branch 'MDL-61759-master-nonexistinghandler' of git://github.com/mudrd8mz/moodle
2018-04-22 21:04:56 +08:00
Jun Pataleta
d816a900cb
Merge branch 'MDL-62048_master' of git://github.com/markn86/moodle
2018-04-20 11:53:37 +08:00
Andrew Nicols
37909713bb
Merge branch 'MDL-62003-master-privacyfiles' of git://github.com/mudrd8mz/moodle
2018-04-20 10:26:01 +08:00
Mark Nelson
f611c727f3
MDL-62048 core_privacy: extend test to ensure table exists
2018-04-19 13:00:15 +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
ae6072b892
MDL-61974 privacy: Rewrite the content writer storage
2018-04-16 11:12:07 +08:00
David Mudrák
22e94d69f7
MDL-61759 admin: Fix notice if attempting use nonexisting policy handler
...
The list of all known handlers may not contain the configured value,
raising the PHP undefined index notice.
2018-04-13 09:42:47 +02:00
Eloy Lafuente (stronk7)
fc9f324fe2
Merge branch 'MDL-61828-master' of git://github.com/andrewnicols/moodle
2018-04-12 00:14:32 +02:00
Eloy Lafuente (stronk7)
2d42e6e12c
Merge branch 'MDL-61743_master' of git://github.com/dmonllao/moodle
2018-04-11 19:23:01 +02:00
Eloy Lafuente (stronk7)
7aeb85770f
Merge branch 'MDL-61875-master' of https://github.com/snake/moodle
2018-04-10 13:03:27 +02:00
Jake Dallimore
6e6ba82305
MDL-61875 core_privacy: update the core_component_list in the manager
2018-04-10 08:44:42 +08:00
Andrew Nicols
d043aa071b
MDL-61861 privacy: Add unit tests to check all providers.
2018-04-08 14:12:42 +08:00
Andrew Nicols
5b18ae4a8a
MDL-61828 core_privacy: Support proper nesting in test trees
2018-04-08 13:35:09 +08: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
f9d8a27f2c
Merge branch 'MDL-61692-master-2' of https://github.com/snake/moodle
2018-04-04 11:37:09 +08:00
Jake Dallimore
19ca0aaa6b
MDL-61692 core_privacy: add privacyfields to link_ methods
...
Some subsystems are like conduits, passing data along to plugins which,
in turn, send the data externally. Only the component linking to (using)
the subsystem will know what data it is sending along to the eventual
external system, so should be able to specify this at the time of
linking. The same goes for plugintypes.
2018-04-04 10:00:39 +08:00
Eloy Lafuente (stronk7)
f9ee170a9b
Merge branch 'MDL-61703-master' of git://github.com/andrewnicols/moodle
2018-04-04 00:31:11 +02:00
Eloy Lafuente (stronk7)
dfbcdb3ec2
Merge branch 'MDL-61751-master' of git://github.com/andrewnicols/moodle
2018-04-04 00:23:44 +02:00