When a teacher incorrectly enters a grade for an assignment and then reverts the status to "Ungraded" in the gradebook the submissions API still shows that assignment as graded even though it's not. Although there is no score, the expected behavior would be for the workflow_state to revert as well.
Steps to reproduce:
Enter a grade for an assignment
Change that assignment back to "Ungraded"
Query the submissions API /api/v1/courses/:course_id/students/submissions
Expected behavior:
Assignment that was changed back to "Ungraded" also reverts from having a workflow_state of graded to whatever the previous state was, either submitted, unsubmitted or pending_review
Summary:
When a teacher incorrectly enters a grade for an assignment and then reverts the status to "Ungraded" in the gradebook the submissions API still shows that assignment as graded even though it's not. Although there is no score, the expected behavior would be for the
workflow_state
to revert as well.Steps to reproduce:
/api/v1/courses/:course_id/students/submissions
Expected behavior:
Assignment that was changed back to "Ungraded" also reverts from having a
workflow_state
ofgraded
to whatever the previous state was, eithersubmitted
,unsubmitted
orpending_review
Actual behavior:
Assignment stays in the
graded
stateAdditional notes: