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

Import of calculated questions broken in WebCT import format

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.6.6, 2.7.3
    • 2.6.5, 2.7.2, 2.8
    • Questions
    • MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • Hide

      Going to Question Bank -> Import, import the attached sample_calculated_webct.txt file selecting WebCT for file format.
      Verify that a calculated question is imported correctly without any error message or warning even with debugging message set to DEVELOPER level
      Edit the question to verify everything was correctly imported

      • name: calculated: Square area
      • question text: Find the area in m2 of a square with sides of length {l} m. Verify the exponent HTML tag in question text is correctly imported
      • answer 1 formula: {l}*{l} grade: 100% tolerance: 0 type: relative answer display:1 format: decimal
      • there are 10 datasets and last wild car {l} value is 39

      Attempt the question and verify it is working as expected

      Show
      Going to Question Bank -> Import, import the attached sample_calculated_webct.txt file selecting WebCT for file format. Verify that a calculated question is imported correctly without any error message or warning even with debugging message set to DEVELOPER level Edit the question to verify everything was correctly imported name: calculated: Square area question text: Find the area in m2 of a square with sides of length {l} m. Verify the exponent HTML tag in question text is correctly imported answer 1 formula: {l}*{l} grade: 100% tolerance: 0 type: relative answer display:1 format: decimal there are 10 datasets and last wild car {l} value is 39 Attempt the question and verify it is working as expected

      In MDL-30001 the webct question import format was fixed for Moodle 2.0 files API and question engine 2. But I have broken the import of calculated questions in the process. Unfortunately there was no calculated question in the sample file and no test about the import of such questions, so the regression was not noticed. This issue is about correcting the problem and providing tests so that it is not broken in the future.

            jmvedrine Jean-Michel Vedrine
            jmvedrine Jean-Michel Vedrine
            Tim Hunt Tim Hunt
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Zachary Durber Zachary Durber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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