turnitin / moodle-plagiarism_turnitin

Turnitin Plagiarism plugin for Moodle
http://www.turnitin.com
45 stars 65 forks source link

Quiz attempt grades may be incorrectly set #623

Closed jonof closed 1 year ago

jonof commented 2 years ago

This bug can occur in two observed ways:

  1. Worst case: by causing incorrect grades to be calculated for a student's quiz attempt, hopefully nonsensical enough to be obvious.
  2. Best case: by doing nothing while logging an error in the Turnitin activity log:

    2022-06-15 16:00:36 +1000 (API_ERROR) - There was an error when trying to get a submission from Turnitin File: /.../question/engine/datalib.php | Line: 478 | Message: Coding error detected, it must be fixed by a programmer: Failed to load questions_usage_by_activity 3 | Code: 0

The first situation is disturbing because opening a similiarity report and closing it can be enough to corrupt students' calculated total grades without it being particularly obvious to the teacher what has happened. A Quiz regrade is then needed to bring totals back into order. This happens because quiz_attempts and question_usages table IDs likely overlap such that a given quiz_attempt ID is also a valid question_usages ID.

The second situation means that at worst Grademark-given grades are not applied the student's response.

dwinn commented 1 year ago

Hi @jonof ,

Thank you for your contribution. We will aim to get this released shortly.