MDL-41437 rework plugin_manager caching and version info in blocks and modules
authorPetr Škoda <commits@skodak.org>
Sat, 14 Sep 2013 21:57:21 +0000 (23:57 +0200)
committerPetr Škoda <commits@skodak.org>
Sun, 22 Sep 2013 19:25:26 +0000 (21:25 +0200)
commitbde002b81ac2fe003cc2b1e1db6e90c231baf1fa
tree6be710e821507f0fe632c93b42bd3579a8ba3b4a
parent81881cb9d67d0b827a38939d09248a2990b01511
MDL-41437 rework plugin_manager caching and version info in blocks and modules

This patch includes:

* version column removed from modules table, now using standard config, this allows decimal version for modules
* version column removed from block table, now using standard config, this allows decimal version for blocks
* module version.php can safely use $plugins instead of module
* new plugin_manager bulk caching, this should help with MUC performance when logged in as admin
* all missing plugins are now in plugin overview (previously only blocks and modules)
* simplified code and improved coding style
* reworked plugin_manager unit tests - now using real plugins instead of mocks
* unit tests now fail if any plugin does not contain proper version.php file
* allow uninstall of deleted filters
50 files changed:
admin/auth.php
admin/block.php [deleted file]
admin/blocks.php
admin/courseformats.php
admin/editors.php
admin/enrol.php
admin/filters.php
admin/localplugins.php
admin/message.php
admin/modules.php
admin/plagiarism.php
admin/portfolio.php
admin/qbehaviours.php
admin/reports.php
admin/repository.php
admin/repositoryinstance.php
backup/converter/moodle1/handlerlib.php
backup/moodle2/backup_stepslib.php
blocks/upgrade.txt
cache/locks/file/version.php [new file with mode: 0644]
filter/manage.php
lang/en/cache.php
lib/adminlib.php
lib/classes/component.php
lib/db/caches.php
lib/db/install.xml
lib/db/upgrade.php
lib/editor/atto/lib.php
lib/editor/tinymce/adminlib.php
lib/editor/tinymce/subplugins.php
lib/moodlelib.php
lib/pluginlib.php
lib/tests/available_update_checker_test.php [new file with mode: 0644]
lib/tests/available_update_deployer_test.php [new file with mode: 0644]
lib/tests/fixtures/mockplugins/mod/bar/version.php [deleted file]
lib/tests/fixtures/mockplugins/mod/baz/meg/one/version.php [deleted file]
lib/tests/fixtures/mockplugins/mod/baz/version.php [deleted file]
lib/tests/fixtures/mockplugins/mod/foo/lish/frog/version.php [deleted file]
lib/tests/fixtures/mockplugins/mod/foo/lish/hippo/version.php [deleted file]
lib/tests/fixtures/mockplugins/mod/foo/version.php [deleted file]
lib/tests/fixtures/mockplugins/mod/new/version.php [deleted file]
lib/tests/fixtures/mockplugins/mod/qux/cat/one/version.php [deleted file]
lib/tests/fixtures/mockplugins/mod/qux/version.php [deleted file]
lib/tests/plugin_manager_test.php [new file with mode: 0644]
lib/tests/pluginlib_test.php [deleted file]
lib/upgrade.txt
lib/upgradelib.php
mod/resource/backup/moodle1/lib.php
user/portfolio.php
version.php