-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Populate individual sections with titles and prerequisites as needed #28
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love the changes so far! Suggested some structural changes which are just opinions on what the backend vs frontend should do + having uniformity in what we crawl.
Suggestions for new Course and Section types just to re-iterate :
export type Section = [
crn: string,
meetings: Meeting[],
creditHours: number,
scheduleTypeIndex: number,
campusIndex: number,
attributeIndices: number[],
gradeBaseIndex: number,
fullName: string,
prerequisites: Prerequisites
];
export type Course = [
fullName: string,
sections: Record<string, Section>,
description: string | null
];
src/steps/parse.ts
Outdated
|
||
// Store course ID with section number to obtain prerequisites for all sections | ||
// These sections will be stored as pseudo-courses with CRNs included for prerequisite attaching | ||
sectionCrns.push(`${courseName} <${courseReferenceNumber}>`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes. Can you instead create objects here which store the courseName and courseReferenceNumber. We wouldn't need to parse this string in downloadPrereqs either then.
Resolves gt-scheduler/website#267