Commit Graph

423 Commits

Author SHA1 Message Date
Ankit Agarwal 8a3894de89 MDL-42427 backup: Fix undefined errors during automated backups 2013-10-23 12:10:14 +08:00
Mark Nelson 36cfbfe841 MDL-42201 backup: introduced new automatic backup state 2013-10-21 11:49:07 +08:00
Damyon Wiese e81aa9e8e6 Merge branch 'MDL-37877-m24' of git://github.com/ankitagarwal/moodle into MOODLE_24_STABLE 2013-10-15 16:58:39 +08:00
Dan Poltawski 8a2e491ee7 Merge branch 'MDL-42209_m24' of https://github.com/markn86/moodle into MOODLE_24_STABLE 2013-10-15 14:43:21 +08:00
Ankit Agarwal 3a6857090e MDL-37877 backup: Fix issues with zipping of large files
Files bigger than 4GB is not supported at this point. Zip archiver doesn't know about it and always returns true. We need to verify if it is a valid file or not and delete if not
Also delete the backup file immediately if anything goes wrong anywhere in backup. We don't want to use up space
2013-10-15 13:18:46 +08:00
FilipBenco 6da08c0e2c MDL-42209 backup: fixed wrong icon being displayed when restoring course 2013-10-14 14:33:19 +08:00
Mark Nelson 6c2d9137b3 MDL-37181 backup: stopped setting the status of unscheduled backups to skipped 2013-10-09 14:16:03 +08:00
Eloy Lafuente (stronk7) 6726f0073e Merge branch 'MDL-41728-m24' of git://github.com/sammarshallou/moodle into MOODLE_24_STABLE 2013-09-17 21:18:48 +02:00
sam marshall 0cddce2c56 MDL-41728 Backup: Unnecessary use of in_array in base_plan
Remove unnecessary use of in_array which causes performance problems
when loading the plan for very large courses.
2013-09-11 14:38:37 +01:00
sam marshall 097abcc59c MDL-41163 Restore: Large course restore timeout on schema page 2013-09-05 17:17:42 +01:00
Damyon Wiese 08d19eaeb9 Merge branch 'MDL-41401-24' of git://github.com/danpoltawski/moodle into MOODLE_24_STABLE 2013-08-27 15:08:43 +08:00
Nadav Kavalerchik 9684aab5a2 MDL-37211 Backup: Migrate hard-coded strings to language string for the table header labels on the restore page 2013-08-27 11:58:04 +08:00
Mark Nelson 0534f2dd9b MDL-36126 backup: ensure the backup_logs message does not exceed the maximum allowed length in the DB 2013-08-26 20:40:46 +08:00
Dan Poltawski 95899cab2f MDL-41401 backup: fix misnamed test method 2013-08-23 15:10:45 +08:00
Dan Poltawski 9ed79d1801 MDL-40585 fix trailing whitespace 2013-07-23 13:35:16 +08:00
Dan Poltawski 066c7987b2 Merge branch 'MDL-40585_24' of git://github.com/mr-russ/moodle into MOODLE_24_STABLE 2013-07-23 13:35:07 +08:00
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
Russell Smith 1bdb3dcd2b MDL-40585 backup: cache XML parent paths
For $this->groupedpaths, using a key is faster as there is
no need to do in_array searches.

Parent cache allows dirname calls to be substantially reduced.
2048 was chosen as a cache size as this class operates on chunks
of the restore at a time, 8k questions produces a parent cache of
about 500 paths and uses 300K of memory.  Scaling up to 2048 will
use about 1.2M of RAM for really large restores.  This is acceptable
for the 48% function call reduction and the 10% runtime improvement
seen.
2013-07-15 19:23:13 +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
Dan Poltawski b2c04be9c5 MDL-35603 backup: fix coding style issues
Conflicts:
	backup/util/ui/restore_ui_components.php
