Tim Hunt
0366ef262a
MDL-28035 problems with upgrade/restore of ataptive quizzes from 2.0
...
There were two main problems:
1. The unit tests for upgrading adaptive quiz attempts had slighly the
wrong $expectedqa, and so matching that the upgrade was doing the wrong
thing in certain situations. The main issue was that it was setting
-_try = 1 on the first step, which broke the penalty calculation when
the quiz was regraded. There were also some other subtleties with
incrementing -_try that were not right before.
2. It was possible in 2.0 and earlier for two question_states to get the
same seq_number, and restoring 2.0 backups was rashly assuming that that
was unique.
2011-06-27 17:10:02 +01:00
Eloy Lafuente (stronk7)
8edbfba909
Merge branch 'MDL-24594_wip' of git://github.com/timhunt/moodle
2011-06-20 12:48:55 +02:00
Tim Hunt
f263d4935f
MDL-27913 Stray whitespace in backup.
2011-06-17 19:37:20 +01:00
ppichet
2a6c5c52ee
MDL-24594 qtype_multichoice should allow images in the choices.
...
This change was massively re-worked by Tim Hunt to update Pierre Pichet's original patch for Moodle 2.0 to work in Moodle 2.1.
2011-06-17 18:41:13 +01:00
Tim Hunt
98a3898efc
MDL-27849 fix qtype_multianswer attempt data restore (2.1 -> 2.1).
...
Also, refactor calculatedmulti restore to avoid duplication.
2011-06-14 15:17:50 +01:00
Tim Hunt
18ab06bac5
MDL-27639 restore of attempt data from 2.0 - first attempt.
...
This is now at the stage where it mostly appears to work, at lease on
one backup file.
2011-06-14 12:11:19 +01:00
Eloy Lafuente (stronk7)
25b4558c40
MDL-27822 rename new methods
2011-06-14 00:33:16 +02:00
Tim Hunt
be7b29eff6
MDL-27822 old module version should be available in restore_activity_structure_step::define_structure()
2011-06-14 00:30:30 +02:00
Tim Hunt
030fba85f1
MDL-20636 qe restor make method protected (Eloy review comment B1).
2011-06-06 17:26:33 +01:00
Tim Hunt
54771d89d1
Merge remote-tracking branch 'moodle/master' into MDL-20636_master_new_question_engine
...
Conflicts:
lib/db/upgrade.php
mod/quiz/lib.php
2011-06-06 17:14:59 +01:00
Eloy Lafuente (stronk7)
c44299c172
MDL-27636 restore - add support for after_restore() to plugins. Credit goes to Mark Nielsen. Thanks!
2011-05-26 02:37:16 +02:00
sam marshall
5e0dae125d
MDL-27532 Add backup support for course report per-course data
2011-05-18 14:56:11 +01:00
Tim Hunt
a2ac234956
MDL-20636 Merge remote-tracking branch 'moodle/master' into upgrade
...
Conflicts:
lib/filestorage/file_storage.php
mod/quiz/attemptlib.php
mod/quiz/lib.php
mod/quiz/mod_form.php
mod/quiz/report/overview/overview_table.php
mod/quiz/report/overview/report.php
mod/quiz/report/responses/report.php
mod/quiz/report/responses/responses_table.php
mod/quiz/report/statistics/db/install.xml
mod/quiz/report/statistics/qstats.php
mod/quiz/report/statistics/report.php
mod/quiz/report/statistics/statistics_question_table.php
mod/quiz/report/statistics/statistics_table.php
mod/quiz/report/statistics/version.php
mod/quiz/review.php
mod/quiz/reviewquestion.php
mod/quiz/startattempt.php
mod/quiz/styles.css
mod/quiz/view.php
question/type/essay/questiontype.php
question/type/match/backup/moodle2/backup_qtype_match_plugin.class.php
question/type/match/backup/moodle2/restore_qtype_match_plugin.class.php
question/type/numerical/display.html
question/type/numerical/questiontype.php
question/type/questiontype.php
question/type/random/questiontype.php
question/type/shortanswer/questiontype.php
theme/base/style/question.css
2011-05-11 20:29:49 +01:00
Tim Hunt
c749527bec
MDL-20636 Finished backup and restore of attempt data. Yay
2011-05-05 21:26:25 +01:00
Tim Hunt
7bbe96dc16
MDL-27394 Moodle 2.0 backup and restore may randomise the order of multichoice/numerical/shortanswer answers
2011-05-05 19:17:41 +01:00
Tim Hunt
9e06daf251
MDL-27394 Moodle 2.0 backup and restore may randomise the order of multichoice/numerical/shortanswer answers
2011-05-05 18:53:43 +01:00
Tim Hunt
d6522c33a1
MDL-20636 Fix qtype backup issues.
2011-05-03 17:53:12 +01:00
Tim Hunt
bea1a6a73a
MDL-20636 Work-in-progress on quiz attempt backup and restore.
2011-04-28 21:21:43 +01:00
Tim Hunt
d1de533164
MDL-20636 qtype_numerical oops, I deleted a function from the wrong place. Fix.
2011-04-28 20:22:45 +01:00
Tim Hunt
5d2465c3f4
MDL-20636 numerical qtype: assorted changes
...
1. database upgrade to merge instructions into the questiontext field,
and remove the UNITDISPLAY option.
2. Changes to the validation in deferred feedback mode, so students
are warned about incomplete answers.
3. Using this to wark students if they enter an answer that is not
recognised as a number.
2011-04-28 20:06:47 +01:00
Dan Marsden
7fd4730805
Plagiarism MDL-26939 - missing return
2011-03-24 14:46:35 +13:00
Dan Marsden
571ae25286
MDL-21432 backup - add plagiarism plugin hooks for course and module
2011-03-14 11:44:14 +01:00
sam marshall
69ae86ea5f
MDL-26606 Theme backup: Minor improvement to make it more consistent with other backup
2011-03-10 12:57:27 +00:00
Eloy Lafuente (stronk7)
4b43b1074f
backup MDL-26572 add new param to plugin and subplugin functions
2011-03-07 00:16:25 +01:00
Eloy Lafuente (stronk7)
07a36633f9
Merge branch 'MDL-26572_backup_sum' of git://github.com/andyjdavis/moodle
2011-03-07 00:10:16 +01: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
Andrew Davis (andyjdavis)
98529b009b
backup MDL-26572 made restore store null instead of 0
2011-03-04 12:14:00 +08:00
Tim Hunt
515e6b97b5
MDL-20636 Restore of question hints, and some other minor clean-up.
2011-03-02 17:43:02 +00:00
Tim Hunt
beca0d8daf
MDL-20636 Fix backup and restore issues found during testing.
2011-03-02 17:42:54 +00:00
Tim Hunt
f3ca24e418
MDL-20636 Update quiz and questions backup and restore.
...
This does not include user data yet, and it needs more testing.
2011-03-02 17:42:51 +00:00
Eloy Lafuente (stronk7)
e4f72d1428
MDL-26513 restore - observe target site restrictmodulesfor setting
2011-02-21 15:58:20 +01:00
Petr Skoda
3bc644ce70
Merge branch 'MDL-26405_take_two' of git://github.com/stronk7/moodle
2011-02-16 20:24:54 +01:00
Eloy Lafuente (stronk7)
0149e6c713
MDL-26405 restore - dispatch able to skip branches
...
after this change any restore_structure_step processor
method is able to instruct the dispatcher about to skip
any path below it. Until now, we were doing the checks on
each child processor method, but that was inneficient and
prone to errors (easy to miss the check in a child so some
orphaned piezes of restore may be causing mess here and there).
Once implemented, it's simlpy a matter of the parent deciding if
all its children must be processed or no. Easier for developers
and also small speed improvement because avoids unnecesary
dispatching/processing to happen.
Surely only will be used in parts of core, like in question_categories,
saving 50-60 sub processors (sub-paths) to be dispatched.
2011-02-16 19:13:56 +01:00
Petr Skoda
c9e12de4e3
Merge branch 'MDL-26405_qtype_exception_wip' of git://github.com/stronk7/moodle
2011-02-16 09:59:14 +01:00
Eloy Lafuente (stronk7)
0ff7159edb
MDL-26405 restore - incorrectly thrown exception
2011-02-15 23:28:00 +01:00
Petr Skoda
251e5a8b62
Merge branch 'MDL-22146_backup_course_format_wip' of git://github.com/stronk7/moodle
2011-02-14 21:08:19 +01:00
Eloy Lafuente (stronk7)
d84fe4c8a6
MDL-26399 restore - fix oracle/mssql problems
2011-02-14 19:42:57 +01:00
Eloy Lafuente (stronk7)
a90659d6ba
DL-22146 backup & restore - course formats remaining hooks
2011-02-11 00:07:32 +01:00
Eloy Lafuente (stronk7)
e5169d5229
MDL-22146 backup & restore - copy/paste fix
2011-02-10 15:36:03 +01:00
Eloy Lafuente (stronk7)
4ab111b9bf
MDL-22146 backup & restore - extending the backup plugins API
2011-02-10 12:14:00 +01:00
Eloy Lafuente (stronk7)
1e37c39180
MDL-22146 backup & restore - extending the restore plugins API
2011-02-10 11:34:41 +01:00
Eloy Lafuente (stronk7)
4fda584f28
MDL-22146 backup & restore - course formats first cut
2011-02-10 10:37:36 +01:00
Eloy Lafuente
77151075dc
NOBUG: Changed to _sql() variant to properly use sql_compare_text(). Kudos to aparup for latest improvs. in where_clause()
2010-11-24 14:55:29 +00:00
Eloy Lafuente
f81f513325
MDL-25161 restore - keep course->numsections unmodified
2010-11-15 17:10:11 +00:00
Eloy Lafuente
0f66acede0
MDL-22135 - logs restore, course and activities + cleanup
2010-11-11 19:46:04 +00:00
Andrew Davis
46505ee75e
message MDL-24694 removed references to user->emailstop. the column itself will be removed in a later version
2010-11-05 08:04:40 +00:00
Eloy Lafuente
b31763f8b3
NOBUG: Clean already implemented TODO
2010-11-01 15:55:59 +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
9f68f2d5a6
MDL-24817 backup - added support for decode contents in plugins (and qtypes)
2010-11-01 15:49:01 +00:00
Eloy Lafuente
e3c2e1b2f9
MDL-24921 backup - on restore create missing sections up to max one to avoid some warns
2010-10-28 22:38:03 +00:00