Commit Graph

51 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7) ede7105fd9 MDL-27233 move the restorer enrol/ra creation to the very beginning of the restore process
Some early steps in restore are using capability checks to decide how to
restore some information. But at that stage, if the course contents have
been removed and the user had perms at course level only (usually teacher)
the process can fail because some content is not restoreable due to the
lack of permissions.

Moving the restorer step to the beginning really helps is those situations
and it does not hurt at all.

Also, fixed one notice detected when testing this.
2011-11-25 01:07:27 +01:00
Eloy Lafuente (stronk7) 0620787a17 Merge branch 'w47_MDL-27233_m22_restoreenrol' of git://github.com/skodak/moodle 2011-11-24 23:44:24 +01:00
Petr Skoda d53e3298c0 MDL-27233 add new options to keep enrols and groups purging existing course in restore 2011-11-23 18:38:27 +01:00
Eloy Lafuente (stronk7) 1acad8eed7 MDL-30192 restore - prevent any extra info to be created for deleted users 2011-11-18 13:03:08 +01:00
Ankit Kumar Agarwal ef6b3ba159 MDL-29035 Backups making email match case-insensitive when restoring backups 2011-11-03 10:18:15 +05:30
Aparup Banerjee 5433da6064 Merge branch MDL-29189-master of git://github.com/samhemelryk/moodle
- resolved conflicts.
2011-09-13 11:39:06 +08:00
Eloy Lafuente (stronk7) 59fc0cbdb7 MDL-28488 backup - conditionaly apply defaults based on mode
Some modes of backup cannot be preloaded with general backup
settings because they may conflict with the definitions required/set
by the mode (for example, import backups are, by definition, without
users always, so we cannot apply one default in the opposite direction).

