Handle multiple submissions by the same student
-
Minimal course of action: sort submissions by (student.id, copy_id)
.
Better interim solution:
group the submissions returned by/exams/<exam_id>
according to the studentflatten this data structure when showing number validation in/students
, after flattening sort bycopy_id
in/grade
: only ever submit feedback to the first entry in each list, query and display images corresponding to all submissions by the same student at once.
As discussed today we are going to change the database schema. This changes make a Submission
instance really a submission: everything that the student handed in at the end of the exam. We are going to introduce a Copy
table, that is the connection between the pages and submissions. One submission can have multiple copies, but every submission has one student.
Edited by Hugo Kerstens