26 Commits

Author SHA1 Message Date
Tim Hunt
d0cfa81312 MDL-28192 local_qeupgradehelper fix typo. 2011-07-07 11:25:39 +01:00
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
Tim Hunt
08c458d10f MDL-27877 question engine progress bars not working. 2011-06-16 18:55:10 +01:00
Tim Hunt
ba5a29f528 MDL-27852 local_qeupgradehelper convertquiz.php script was broken. 2011-06-14 15:59:25 +01:00
Eloy Lafuente (stronk7)
82b25e8e71 MDL-20636 fix local/qeupgradehelper perms 2011-06-06 23:28:50 +02:00
Tim Hunt
4c5743343f MDL-20636 make qe upgrade tests independent of html2text details.
Based on Eloy's change, but refactored to be slightly nicer.
2011-06-06 17:05:54 +01:00
Tim Hunt
b360806d5c MDL-20636 update local/qeupgradehelper/README.txt. 2011-05-27 20:58:18 +01:00
Tim Hunt
85714b36c2 MDL-20636 implement the shell of the system for completing the upgrade using cron. 2011-05-27 20:46:37 +01:00
Tim Hunt
1027301215 MDL-20636 Implement the ability to only upgrade some of the quiz attempts during the main upgrade. 2011-05-27 19:44:53 +01:00
Tim Hunt
61eca136c1 MDL-20636 remove the pretendupgrade script that does not work. 2011-05-27 18:10:15 +01:00
Tim Hunt
1da821bbde MDL-27649 support question variants as a first-class concept in the question engine. 2011-05-26 21:23:56 +01:00
Tim Hunt
f55192bf08 MDL-20636 improve the fomatting of the generated code. 2011-05-26 19:31:24 +01:00
Tim Hunt
e0736817f0 MDL-20636 fix some more coding style issues in the question code. 2011-05-20 18:50:41 +01:00
Tim Hunt
c35bf0e6b1 MDL-20636 local_qeupgradehelper use a textarea in extracttestcase for easier copy/paste. 2011-05-19 20:32:44 +01:00
Tim Hunt
2db6fbad97 MDL-20636 make upgradehelper able to reset badly upgraded attempts
Obviously, these are the ones where it most important to be able to redo the upgrade.
2011-05-19 20:27:12 +01:00
Tim Hunt
0c404c4211 MDL-20636 QE upgrade helper: Make resetting quiz attempts work. 2011-05-13 16:46:47 +01:00
Tim Hunt
d02ac70862 MDL-20636 Add warning about very old attempts to listpreupgrade.php. 2011-05-13 11:57:26 +01:00
Tim Hunt
1ab31a1b92 MDL-20636 Make extracttestcase.php work after the upgrade too. 2011-05-13 11:42:37 +01:00
Tim Hunt
2d43a02323 MDL-20636 Make extracttestcase work. 2011-05-13 11:34:18 +01:00
Tim Hunt
39759ac468 MDL-27408 fix a few minor bugs with the upgrade from 2.0.
More testing, and adaptive mode, still to come.
2011-05-12 21:03:24 +01:00
Tim Hunt
cd300cf34c MDL-20636 Initial pass at converting this code to Moodle 2.0 style. 2011-05-11 15:32:26 +01:00
Tim Hunt
cca6d63252 MDL-20636 Refactor the various list pages a bit. 2011-05-11 15:32:24 +01:00
Tim Hunt
5ab62d9d3d MDL-20636 listpreupgrade done. 2011-05-11 15:32:22 +01:00
Tim Hunt
22cd62caa9 MDL-20636 Cleanup in the upgradehelper plugin. 2011-05-11 15:32:20 +01:00
Tim Hunt
92dcdc88df MDL-20636 Implement lots of the post-upgrade functionality for the upgrade helper plugin. 2011-05-11 15:32:18 +01:00
Tim Hunt
d98389ffed MDL-20636 Start of work on a local plugin to help with the question engine upgrade on large sites. 2011-05-11 15:32:16 +01:00