CSAllenISD / 2023-ISP-ModelScheduler

Other
9 stars 3 forks source link

The post request is wrong for /scheduler #147

Open ryanhallock opened 1 year ago

ryanhallock commented 1 year ago

Issue Currently, the course sent to the backend and the period that correlates to that is sent to the backend are wrong.

Endpoint

Why is the issue a problem While the database shows that the sent period correlates to the 5th period of World History, instead, the id should correlate with the first period of World History. This breaks demand calculation.

Reproduction steps

  1. Move a course like World History into the first period.
  2. Check the payload body of the request.
  3. Search the database with the sectionID sent.
  4. sectionID is sometimes wrong inside the correlating period.

Photos: image image

ryanhallock commented 1 year ago

I am considering changing the post request to use courseCode instead of sectionId.