Issue Details (XML | Word | Printable)

Key: MDL-5482
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Tim Hunt
Reporter: Paulo Matos
Votes: 1
Watchers: 8
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Restoring of user attempts in quiz module (attached solution)

Created: 11/May/06 10:29 PM   Updated: 07/May/08 08:34 PM
Return to search
Component/s: Quiz
Affects Version/s: 1.5.4
Fix Version/s: 1.6.7, 1.7.5, 1.8.6, 1.9.1

File Attachments: 1. Text File moodle-1.6.2plus-5482-Restoring_of_user_attempts_in_quiz_module.patch (6 kB)
2. Text File moodle-1.6.4plus-MDL5482-Restoring_of_user_attempts_in_quiz_module.patch (6 kB)
3. Text File moodle-1.6.4plus-MDL5482-Restoring_of_user_attempts_in_quiz_module_v2.patch (8 kB)
4. Text File moodle-1.6.4plus-MDL5482-Restoring_of_user_attempts_in_quiz_module_v3.patch (8 kB)
5. Text File moodle-1.8.4plus-MDL5482-Restoring_of_user_attempts_in_quiz_module.patch (7 kB)
6. Text File restore_quiz_attempts_183+.patch.txt (8 kB)
7. Text File restore_quiz_attempts_19.patch.txt (8 kB)

Environment: All
Issue Links:
Duplicate
 
Relates
 

Participants: Martin Dougiamas, Paulo Matos and Tim Hunt
Security Level: None
Resolved date: 07/May/08
Affected Branches: MOODLE_15_STABLE
Fixed Branches: MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE


 Description  « Hide
* Introduction:

This issue AFAIK was discussed on MDL-3159, and reported on bugs #4054, #4139 and #4608.

At quiz changelog, appears the following entry:

2005-06-06 Monday 04:25 gustav_delius * restorelib.php: Restoring of user attempts and states disabled for now, see MDL-3159

I found a post at moodle forums, see:

http://moodle.org/mod/forum/discuss.php?d=30923

This post has a version of restorelib.php with attempts restore implemented.

I've used this modified version verifying the code against latest stable CVS version which at this time is 1.58.2.6 2006/02/14 22:55:11, for a mass restore due to an hard disk crash.

* Now, some interesting numbers involved on this work:

- 6989 users;
- 773 courses;
- 385 quiz;
- 9041 questions;
- 21025 attempts;

