Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-25617

Backup/restore of extra_question_fields broken in 2.0

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • 3.5
    • 2.0, 3.5
    • Questions
    • MOODLE_20_STABLE, MOODLE_35_STABLE
    • MOODLE_35_STABLE
    • Hide

      New feature:

      0. In an empty course

      1. Create TWO short-answer questions (one with "Case sensitivity" = No and another with "Case sensitivity" = Yes) and ONE multi-choice questions

      2. Backup the course and restore it into to a new one (will be named with "copy 1" suffix).

      3. Make sure restored questions are equal to original ones. All answers, percentages, feedback and, specially, the "Case sensitivity" detail.

      Old backups:

      4. Restore the attached "MDL-25617-old-nu.mbz" into a new empty course.

      5. Verify it contains a quiz ("Couple of questions") with 2 questions. Go to the question bank ("Por defecto en Couple of questions") and find the 2 questions of the quiz there.

      6. Repeat steps 2 & 3 above (with the MDL-25617 restored course)

      Bonus:

      7. Uncompress (tar -xvzf or any compatible tool) the backup generated in step 6 (use an empty folder to copy the backup and uncompress there to avoid polluting your desktop). And verify that the questions.xml file has the same structure than the attached one (that corresponds to the old backup). Note that differences in IDs are allowed, but the structure should be 100% the same.

      8. As student, make some attempt in any of the restored courses and verify that the questions work ok, no errors...

      Show
      New feature: 0. In an empty course 1. Create TWO short-answer questions (one with "Case sensitivity" = No and another with "Case sensitivity" = Yes) and ONE multi-choice questions 2. Backup the course and restore it into to a new one (will be named with "copy 1" suffix). 3. Make sure restored questions are equal to original ones. All answers, percentages, feedback and, specially, the "Case sensitivity" detail. Old backups: 4. Restore the attached " MDL-25617 -old-nu.mbz" into a new empty course. 5. Verify it contains a quiz ("Couple of questions") with 2 questions. Go to the question bank ("Por defecto en Couple of questions") and find the 2 questions of the quiz there. 6. Repeat steps 2 & 3 above (with the MDL-25617 restored course) Bonus: 7. Uncompress (tar -xvzf or any compatible tool) the backup generated in step 6 (use an empty folder to copy the backup and uncompress there to avoid polluting your desktop). And verify that the questions.xml file has the same structure than the attached one (that corresponds to the old backup). Note that differences in IDs are allowed, but the structure should be 100% the same. 8. As student, make some attempt in any of the restored courses and verify that the questions work ok, no errors...

      Check that those components of extra_question_fields work consistently in Moodle 2.0 and patch if necessary:

      • getting and saving question options
      • delete question
      • backup and restore
      • XML import and export

      P.S. Tim: I'm creating this for our review, but if there should be any code to add/patch (which is highly possible for backup/restore, unless you upgraded it youself) then the patch will be provided to you.

            oa_sychev Oleg Sychev
            oa_sychev Oleg Sychev
            Tim Hunt Tim Hunt
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            David Monllaó David Monllaó
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.