Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1
    • 2.1
    • Questions, Quiz
    • None
    • MOODLE_21_STABLE
    • MOODLE_21_STABLE
    • MDL-27639_wip
    • Hide
      1. Create a course in Moodle 2.0 with quizzes using as many question types as possible.
      2. Attempt the quizzes as various students, getting the questions right/wrong/partially right, etc. and leaving some attempts half complete.
      3. Backup this course.
      4. Restore this course into Moodle 2.1.

      Verify that each attempt is in the equivalent state in the 2.1 and 2.0 course.

      Show
      Create a course in Moodle 2.0 with quizzes using as many question types as possible. Attempt the quizzes as various students, getting the questions right/wrong/partially right, etc. and leaving some attempts half complete. Backup this course. Restore this course into Moodle 2.1. Verify that each attempt is in the equivalent state in the 2.1 and 2.0 course.

    Description

      Just needs to grad all the data for each old question_session and the associated states into in-memory arrays, load the associated questions and quiz settings info, and then use question/engine/upgrade/upgradelib.php code to transform it an write it to the database.

      To see the kind of input data the upgrade code needs, see, for example, https://github.com/timhunt/Moodle-Question-Engine-2/blob/qe2_wip/question/type/shortanswer/db/simpletest/testupgradelibnewqe.php#L348. I don't see any problems doing that in the restore code.

      Attachments

        Issue Links

          Activity

            People

              timhunt Tim Hunt
              timhunt Tim Hunt
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Sam Hemelryk Sam Hemelryk
              Safat Shahin, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie, Tim Hunt, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                1/Jul/11