Skip to content

Backend Rewrite - AutoTimetable RouteΒ #1087

@jason4193

Description

@jason4193

Things to implement

  • route to connect frontend Autotimetabler with params
const autoParams: (string | number)[] = [
  startHour: number,
  endHour: number,
  selectedDaysStr: string,
  breaksBetweenClasses: number,
  daysAtUni: number
  mode: enum ['hybrid', 'in person', 'online'] # adding
];

Steps of data transfer

  1. fronted send the constraint params and timetable_id to backend
  2. backend get the selected Course Id from the timetable_id
  3. backend call the graphql to get all the classes on each course
  4. backend parse the class data into format for auto-timetable
  5. backend request doAuto
  6. backend get back the response
  7. backend parse the response and update course in one transaction
  8. backend return to frontend OK to invalidate the react query

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions