Moodle
  1. Moodle
  2. MDL-27974

Minor problems with GIFT import and export

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.1
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide

      1) Login as teacher on qa.moodle.net
      2) In Features Demo course, export the questions in GIFT format
      3) Attempt to import the downloaded file into another class

      Show
      1) Login as teacher on qa.moodle.net 2) In Features Demo course, export the questions in GIFT format 3) Attempt to import the downloaded file into another class
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE
    • Pull from Repository:
    • Pull Master Branch:
    • Rank:
      17927

      Description

      On qa.moodle.net, I exported the 4 questions in the question bank. The matching question has a blank question for which the answer is chat. When this is exported to GIFT nothing is there and thus it breaks the file on import. See below what gets exported:

      // question: 2 name: Moodle activities
      ::Moodle activities::[html]<div class\="text_to_html">Match the activity to the description.</div>{
      =<div class
      ="text_to_html">An activity supporting asynchronous discussions.</div> -> Forum
      =<div class
      ="text_to_html">A teacher asks a question and specifies a choice of multiple responses.</div> -> Choice
      =<div class
      ="text_to_html">A bank of record entries which participants can add to.</div> -> Database
      =<div class
      ="text_to_html">A collection of web pages that anyone can add to or edit.</div> -> Wiki
      = -> Chat
      }

      I'm not sure how you want to handle this scenario. Perhaps do a quick check that the question is not empty and if it is export a single   or something. This seems like a somewhat unlikely case but since it came up during QA testing I'm setting the priority to major. Peace - Anthony

        Issue Links

          Activity

          Hide
          Anthony Borrow added a comment -

          here is the screen shot of when I went to import the GIFT file

          Show
          Anthony Borrow added a comment - here is the screen shot of when I went to import the GIFT file
          Hide
          Tim Hunt added a comment -

          This is a feature of the Moodle matching qtype. The question can have extra distractors that don't match any question step. The the bug is on import. Should be fixable.

          Show
          Tim Hunt added a comment - This is a feature of the Moodle matching qtype. The question can have extra distractors that don't match any question step. The the bug is on import. Should be fixable.
          Hide
          Anthony Borrow added a comment -

          Thanks Tim - it is a good feature. We will just have to ensure that the export and import know what to do. Peace - Anthony

          Show
          Anthony Borrow added a comment - Thanks Tim - it is a good feature. We will just have to ensure that the export and import know what to do. Peace - Anthony
          Hide
          Eloy Lafuente (stronk7) added a comment -

          Looks good, thanks!

          Show
          Eloy Lafuente (stronk7) added a comment - Looks good, thanks!
          Hide
          Eloy Lafuente (stronk7) added a comment -

          Passing test without further action. This will be tested by MDLQA-1039 once this meets upstream.

          Show
          Eloy Lafuente (stronk7) added a comment - Passing test without further action. This will be tested by MDLQA-1039 once this meets upstream.
          Hide
          Eloy Lafuente (stronk7) added a comment - - edited

          All git & cvs servers have been updated with these cool changes, so closing, many thanks!

          Show
          Eloy Lafuente (stronk7) added a comment - - edited All git & cvs servers have been updated with these cool changes, so closing, many thanks!

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: