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

LASTATTEMPT quiz not using latest attempt to grade

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.0.5, 2.1.2
    • 2.0.3, 2.1.1, 2.2
    • Quiz
    • MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • MOODLE_20_STABLE, MOODLE_21_STABLE
    • Hide

      Testing is most needed in 2.0:

      1. Create a quiz set to grading method first, or last, attempt.
      2. Do lots of attempts as one student.
      3. Try to persuade your database to return records in an arbitrary order. I think Postgres does this after you have deleted enough rows from a table and vacuummed.
      4. Regrade the quiz, and make sure the final grade is computed correctly.

      Show
      Testing is most needed in 2.0: 1. Create a quiz set to grading method first, or last, attempt. 2. Do lots of attempts as one student. 3. Try to persuade your database to return records in an arbitrary order. I think Postgres does this after you have deleted enough rows from a table and vacuummed. 4. Regrade the quiz, and make sure the final grade is computed correctly.

      The quiz grade calculation in LASTATTEMPT mode uses the last on the list of attempts it is given, not the last by data.

      This is resolved by checking the attempt is newer than the best so far, so latest attempts are used regardless of order.

      Patch incoming with github link

            timhunt Tim Hunt
            tlevi Tony Levi
            Martin Dougiamas Martin Dougiamas
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Michael de Raadt Michael de Raadt
            Votes:
            2 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.