Russell Smith
558f2de1b9
MDL-40584 backup: Query db once per category in precheck
...
The cache is function local and testing against a large database
indicates 10k questions is a large category. Restore already
uses MEMORY_EXTRA and that will have enough space for the couple
of megabtyes a local sql hash will introduce.
2013-07-16 08:04:16 +10:00
Andrew Nicols
bcdda24942
MDL-40165 Backup: Split out test classes into multiple files
2013-06-13 08:58:02 +01:00
Rex Lorenzo
5899b85fd6
MDL-34275 - Use default copyright license when restoring files
2013-05-07 09:10:30 +01:00
Davo Smith
d8613ef967
MDL-31484 backup - repeated restores with anonymised users now works correctly
2013-01-16 11:45:43 +08:00
Mark Nielsen
ac1f907e77
MDL-34837 backup: Restore does not fail when some courses have the same name
2012-10-15 17:18:34 +08:00
Eloy Lafuente (stronk7)
edeb39d44a
Merge branch 'MDL-33812-master' of git://github.com/FMCorz/moodle
2012-09-04 00:19:53 +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
Frederic Massart
61d71da334
MDL-33812 Backup: Added some upgrade information about the changes
2012-09-03 14:12:28 +08:00
Frederic Massart
e2aebdc928
MDL-33812 Backup: Respect of backup_auto_keep
2012-09-03 14:12:28 +08:00
Jason Ilicic
b3e10b89e9
MDL-34529: Fixed ordering of course sections when performing import/restore by adding the sort parameter.
2012-08-20 14:00:45 +02: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
Petr Skoda
c52551dc3c
MDL-8249 localise standard role names and descriptions if empty
2012-07-06 08:22:34 +02:00
David Mudrák
83b2cc562d
MDL-33430 Set newcontextid and newitemid when sending file to the pool
2012-06-21 02:31:18 +02:00
David Mudrák
4b6b087faf
MDL-33430 Do not restore aliases yet, stash them for later processing
2012-06-21 02:29:34 +02:00
Eloy Lafuente (stronk7)
f0852f474b
MDL-33630 backup: invalidate ids cache on temptable drop.
2012-06-10 04:57:40 +02:00
Aparup Banerjee
380d472314
Merge branch 'wip-mdl-27120' of git://github.com/rajeshtaneja/moodle
2012-05-30 14:22:34 +08:00
Marina Glancy
f1bd371c79
MDL-33373 fixed bug in backup of files as a regression from MDL-28666
2012-05-30 10:11:41 +08:00
Rajesh Taneja
e7b24943e6
MDL-27120 backup: fixed docblock and code cleanup
2012-05-29 16:22:45 +08:00
Tony Levi
7f98b12f91
MDL-27120: Cache DB operations in restore_dbops
2012-05-29 14:44:07 +08:00
Dongsheng Cai
6723372514
MDL-28666 Extends repository to support references
...
1. Allow repository to create references to external contents
2. Extends files API to handle file references
3. Generic file caching
4. Backup/restore file references
5. Download external contents if repository uninstalled
6. Allow filepicker to display iframe
7. PHPUnit test suits
2012-05-21 11:57:51 +08:00
Dan Poltawski
e0ed91ba39
Merge branch 'MDL-29262' of git://github.com/stronk7/moodle
...
Conflicts:
version.php
2012-04-23 12:42:16 +08:00
Eloy Lafuente (stronk7)
749fd68cbb
MDL-29262 restore: Clean controller obj form DB once finished ok
2012-04-23 00:14:32 +02:00
Eloy Lafuente (stronk7)
6e803b9fe4
MDL-29262 backup: Clean controller obj form DB once finished ok
2012-04-23 00:03:37 +02:00
Petr Skoda
bb7898c6ab
MDL-32569 convert remaining backup tests and drop old simpletests
2012-04-21 16:24:33 +02:00
Petr Skoda
a66b2ae4f4
MDL-32434 deprecate drop_temp_table() in favour of drop_table()
2012-04-15 12:23:15 +02:00
Petr Skoda
4b02743182
MDL-32149 improve testcase naming and list in config file
2012-04-03 22:30:57 +02:00
Petr Skoda
1cbf2a20ca
MDL-32149 setUp() and tearDown() are supposed to be 'protected', add missing blog testcase
2012-04-03 22:30:56 +02:00
Petr Skoda
dbf5a44798
MDL-32149 add backup tests and dropping of extra tables
2012-04-03 22:30:54 +02:00
Eloy Lafuente (stronk7)
2ed7cc2730
Merge branch 'w10_MDL-31301_m23_textlibcleanup' of git://github.com/skodak/moodle
2012-03-06 16:06:53 +01:00
Petr Skoda
6f3451e540
MDL-31301 remove all uses of moodle_strtolower() and deprecated it
2012-03-03 11:46:26 +01:00
Eloy Lafuente (stronk7)
ac6dc09c26
MDL-29248 backup: take rid of the setting and code handling the 'private' user filearea
2012-03-01 13:09:47 +01:00
Eloy Lafuente (stronk7)
f88224624d
MDL-29248 backup: delete user_files settings, lang strings and uses
2012-03-01 13:09:47 +01:00
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