Bug: 2.0 to 2.0 restore: random questions

Bug: 2.0 to 2.0 restore: random questions

Elena Ivanova發表於
Number of replies: 4

We have just encountered rather weird thing:

1) This first step is probably irrelevant.
We had a 1.9.8 course. It included quizzes with questions populated randomly from Category A. 
Question categories were created right in the question bank (not on the quiz level), and the course  had a lot of them.
Students took the quiz and got a grade.
This 1.9 course had been copied with user data, and upgraded in-place to  2.0.1+ (Build: 20110217). Everything looks fine in the upgraded course.

2) Then we backed up the 2.0 course and included user data again.
The course was restored to another 2.0 instance.
In that restored course, when we click on "Review attempt" for a student, we see not the questions from Category A that he had answered.
We see questions from some Category B instead. 驚訝的
So it looks like that student was presented with completely different set of questions then he saw in reality.

We restored the course twice - same result: wrong questions from wrong category are shown under Review Attempt.
If I Preview or take the quiz, I see correct questions from Category A.

Any ideas? Anyone encountered similar issue before?
Or may be you have a 2.0 course with random questions to test?
I will try to replicate on a smaller sample.

評比平均分數: -
In reply to Elena Ivanova

Re: Bug: 2.0 to 2.0 restore: random questions

Tim Hunt發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片

If you could make a small backup file that we can restore to reproduce the problem, that would be fantastic.

In reply to Tim Hunt

Re: Bug: 2.0 to 2.0 restore: random questions

Elena Ivanova發表於

Ok, we've investigated more, and we believe that the issue started out in 1.9 instance.

Here is a ticket with description and proposed solution MDL-26981

We will be running  running through the restore process again on the same courses to see how it works.
I will post an update here, and if I will be able to replicate it on a small sample, add to the ticket.

In reply to Elena Ivanova

Re: Bug: 2.0 to 2.0 restore: random questions

Tim Hunt發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片

Looks like you have done some good analysis. Hopefully Eloy (backup and restore expert) can give an opinion soon.

In reply to Tim Hunt

Re: Bug: 2.0 to 2.0 restore: random questions

Elena Ivanova發表於

ok, we have applied our fix to restore_recode_answer (see MDL-26981) and run through the backup/restore again.
Everything worked this time 微笑