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

Ordering question type (qtype_ordering) breaks existing submissions after changing grading type

    • MOODLE_404_STABLE, MOODLE_405_STABLE
    • Hide
      1. Create a course with a quiz and add a qtype_ordering question to it. Add a few items to it, but leave everything else unchanged.
      2. Add a student to the course and make it attempt the quiz. Remember the order of the items in the submission.
      3. Go to the question settings and change the "Grading type" to "Relative to correct position".
      4. Go to quiz results and press the "Regrade all" button.
      5. Check the existing submission.
        • confirm the order of the items is unchanged, the grade is updated according to the new grading type.
      Show
      Create a course with a quiz and add a qtype_ordering question to it. Add a few items to it, but leave everything else unchanged. Add a student to the course and make it attempt the quiz. Remember the order of the items in the submission. Go to the question settings and change the "Grading type" to "Relative to correct position". Go to quiz results and press the "Regrade all" button. Check the existing submission. confirm the order of the items is unchanged, the grade is updated according to the new grading type.
    • Hide

      Fails against automated checks.

      Checked MDL-81840 using repository: https://github.com/klao/moodle.git

      Should these errors be fixed?

      Built on: Fri 29 Nov 2024 07:25:42 AM UTC

      Show
      Fails against automated checks. Checked MDL-81840 using repository: https://github.com/klao/moodle.git main [branch: MDL-81840 | CI Job ] Error: The MDL-81840 branch at https://github.com/klao/moodle.git is very old (>60 days ago). Please rebase against current main. Should these errors be fixed? Built on: Fri 29 Nov 2024 07:25:42 AM UTC

      Changing the Grading type on a live qtype_ordering question and regrading existing submissions completely breaks them. The order of the items in the submissions is basically randomly shuffled.

      Steps to reproduce:

      1. Create a course with a quiz and add a qtype_ordering question to it. Add a few items to it, but leave everything else unchanged.
      2. Add a student to the course and make it attempt the quiz. Remember the order of the items in the submission.
      3. Go to the question settings and change the "Grading type", say to "Relative to correct position".
      4. Go to quiz results and press the "Regrade all" button.
      5. Check the existing submission.

      Expected behavior: The order of the items is unchanged, the grade is updated according to the new grading type.

      Observed behavior: The order of the items is changed randomly.

        1. change_grading_type.png
          change_grading_type.png
          23 kB
        2. original_attempt.png
          original_attempt.png
          48 kB
        3. regrade.png
          regrade.png
          14 kB
        4. updated_attempt.png
          updated_attempt.png
          48 kB

            klao Mihaly Barasz
            olivabigyo olivabigyo
            Andrew Gosali Andrew Gosali
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 12 minutes
                1h 12m

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