backend icon indicating copy to clipboard operation
backend copied to clipboard

Open endpoint to easily regrade submissions

Open geshuming opened this issue 5 years ago • 4 comments

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)

geshuming avatar Sep 21 '19 05:09 geshuming

perhaps its really time for an admin portal haha so everyone doesn't have to go through jiachen :-)

jiachen247 avatar Sep 23 '19 03:09 jiachen247

Yes, let's think of this in our module post-mortem. We need to gather requirements for an admin portal.

martin-henz avatar Sep 23 '19 06:09 martin-henz

:+1:

jiachen247 avatar Sep 23 '19 06:09 jiachen247

This is partially done now, just missing an endpoint to regrade all submissions of an assessment.

angelsl avatar Aug 09 '20 23:08 angelsl