Commit Graph

34 Commits

Author SHA1 Message Date
Tim Hunt 8eef9244be MDL-52523 backup of subplugins: add missing global 2015-12-15 15:57:23 +00:00
Eloy Lafuente (stronk7) 6a45e6b169 MDL-46455 restore: Extend support for subplugins to any plugin.
In order to implement the backup and restore of log stores, that
are created as subplugins of the tool_log plugin , we need to
extend subplugins support from activities to virtually any plugin.

Basically that implies moving the add_subplugin_structure() method from
its current, restricted, activity level to general restore_structure_step.

This commit implements the change in restore, covered with tests verifying
old, bc behavior and also new, general one.
2015-10-09 16:23:09 -07:00
sam marshall 5176504d3f MDL-46991 Availability: Conditional dates not updated on restore 2014-09-18 16:37:53 +01:00
James Pratt 809fdb83b1 MDL-41754 (1) Progress tracking : moved from backup and restore to core 2014-01-27 17:45:50 +07:00
sam marshall 37ff843d7d MDL-42039 Restore: Add progress reporting between files in resource
When a resource contains a very large number of (presumably small)
files, we should display progress between each file so that it
doesn't time out.
2013-10-10 10:56:30 +08:00
sam marshall 4fb31ae6cd MDL-41669 Restore: Progress bar needs to include more tasks
1. Changes progress bar code to allow headings for progress bar (so users have
   some clue what's going on if a page has more than one progress bar).
2. Changes restore code so that a progress bar can display during pre-checks if
   they take longer than 5 seconds.
3. Changes pre-check and restore code so that, in various points where the system
   can take a long time within an individual step, intederminate progress is
   indicated and it won't time out.
2013-09-16 17:18:12 +01:00
Petr Škoda bd3b3bba9f MDL-40220 use new core_component::get_plugin_list() 2013-07-16 22:36:11 +02:00
Petr Škoda 46f6f7f224 MDL-40220 use new core_component::get_plugin_types() 2013-07-16 22:31:48 +02:00
Petr Škoda 7a7b8a1f19 MDL-35071 redesign enrol restore
Includes option to convert all enrolments to enrol_manual instances, support for mapping of custom fields and fixes for several other problems. This does not include support for custom enrol tables, it will be addressed in another issue.
2012-09-07 11:11:28 +02:00
Frederic Massart 3b232aeffb MDL-28346 Backup: Restore does not fail when a file is missing 2012-09-03 14:13:11 +08:00
Adrian Greeve a689cd1def MDL-34469 - lib - replacement of the deprecated get_context_instance and get_context_by_id functions (group 15) 2012-07-30 14:59:57 +08:00
sam marshall 1cf121e1d2 MDL-24419 (1): Core restore steps should have after_restore function
At present core restore steps cannot have an after_restore function,
even though plugin restore steps can. Technically it would be possible
to just override the launch_after_restore_methods function but this
is not very neat. Instead, I added code to call after_restore function
(exactly the same way after_execute works).
2012-05-14 11:15:14 +01:00
Eloy Lafuente (stronk7) c44299c172 MDL-27636 restore - add support for after_restore() to plugins. Credit goes to Mark Nielsen. Thanks! 2011-05-26 02:37:16 +02:00
Eloy Lafuente (stronk7) 4b43b1074f backup MDL-26572 add new param to plugin and subplugin functions 2011-03-07 00:16:25 +01:00
Andrew Davis (andyjdavis) 98529b009b backup MDL-26572 made restore store null instead of 0 2011-03-04 12:14:00 +08:00
Eloy Lafuente (stronk7) 0149e6c713 MDL-26405 restore - dispatch able to skip branches
after this change any restore_structure_step processor
method is able to instruct the dispatcher about to skip
any path below it. Until now, we were doing the checks on
each child processor method, but that was inneficient and
prone to errors (easy to miss the check in a child so some
orphaned piezes of restore may be causing mess here and there).
Once implemented, it's simlpy a matter of the parent deciding if
all its children must be processed or no. Easier for developers
and also small speed improvement because avoids unnecesary
dispatching/processing to happen.

Surely only will be used in parts of core, like in question_categories,
saving 50-60 sub processors (sub-paths) to be dispatched.
2011-02-16 19:13:56 +01:00
Eloy Lafuente 636444e8b6 MDL-25019 backup - course_startdate may not exist 2010-11-24 10:46:15 +00:00
Eloy Lafuente 41941110fd MDL-22138 backup - I know smaller cathedrals than this, yay quizzes! 2010-10-24 10:43:42 +00:00
Eloy Lafuente fc92674d7a MDL-21432 backup - keep any empty() value to offset unmodified 2010-09-16 10:07:32 +00:00
Eloy Lafuente 2a918d8f55 MDL-23362 backup - allow set_mapping() to specify one parentitemid to be saved 2010-08-31 09:15:38 +00:00
Eloy Lafuente f2745cbe67 MDL-21432 backup - allow restore of only one itemid (instead of the whole itemname) 2010-08-06 16:08:29 +00:00
Eloy Lafuente 91d1105756 MDL-22245 backup - added support for subplugins in activities 2010-08-06 02:20:21 +00:00
Eloy Lafuente 84cdf7de51 MDL-21432 backup - improve restore of files (user and sortorder) 2010-07-28 15:52:09 +00:00
Eloy Lafuente fc46764db6 MDL-21432 backup - improve start date offset 2010-07-27 23:11:54 +00:00
Eloy Lafuente 245491b062 MDL-21432 backup - improve a bit detection of errors on restore structured steps 2010-07-24 16:31:16 +00:00
Eloy Lafuente 2d7cd79839 MDL-23478 backup - change in block positions structure. Break BC, so up minversion 2010-07-24 00:15:59 +00:00
Eloy Lafuente 71aa9472eb MDL-21432 backup - enable startdate offset now that UI and setting is available 2010-07-22 10:36:11 +00:00
Eloy Lafuente ba8bead5b6 MDL-21432 backup - fix some get_userid() calls 2010-07-22 08:19:21 +00:00
Eloy Lafuente 4bca307a40 MDL-21432 backup - helper function for restoring course/role names and date_offset 2010-07-21 15:50:06 +00:00
Eloy Lafuente c0440b3f0e MDL-21432 backup - allow arbitrary contexts restoring files. original sysctxid + scales 2010-07-18 18:11:20 +00:00
Eloy Lafuente b8bb45b001 MDL-21432 backup - move all the files handling on restore to use new backup_files_temp table 2010-07-18 11:13:03 +00:00
Eloy Lafuente 2df0f295b4 MDL-21432 backup - file handling and other changes. Saving before changes tomorrow due to MySQL temp tables limits 2010-07-18 01:35:18 +00:00
Eloy Lafuente 482aac657a MDL-21432 backup - root task, inforef and users handling completed, various fixes 2010-07-14 23:59:19 +00:00
Eloy Lafuente 690234554f MDL-21432 backup - restore_structure_step implementation 2010-07-12 22:44:46 +00:00