softwareconstruction240 / autograder

Autograder for BYU's CS 240 Chess project
https://cs240.click
2 stars 2 forks source link

Backend: Retrieve Course related IDs dynamically. #392

Open Fiwafoofa opened 3 weeks ago

Fiwafoofa commented 3 weeks ago

Overview

Currently, there are several values ID values for courses, assignments, and rubric that are hard coded in CanvasIntegrationImpl.java and PhaseUtils.java (and maybe other locations?). Allow for these values to be achieved dynamically, whether from API calls or from the run configuration, to reduce trivial maintenance of the autograder.

Implementation

Ask Michael :P, but likely a series of API calls to Canvas is required. Some potentially useful ones may be

As of Spring Term, the course id is 26141. As of Summer Term, the course id is 26822 (This may or not be relevant, but personally when making a request I have to prepend 740700000000 to the course id to make valid requests when testing.)

You'll likely want to experiment with Postman to make this process easier.

19mdavenport commented 1 week ago

The course-settings branch already has a basis for this, I just never got around to completely finishing it