CSCI128 / 101GradingScript

Script designed to move grades between Gradescope and Canvas
https://gradingscript.trihardstudios.com/#/
0 stars 0 forks source link

[BUG] If Assignment ID Changes on Canvas after Config File is Pulled, Posting Will Fail #41

Open gregbell26 opened 1 year ago

gregbell26 commented 1 year ago

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

  1. Create an assignment on Canvas.
  2. Create a config file for the script.
  3. Delete and recreate the same assignment on Canvas.
  4. 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