Skip to content
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

Search NEU eventual notification backend needs data to notify #5

Open
NEUDitao opened this issue Jan 15, 2021 · 2 comments
Open

Search NEU eventual notification backend needs data to notify #5

NEUDitao opened this issue Jan 15, 2021 · 2 comments

Comments

@NEUDitao
Copy link

NEUDitao commented Jan 15, 2021

On the new updater, we should send bodies of the following form to https://searchneu.com/api/notify_users:

// records of hash -> search query info
{
  updatedCourses: CourseNotificationInfo[];
  updatedSections: SectionNotificationInfo[];
}

Where CourseNotificationInfo and SectionNotificationInfo are defined as

type CourseNotificationInfo = {
  courseCode: string;
  courseHash: string;
  term: string;
  numberOfSectionsAdded: number;
  campus: string;
};

type SectionNotificationInfo = {
  courseCode: string;
  sectionHash: string;
  term: string;
  seatsRemaining: number;
  crn: string;
  campus: string;
};

and courseCode is subject + classID (for instance, CS 2500)

(subject to change, mostly when @gamburgm and @dajinchu stop talking about Alignable)

@NEUDitao NEUDitao changed the title WIP: Search NEU eventual notification backend needs data to notify Search NEU eventual notification backend needs data to notify Jan 16, 2021
@gamburgm
Copy link
Member

Can we rename one of courseCode and courseHash?

@gamburgm
Copy link
Member

also, by campus do you mean host or cps / law?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants