Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.9.7, 3.10.4, 3.11, 4.0
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
MDL-71984-master -
Description
For historical reasons, which I don't entirely remember, certain things in the quiz are not logged. However, having had to investigate some potential incidents recently, I now think they should be:
- Quiz autosave - I think originally we did not make this log, because auto saves were not 'real' actions by the user. However, autosave running is good evidence that the student is actively working on the quiz (a save is only done after a response is changed), so I think this is worth logging.
- Quiz processing responses - currently processattempt.php only logs if it changes the state of the attept (e.g. Submit all and finish). In other cases it does not, on the theory that we are about to redirect the user back to attempt.php, and that will log. However, it will make things clearer if processattempt.php also logs when it just saves responses for the user.
- While checking out the other two, I also noticed that the user clicking on "Try another question like this one" (when that is enabled) is not logged. That is a significant user action, so definitely should be.
Edit: I notice that attempt_viewed does not log the page number. It should. (Probably change fire_attempt_viewed_event to take an optional $page = null argument.)