2013-04-02 14:34:29 +08:00
Rex Lorenzo 1936dbe341 MDL-35603 - Backup - Course import/restore max results
* Unified UI for import and restore course search
2013-03-28 15:24:33 -07:00
Eloy Lafuente (stronk7) efdb676e84 MDL-37893 Take rid of old comment. 2013-02-12 10:04:28 +01:00
Eloy Lafuente (stronk7) 553e19b443 Merge branch 'MDL-37893-grouped-empty_24' of git://github.com/mudrd8mz/moodle into MOODLE_24_STABLE 2013-02-12 10:04:12 +01:00
Eloy Lafuente (stronk7) 04116863fb MDL-37893 Always notify pending starts before dispatching chunk 2013-02-08 01:48:32 +01:00
David Mudrák 176f08e90c MDL-37893 Allow elements with no final tags to form a grouped path 2013-02-08 01:48:32 +01:00
David Mudrák 8ab37b5fca MDL-37893 Add unit test to demonstrate the issue 2013-02-08 01:48:32 +01:00
David Mudrák e57a314de8 MDL-37870 Fix the number of parameters when calling the parent constructor 2013-02-05 10:19:52 +01:00
Davo Smith d8613ef967 MDL-31484 backup - repeated restores with anonymised users now works correctly 2013-01-16 11:45:43 +08:00
David Monllao 520a601f14 MDL-30899 moodle-core-notification Adding close button title for accessibility 2012-12-17 16:27:01 +08:00
Petr Škoda f48902e139 MDL-29442 add missing utf-8 to entity html encoding and decoding 2012-12-09 18:22:16 +01:00
Frederic Massart d9f95015f5 MDL-36777 usability: Theming fixes on backup steps 2012-11-30 16:53:39 +08:00
Frederic Massart c384744304 MDL-36638 usability: Core changes for new quiz/question icons 2012-11-29 12:41:29 +08:00
Petr Škoda 4c21b22043 MDL-36753 fix invalid sectionid in backup tests 2012-11-21 12:43:55 +01:00
Dan Poltawski 3b92a11098 Merge branch 'MDL-36315' of git://github.com/stronk7/moodle 2012-11-01 10:02:47 +08:00
Eloy Lafuente (stronk7) d4d7984308 MDL-36315 backup: reduce the DST tests failing-window
This reduces the period of time that some of the unit tests
for calculate_next_automated_backup() are failing right now
(from 1week to just some hours around the DST changes).

Note it's not the final solution because they will still fail
when New_York or Brussels DST changes are about to happen, but
to get this completely fixed we'll need to wait to switch from
current custom TZ/DST support to PHP built-in one.
2012-11-01 02:40:56 +01:00
Dan Poltawski 890988221c Merge branch 'MDL-35117-master' of git://github.com/FMCorz/moodle 2012-10-29 14:03:57 +08:00
Dan Poltawski 3dce356ac4 Merge branch 'MDL-34837-master' of git://github.com/FMCorz/moodle 2012-10-29 13:55:06 +08:00
Frederic Massart db6c8b82d2 MDL-35117 backup: Read information from backup XML file when removing excess backups 2012-10-18 15:13:50 +08:00
Sam Hemelryk 58e033193f Merge branch 'MDL-32148-master' of git://github.com/StudiUM/moodle 2012-10-16 11:16:33 +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
Marina Glancy 384c3510a9 MDL-35339 Course functions unit tests 2012-10-15 14:08:14 +08:00
Jean-Philippe Gaudreau d3ea132783 MDL-32148 Backup: Improved check for last backup successful or not 2012-10-05 10:23:42 -04:00
Frederic Massart 1c1ae7a7a6 MDL-32148 Backup: Simplified and improved submitted patch 2012-10-05 10:10:36 -04:00
Jean-Philippe Gaudreau 914442ae29 MDL-32148 Backup: Adding config settings for skipping courses in automated backups 2012-10-05 10:10:36 -04: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
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 a173b52da0 MDL-28346 Backup: Backup does not fail when a file is missing 2012-09-03 14:13:11 +08: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 05e521c9bc MDL-28346 Backup: Added new status 'warning' for backup result 2012-09-03 14:13:11 +08:00