-
Notifications
You must be signed in to change notification settings - Fork 24
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
Show latest term if term indicated by URL is invalid #112
Conversation
snowmonkey18
commented
Dec 31, 2024
- It used to be loading forever if the term indicated by URL is invalid
- This is helpful for the new "View in Hydrant" feature for CourseRoad (add "view in hydrant" button for semesters courseroad2#523) so CourseRoad doesn't have to worry about what is/isn't valid Hydrant term
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.
looks good to me! @psvenk any comments before merging?
This avoids the nesting indentation that comes from multiple sequential requests.
This resolves one of the TODO comments, but it is useful since it means that the URL in the address bar matches what is shown on the page.
To avoid try/catch.
IAP or summer of a year where those terms were not scraped separately should redirect silently to spring or fall of that year, and otherwise we try to redirect (eventually with some sort of notice to the user) to the same semester of the current year.
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 PR; I've gone ahead and resolved all of the TODOs. Let me know if you have any comments pertaining to my commits; otherwise, I think this should be ready to merge. (I don't know why CI isn't running.)
Might have to rebase on main? But it's probably fine (edit: nvmd I just had to approve the CI run...) |