Searching students in grade view is broken
Searching student relies using the grade navigation in the grade view relies on the front-end having the full student data available for each submission. This data is requested from the api/exams/<exam_id>/?only_metadata=true
endpoint in the Grade
component, but since commit a8e6e837, this no longer returns the full student data per submission, just the submission id and student id.
Note: this only applies to exams which have anonymous grading set to false.
I see two options:
- Add the student names back to the exam metadata endpoint. (How large is the performance impact?)
- Add a separate API call in the grade navigation endpoint once it is focused, which loads the student names. Could add
only_metadata
option to theapi/submissions/<exam_id>
endpoint, which excludes solution data.
Edited by Hugo Kerstens