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
Eloy Lafuente (stronk7)
8786deb033
MDL-37877 backup: fix incorrect backported code.
2013-10-16 00:32:00 +02: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
Matt Petro
a24c22cd12
MDL-41660 backup ims-cc: Use correct temp directory
2013-09-25 02:16:05 +02: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
Dan Poltawski
e9ea8e9b63
Merge branch 'MDL-41254-m24' of git://github.com/micaherne/moodle into MOODLE_24_STABLE
2013-09-09 18:04:48 +08:00
sam marshall
097abcc59c
MDL-41163 Restore: Large course restore timeout on schema page
2013-09-05 17:17:42 +01:00
Michael Aherne
aadac9873b
MDL-41254 backup Raise time and memory limit in precheck.
2013-09-02 14:06:44 +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
Dan Poltawski
433bba6b2f
Merge branch 'MDL-36126_m24' of https://github.com/markn86/moodle into MOODLE_24_STABLE
2013-08-26 14:25:42 +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
Damyon Wiese
59c487a7f3
Merge branch 'MDL-27595-2_24' of https://github.com/bostelm/moodle into MOODLE_24_STABLE
2013-08-20 13:53:52 +08:00
Russell Smith
5821a7c5f1
MDL-40893 backup: cache question answers for performance
...
To constrain memory we only cache a single question's answers.
A quiz must display this many answers, so it will not result
in undue memory pressure.
We now match on the full answer text rather than the first 255
characters. This removes the risk of matching questions with the
same start.
2013-08-16 10:06:59 +10:00
Henning Bostelmann
0efd7e9d2e
MDL-27595 backup: allow course import with warnings
...
Proceed with import if warnings are found, but display the warnings afterwards
2013-08-15 11:22:19 +01: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
Marina Glancy
2e6cc99352
Merge branch 'MDL-40165-m24' of git://github.com/andrewnicols/moodle into MOODLE_24_STABLE
2013-06-18 12:56:20 +10:00
Andrew Nicols
bcdda24942
MDL-40165 Backup: Split out test classes into multiple files
2013-06-13 08:58:02 +01:00
Sam Hemelryk
2a31efea1b
Merge branch 'MDL-39505-migrate-file-backport_24' of git://github.com/mudrd8mz/moodle into MOODLE_24_STABLE
2013-06-11 17:16:15 +12:00
Dan Poltawski
e9ec512875
Merge branch 'w24_MDL-28394_m24_enrolrestore' of git://github.com/skodak/moodle into MOODLE_24_STABLE
2013-06-10 12:17:14 +08:00
Petr Škoda
24c954c181
MDL-28394 fix enrolment method restore logic
...
This patch fixes:
* missing enrolment methods after 1.9 backup restore - defaults are added
* enrolment methods are restored only when users option is enabled
* manual enrolment override option is disabled if users not available
2013-06-07 10:04:06 +02:00
Petr Škoda
d4eb62d66b
MDL-37780 fix 1.9 restore on windows
2013-06-06 12:26:29 +02:00
Andrew Davis
4dd5ce20ff
MDL-36090 core_grade: added logging of overriding of student grades
2013-06-05 08:58:16 +08:00
Eloy Lafuente (stronk7)
1a77c6c263
Merge branch 'MDL-34275-24' of git://github.com/danpoltawski/moodle into MOODLE_24_STABLE
2013-05-07 19:14:58 +02:00
Rex Lorenzo
5899b85fd6
MDL-34275 - Use default copyright license when restoring files
2013-05-07 09:10:30 +01:00
Maria Torres
242ef4590f
MDL-39169: Now the question's tags are added in backup/restore options
2013-05-06 15:42:21 +01:00
Dan Poltawski
ef9c4b6ef5
Merge branch 'MDL-39000-m24' of git://github.com/sammarshallou/moodle into MOODLE_24_STABLE
2013-04-15 08:30:16 +01:00
sam marshall
58404f0ab4
MDL-39000 Conditional activities: Section condition restore errors
2013-04-09 17:35:39 +01:00
Dan Poltawski
99a66861b7
Merge branch 'MDL-37676_24_STABLE' of git://github.com/appalachianstate/moodle into MOODLE_24_STABLE
2013-04-08 14:07:04 +08: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
Eric Merrill
59c5f4cd35
MDL-25631 backup Decoupling legacy files from course config settigs. If they are present, they will be restored.
2013-03-26 17:02:51 -04:00
Fred Woolard
7a257bb0f7
MDL-37676 Use course grade category if mapping fails for manual grade items
2013-03-22 08:27:21 -04:00
Jean-Michel Vedrine
c16e466de2
MDL-33424 Images missing when restoring a 1.9 backup
2013-03-09 13:41:03 +01:00
Sam Hemelryk
c7746a0f7f
MDL-37224 backup-import: better handling of search button
2013-02-21 08:24:20 +13:00
Sam Hemelryk
f3e186ab55
MDL-37224 backup: fixed bug when searching for a course to import
2013-02-19 09:32:22 +13: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
David Mudrák
9f887c6c79
MDL-37774 Make moodle1_file_manager::migrate_directory() support trailing slash in rootpath
...
As the $rootpath is concatenated with the $relpath, we would end with a
path like course_files//file.txt. Such a path is detected as not-valid
later and an error would be thrown.
So the patch makes sure that the trailing slash is cut off and a
debugging for the developer is displayed.
2013-02-08 12:53:23 +01:00
David Mudrák
8616f9380c
MDL-37774 Add unit test to illustrate the problem with the trailing slash
...
The patch introduces two new tests for moodle1_file_manager::migrate_directory().
The second test with the trailing slash reveals the trouble here.
The expected behaviour is that the method would deal with the trailing
slash. Debugging message for the developer should be displayed though.
2013-02-08 12:53:23 +01:00