30 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
ea6c56437a MDL-46455 restore: Implement restore of standard logstore
Using standard subplugin support, this commits implements
the restore of logstore subplugins in general and the
standard logstore is particular. Notes:

- TODO: Decide about these 2 pending issues:

1) Some logs are already created (events fired) by the restore process itself. Every time
   an API is used and it fires events... corresponding (and actual!)
   logs are created. We need to prevent restore to duplicate them (or,
   alternatively, stop firing events when restore is happening).

2) There are 2 pieces of information in the logs that, right now, can
   not be restored, because the process does not know enough to be able
   to remap that information to its new counterparts. We are talking
   about objectid and other columns. So we need to specify, in some way
   understandable by restore, to which existing mappings they correspond
   to.
2015-10-09 16:23:09 -07:00
Eugene Venter
96e339cc58 MDL-49356 restore: handle course completion if still not defined
Before this patch course completion only was restored if, appart from
other conditions... we were restoring to new course, never to existing
one.

This relaxes a bit that condition in order to be able to restore to an
existing course not having any course completion setting defined, so no
conflict will happen ever.
2015-03-17 00:34:09 +01:00
Frederic Massart
167eb0335b MDL-46696 backup: Include grade history in backups 2014-09-01 17:29:24 +08:00
sam marshall
38674ef91a MDL-44070 Conditional availability enhancements (4): backup
Implements backup and restore for the new conditional availability
data. This includes:

* Backup and restore of new field.
* Restore updates IDs in conditions, as required.
* Restore converts availability data from legacy (Moodle 2.6) backups.
* Unit tests for all this.
2014-04-07 20:11:41 +01:00
Ankit Agarwal
cebfb9ec9f MDL-44370 calendar: Add support for restoring calendar log rules 2014-03-04 16:13:25 +08:00
Yuliya Bozhko
bd0d2bdcc9 MDL-39558 badges: Add backup/restore of manually awarded badges 2013-07-03 09:36:45 +08:00
Yuliya Bozhko
2832093f53 MDL-39558 badges: Add backup/restore to course badges 2013-07-03 09:35:06 +08:00
Andrew Davis
afd2efc0e8 MDL-36090 core_grade: added logging of overriding of student grades 2013-06-05 08:51:53 +08:00
David Mudrák
2c1426743a MDL-33430 Add process_file_aliases_queue restore step to the final task
This execution step tries to actually restore all aliases that were
stashed in the file aliases queue.
2012-06-21 02:31:26 +02:00
Ankit Agarwal
336d8c49f4 MDL-33465 course: 'Course view section' logs should use sectionid instead of section number to generate action urls' 2012-06-05 09:33:45 +08:00
Rossiani Wijaya
6b0e5f4d6d MDL-32766 course view section log: fixed the forth param for restore rule specification to use course_section 2012-05-30 15:41:07 +12:00
Rossiani Wijaya
15a848ba90 MDL-32766 course log: specify log for viewing course section 2012-05-22 13:50:40 +08:00
Eloy Lafuente (stronk7)
71cbb2516b MDL-24419 (6): Backup and restore fixes and improvements
- annotate used grouping
- reorganize restore methods
- roll availability dates
- observe $CFG->enableavailability
- observe $CFG->enablegroupmembersonly
- TODO: 2 TODOs
2012-05-17 03:58:51 +02:00
Dan Marsden
cbed6472b4 MDL-32102 Course completion - only restore user completion if not adding to existing course 2012-04-23 11:30:11 +12:00
David Mudrak
f9dab4bed2 MDL-30982 Restore moodle2 files - phpDocs categorization 2012-02-27 11:59:43 +01:00
Eloy Lafuente
0f66acede0 MDL-22135 - logs restore, course and activities + cleanup 2010-11-11 19:46:04 +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
bd39b6f226 backup MDL-22254 Added backup and restore of course completion information 2010-09-17 03:04:55 +00:00
Andrew Davis
9a20df967d backup MDL-23362 updated gradebook backup and restore based on Eloy's feedback 2010-09-15 09:35:28 +00:00
Andrew Davis
0f94550c3c backup MDL-23362 another commit of gradebook restore 2010-09-01 04:46:23 +00:00
Andrew Davis
c4d2c74594 backup MDL-23362 another intermediate commit for gradebook backup 2010-08-31 03:51:10 +00:00
Eloy Lafuente
5095f3258f MDL-23479 backup - activity completion and availability implemented 2010-08-30 00:24:51 +00:00
Andrew Davis
d34aa23839 backup MDL-23362 first commit for gradebook backup 2010-08-27 08:19:04 +00:00
Eloy Lafuente
5ab8d2de39 MDL-21432 backup - let the tasks to use the steps 2010-07-27 23:40:35 +00:00
Eloy Lafuente
b8e455a789 MDL-23478 backup - restore blocks (instances an positions) 2010-07-24 22:56:30 +00:00
Eloy Lafuente
3223cc95c6 MDL-21432 backup - restore sections 2010-07-22 00:23:52 +00:00
Eloy Lafuente
395dae3084 MDL-21432 backup - restore course/tags/rolenames/files 2010-07-21 15:52:03 +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
864842aa83 MDL-21432 backup - all sort of restore tasks 2010-07-06 22:28:38 +00:00