[FIX] Implement BANNER API course database population #515
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Courseup currently does not have any data for 202405 and beyond due to some UVic api changes. Luckily there is a banner api that just gets all that data for you!
(NOTE: there is some scuffed session stuff going on, so before you can run the above command, you have to go to https://banner.uvic.ca/StudentRegistrationSsb/ssb/classSearch/classSearch in your browser and click
Search
with all of the filter boxes empty)Now, the above API does require a
JSESSIONID
cookie.....oh no! Obviously no one wants to have their cookie stored somewhere that other people can retrieve it. So the CI workflow calledpopulate-database
now takes an additional input parameter:cookie
. After use, thelogoff
endpoint is called to invalid the session cookie. Woot woot, no cookies leaked!Next Steps:
Sections[]
datatype that was already in usefixes: #513
Checklist
General Comments
I wanted to procrastinate an assignment yesterday so I just did this.
Now, I have absolutely no clue if just populating the db is enough to get CU working for future semesters. I don't know if the course scraper is being used in different contexts and not just hitting the firebase db. This is where someone else will have to provide guidance.
Is this a PR that the @VikeLabs/courseup team will support? Should I continue development on this?