-
Notifications
You must be signed in to change notification settings - Fork 29
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
feat: RateMyProf integration #494
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
functions/src/constants.ts
Dismissed
|
||
export const RMP_GRAPHQL_URL = 'https://www.ratemyprofessors.com/graphql'; | ||
export const RMP_UVIC_ID = 'U2Nob29sLTE0ODg='; | ||
export const RMP_AUTH_TOKEN = 'dGVzdDp0ZXN0'; |
Check failure
Code scanning / CodeQL
Hard-coded credentials Critical
authorization header
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.
These aren't actually credentials, the auth token is public and not cycled on ratemyprof's end. Weird it's needed at all, but blame them.
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.
this looks sweet 👀 def super useful!
where did you find info on the API? I can't seem to find any kind of schema or type on the kind of info we could request, was just wondering if you ran into anything
{meetingTimes.map( | ||
(m, i) => | ||
m.instructors.length > 0 && ( | ||
<Td> |
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.
getting error for missing key here
@@ -77,7 +91,7 @@ export function Schedule({ meetingTimes }: ScheduleProps): JSX.Element { | |||
{/* TODO: verify if we can safely exclude this for most cases */} | |||
{/* <Th>Schedule Type</Th> */} | |||
<Th>Location</Th> | |||
<Th>Instructors</Th> | |||
{professor.length > 0 && <Th>Instructors</Th>} |
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.
I'm confused on the professor
variable here, since it's still an array will all profs from that course no? why not use m.instructors length directly?
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.
I'll clean this up
Since it's graphql, it has a schema built in. Nothing is public, but when you put |
Description
Closes #436
Screenshots
Checklist
General Comments