and 72 long hours recovering it :(.

All restored quizzes seem to be OK. For now, there were no problems detected among dozens of hand verifications. If some problem appears, I'll report them here.

Hope Gustav can integrate this code, will surely be very appreciated by moodle community.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Michael Blake made changes - 21/Aug/06 05:05 PM
Field Original Value New Value
Reporter anonymous [ anonymous ]
Tim Hunt made changes - 23/Aug/06 07:31 PM
Status In Progress [ 3 ] Open [ 1 ]
Tim Hunt made changes - 01/Sep/06 07:55 AM
Fix Version/s 1.7 [ 10120 ]
Description * Introduction:



This issue AFAIK was discussed on MDL-3159, and reported on bugs #4054, #4139 and #4608.

At quiz changelog, appears the following entry:

2005-06-06 Monday 04:25 gustav_delius * restorelib.php: Restoring of user attempts and states disabled for now, see MDL-3159



I found a post at moodle forums, see:

http://moodle.org/mod/forum/discuss.php?d=30923



This post has a version of restorelib.php with attempts restore implemented.



I've used this modified version verifying the code against latest stable CVS version which at this time is 1.58.2.6 2006/02/14 22:55:11, for a mass restore due to an hard disk crash.



* Now, some interesting numbers involved on this work:



- 6989 users;

- 773 courses;

- 385 quiz;

- 9041 questions;

- 21025 attempts;



and 72 long hours recovering it :(.



All restored quizzes seem to be OK. For now, there were no problems detected among dozens of hand verifications. If some problem appears, I'll report them here.



Hope Gustav can integrate this code, will surely be very appreciated by moodle community.



Regards,



Paulo Matos
* Introduction:

This issue AFAIK was discussed on MDL-3159, and reported on bugs #4054, #4139 and #4608.

At quiz changelog, appears the following entry:

2005-06-06 Monday 04:25 gustav_delius * restorelib.php: Restoring of user attempts and states disabled for now, see MDL-3159

I found a post at moodle forums, see:

http://moodle.org/mod/forum/discuss.php?d=30923

This post has a version of restorelib.php with attempts restore implemented.

I've used this modified version verifying the code against latest stable CVS version which at this time is 1.58.2.6 2006/02/14 22:55:11, for a mass restore due to an hard disk crash.

* Now, some interesting numbers involved on this work:

- 6989 users;
- 773 courses;
- 385 quiz;
- 9041 questions;
- 21025 attempts;

and 72 long hours recovering it :(.

All restored quizzes seem to be OK. For now, there were no problems detected among dozens of hand verifications. If some problem appears, I'll report them here.

Hope Gustav can integrate this code, will surely be very appreciated by moodle community.
Martin Dougiamas made changes - 24/Sep/06 11:53 AM
Reporter Imported [ imported ] Paulo Matos [ paulo.matos ]
Martin Dougiamas made changes - 24/Sep/06 11:54 AM
Comment [ This is the first bug I've seen where the comments didn't fully come over from the old system.

Those comments, and the patches that Paulo created are available here:

    http://moodle.org/bugs/bug.php?op=show&bugid=5482 ]
Tim Hunt made changes - 04/Oct/06 01:48 AM
Link This issue is duplicated by MDL-4139 [ MDL-4139 ]
Tim Hunt made changes - 04/Oct/06 01:49 AM
Link This issue is duplicated by MDL-4054 [ MDL-4054 ]
Tim Hunt made changes - 04/Oct/06 01:49 AM
Link This issue is duplicated by MDL-3159 [ MDL-3159 ]
Tim Hunt made changes - 04/Oct/06 01:51 AM
Link This issue is duplicated by MDL-4608 [ MDL-4608 ]
Tim Hunt made changes - 01/Nov/06 07:39 PM
Fix Version/s 1.7 [ 10120 ]
Fix Version/s 1.7.1 [ 10151 ]
Paulo Matos made changes - 22/Nov/06 01:11 PM
Martin Dougiamas made changes - 17/Jan/07 12:00 PM
Fix Version/s 1.7.2 [ 10174 ]
Fix Version/s 1.7.1 [ 10151 ]
Paulo Matos made changes - 30/Jan/07 10:54 PM
Paulo Matos made changes - 22/Mar/07 02:45 AM
Link This issue has been marked as being related by MDL-6502 [ MDL-6502 ]
Martin Dougiamas made changes - 30/Mar/07 04:52 PM
Fix Version/s 1.7.2 [ 10174 ]
Fix Version/s 1.7.3 [ 10212 ]
Martin Dougiamas made changes - 11/Oct/07 03:23 PM
Fix Version/s 1.7.4 [ 10243 ]
Fix Version/s 1.7.3 [ 10212 ]
Tim Hunt made changes - 01/Nov/07 01:12 AM
Link This issue is duplicated by MDL-7980 [ MDL-7980 ]
Tim Hunt made changes - 02/Nov/07 07:41 PM
Attachment restore_quiz_attempts_19.patch.txt [ 12230 ]
Tim Hunt made changes - 02/Nov/07 08:31 PM
Martin Dougiamas made changes - 12/Jan/08 05:41 PM
Fix Version/s 1.7.5 [ 10251 ]
Fix Version/s 1.7.4 [ 10243 ]
Paulo Matos made changes - 06/May/08 06:02 PM
Tim Hunt made changes - 07/May/08 08:34 PM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 1.6.7 [ 10250 ]
Fix Version/s 1.8.6 [ 10270 ]
Fix Version/s 1.9.1 [ 10240 ]