backend
backend copied to clipboard
Open endpoint to easily regrade submissions
Currently there is no endpoint. If we want to regrade all submissions belong to a mission we need to use the following call:
Cadet.Assessments.Submission
|> where(assessment_id: <id>)
|> Repo.all()
|> Enum.each(&Cadet.Autograder.GradingJob.force_grade_individual_submission/1)
perhaps its really time for an admin portal haha so everyone doesn't have to go through jiachen :-)
Yes, let's think of this in our module post-mortem. We need to gather requirements for an admin portal.
:+1:
This is partially done now, just missing an endpoint to regrade all submissions of an assessment.