Closed Normanwqn closed 6 months ago
@james-perretta I implemented a draft change to reflect what was mentioned here
@james-perretta I implemented another draft to use _GroupHGDataConfig
to handle test student groups with finish_grading
status with no handgrading results :)
@Normanwqn Thanks! Taking a look now
@james-perretta I took some advice and experimented with match
to hopefully have a clearer mapping between the code and the cases. :)
@james-perretta I merged in the helper functions. You may take a look when you got time :)
@Normanwqn Looks good! Let me figure out why CI isn't running...
In the meantime, make sure that pycodestyle (pycodestyle autograder
) and mypy (bash run_mypy.sh
) come up clean if you haven't already.
Going to try closing and reopening to get CI to run.
Looks like that didn't work. @Normanwqn, can you open a fresh PR for this?
To facilitate fixing this bug where we needed an efficient way to tell whether a student group's has submitted any non-rejected submissions, we introduced a new field
has_autograded_submissions
in data returned byListHandgradingResultsView
Django Rest API.has_autograded_submissions
is true if the student group has at least one submission on the autograder whose status isag_models.Submission.GradingStatus.finished_grading
, and false otherwise, when the student group has no submissions or all their submissions have been rejected.Previous unit tests have been modified to accommodate this change. New unit tests and interfaces have been written to test student groups who only have rejected submissions.