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

Backup/restore of extra_question_fields broken in 2.0

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0, 3.5
    • Fix Version/s: 3.5
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      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...
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Pull Master Branch:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              oa_sychev Oleg Sychev
              Reporter:
              oa_sychev Oleg Sychev
              Peer reviewer:
              Tim Hunt
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              David Monllaó
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/May/18