So, after the patch, current general_backup setting will be only applied
to general backups, import/hub modes won't be using any default and
automated backup defaults should be loaded here (TODO)
2011-09-11 19:35:56 +02:00
Sam Hemelryk 8ebbb06adf MDL-29189 mutlilang Reviewed the uses of course shortname and ensured things are being formatted consistently 2011-09-08 09:30:27 +12:00
Aparup Banerjee ed6a14eb03 MDL-28453 backup - made temporary restoration courses hidden by default. 2011-07-25 16:34:11 +08:00
sam marshall 89213d0041 backup MDL-26606 Backup should allow themes to have course data; also fix course theme restore 2011-03-04 15:53:48 +00:00
Eloy Lafuente (stronk7) 02cf691951 MDL-25863 backup - take rid of dupe code for filename calculations 2011-02-14 21:36:27 +01:00
Eloy Lafuente (stronk7) a90659d6ba DL-22146 backup & restore - course formats remaining hooks 2011-02-11 00:07:32 +01:00
Eloy Lafuente f2364c93ed MDL-24962 backup - cache xmldb_tables for multiple operations. Apply destroyer to temp controller. 2010-11-15 07:17:24 +00:00
Eloy Lafuente 0f66acede0 MDL-22135 - logs restore, course and activities + cleanup 2010-11-11 19:46:04 +00:00
Sam Marshall 5bef986516 Backup MDL-24906 Fixed unit test failures 2010-11-01 16:33:30 +00:00
Eloy Lafuente 648a575eda NOBUG: Added support for after_restore() methods on restore. Will help some blocks. 2010-11-01 15:53:35 +00:00
Eloy Lafuente 41941110fd MDL-22138 backup - I know smaller cathedrals than this, yay quizzes! 2010-10-24 10:43:42 +00:00
Sam Hemelryk 593fc4a977 restore MDL-23863 Category->coursecount is incremented if restoring to a new course. 2010-09-21 10:12:58 +00:00
Petr Skoda e894efc31c MDL-24321 switching to stdClass in /backup/ 2010-09-21 08:47:01 +00:00
Eloy Lafuente 767cb7f03a MDL-22151 & MDL-22138 - Quiz activity backup & questions banks too!
CV S: ----------------------------------------------------------------------
2010-09-21 01:28:30 +00:00
Eloy Lafuente 12c80f79b4 MDL-23993 backup - enforce in UI and save all backup files with .mbz 2010-09-06 09:33:20 +00:00
Eloy Lafuente b212f87e32 MDL-21432 backup - proper fallback of user if missing orig one 2010-09-05 15:42:11 +00:00
Petr Skoda 2b199e7c0b MDL-23885 fixed file api encapsulation and lowering number of direcories in zip files 2010-08-26 07:43:06 +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 70c1ad5836 MDL-21432 backup - exceptions are not good, so imscp imaginative use of itemid sucks, imo. :-P 2010-08-02 17:06:49 +00:00
Eloy Lafuente 327f3fdacc MDL-21432 backup - One ordered backup plan leads to one easier ordered restore 2010-07-28 22:21:56 +00:00
Eloy Lafuente 84cdf7de51 MDL-21432 backup - improve restore of files (user and sortorder) 2010-07-28 15:52:09 +00:00
Sam Hemelryk 3acc9b81f5 restore MDL-23109 Added role mapping interface and implemented searchable course/category selectors 2010-07-27 06:58:39 +00:00
Eloy Lafuente 4a15bb7660 MDL-23478 backup - adding support for fileareas to blocks 2010-07-23 17:36:38 +00:00
Eloy Lafuente fbd7413708 MDL-23109 backup - exclude info in moodle_backup.xml about non-included task. Thanks SamH! 2010-07-22 11:37:23 +00:00
Sam Hemelryk 785d6603dd backup MDL-23109 Implemented base restore UI within Moodle and linked through the navigation. 2010-07-22 07:48:02 +00:00
Eloy Lafuente 024c288dab MDL-21432 backup - now restoring ras/caps and "manual" enrolment plugins.
TODO: Complete the enrolments part and fix current implementation, it's only one skeleton
2010-07-21 19:30:15 +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 560811a91b MDL-23109 backup - define some original course bits for easier access from UI 2010-07-21 00:42:55 +00:00
Eloy Lafuente 8d4e41f4ec MDL-21432 backup - role load/mappings and integration with UI via controller (MDL-23109) 2010-07-20 22:51:04 +00:00
Eloy Lafuente 71a50b133d MDL-21432 - backup finished groupings restore + introduced role precheck/execution step 2010-07-19 14:06:16 +00:00
Eloy Lafuente c3ea499d53 MDL-21432 backup - handle mnet_remoteusers and support for prechecks 2010-07-18 23:49:55 +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 c60a8c82ac MDL-22139 backup - minor fix to query (grade_item->id is in backup_ids_temp->itemid) 2010-07-13 09:29:25 +00:00
Andrew Davis 315f6d8eab backup MDL-22139 added gradebook backup 2010-07-13 01:26:06 +00:00
Eloy Lafuente fbc2778d1c MDL-21432 backup - rest of helper files 2010-07-06 22:35:02 +00:00
Eloy Lafuente d12fd69be0 NOBUG backup - delete whitespace typo causing problems in section settings 2010-07-05 21:14:09 +00:00
Eloy Lafuente f60f4666f9 MDL-21432 backup - added operation to separate backup & restore 2010-07-05 16:37:50 +00:00
Petr Skoda 64f93798d4 MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment 2010-07-03 13:37:13 +00:00
Sam Hemelryk 61ebef8f6e backup MDL-22140 Added conf settings to control the default general backup settings 2010-06-17 08:57:00 +00:00
Eloy Lafuente be3e542d11 MDL-22145 backup - calculate default backup filename 2010-05-02 00:10:19 +00:00
Eloy Lafuente cd0034d860 MDL-22145 backup - implemented storage into proper file areas 2010-04-27 21:42:54 +00:00
Eloy Lafuente ce937f9957 MDL-22145 backup storage - provide 'user_tohub' storage for HUB files 2010-04-27 01:02:38 +00:00