-
Notifications
You must be signed in to change notification settings - Fork 14
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: migrate to Anteater API #505
Conversation
aight see y'all in 50 years |
The numbers in the course popup are supposed to be average review rating. I need to fix that. edit: #506 |
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.
Since the headers are all the same for the API calls made on the backend, I think it would make sense to have then defined as a constant somewhere that could be imported.
One interesting thing I noticed is that for COMPSCI 103, a TA seems to be listed as an option for a professor you can review? They seem to have been mapped to a different professor (Yue Liu, a lecturer in finance) who has the same name on WebSOC. Another case of this is Zhaoxia Yu with the TA of COMPSCI 112 in Fall 2021.
Everything else seems to work.
Good call, will do that.
|
Upon further review I don't think we can actually do anything at the moment; especially in the first case there are many other TAs who share the WebSoc name and we can't actually know who that name refers to from the data we have. Since this instructor doesn't exist in prod, do you think we should remove their entry from the new API? The professor from the second case does exist in prod and choosing 2021 Fall in prod on that professor's page will also show CS 112, so I don't think there's much we can do. |
Would it not be possible to filter out the TAs for discussion sections? Since AFAIK every discussion will have the TA(s) and the professor listed as instructors which can be compared with the lecture to determine which is the professor and which are the TA(s) since the lecture will only have the professor listed as an instructor. |
Good catch; yes, this should be possible because we filter for instructors based on the instructor tables, but the instructor data we return is taken from the row in the section table. So we should be able to do this without truncating data from the return object. I'm working on implementing this right now, will let you know once the data has been updated. |
(aka the PR of shame, because in an ideal world API-Next would not have happened. I suppose that's just part of the learning process.)
Description
peterportal-api-next-types
and set up automatic codegen using openapi-typescript.pnpm install
, this will fetch the OpenAPI spec from the API and automatically generate TS types. That way no additional source control is necessary if the API spec changes, though prerequisite trees are still declared locally because our OpenAPI solution doesn't support recursive types.websoc-fuzzy-search
.Known Issues
The course popup seems to show
the number of reviews per professorsome function of the review score of the professor?? but also has typography with "/ 5.0" after the number of reviews. Not sure which is the intended behavior but this could be confusing. See screenshots for details.Screenshots
New label and no graphic for empty search bar.
(blink and you'll miss it!)
The actual no results label.
Course popup with professor full names rather than shortened names.
Courses page with professor full names. Might need restyling because professor full names can be very long?
Steps to verify/test this change:
Final Checks: