If an assignment is recreated or moved, the ID on Canvas is not guaranteed to remain the same. Because of this, grading posting will fail with a 400 HTTP status code as the script has an outdated ID.
Steps to recreate
Create an assignment on Canvas.
Create a config file for the script.
Delete and recreate the same assignment on Canvas.
Attempt to post grades for that assignment.
Solution
During assignment selection, the assignment should be verified to be writable on Canvas. If it is not, ask the user what to do: ignore the assignment, or reenter the id (Override the error). This relates to #37 and should use components from that system.
Acceptance Criteria
[ ] Does not duplicate work from #37.
[ ] Assignments are verified to be writable during the assignment selection phase of the program.
[ ] User is able to choose an action to take from Ignore and Override
[ ] Ignore option removes the assignment from the list of assignments to be graded.
[ ] Override option allows the user to enter the ID of the assignment
[ ] Override option causes config file to be updated (May need to move to separate issue)
Description
Issue
If an assignment is recreated or moved, the ID on Canvas is not guaranteed to remain the same. Because of this, grading posting will fail with a 400 HTTP status code as the script has an outdated ID.
Steps to recreate
Solution
During assignment selection, the assignment should be verified to be writable on Canvas. If it is not, ask the user what to do: ignore the assignment, or reenter the id (Override the error). This relates to #37 and should use components from that system.
Acceptance Criteria
Ignore
andOverride
Ignore
option removes the assignment from the list of assignments to be graded.Override
option allows the user to enter the ID of the assignmentOverride
option causes config file to be updated (May need to move to separate issue)