-
Notifications
You must be signed in to change notification settings - Fork 49
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
refactor, fix: validate trpc & unsorted semesters bug #716
Conversation
Vercel Preview URL 🚀 : https://planner-afu69hwyp-utdnebula.vercel.app |
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.
The code looks great! Do you think you can add a bunch of comments? Also see if you can add the group by on the data pulled from API so we show more courses in the search.
Vercel Preview URL 🚀 : https://planner-m1czgo8ij-utdnebula.vercel.app |
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.
Approving for now because I think the fix is important
Revert "Merge pull request #716 from UTDNebula/refactor-validatets"
Overview
Refactored requisite validation logic under validator.ts. In the process, I encountered a major bug where the
semesters
from the fetchedplanData
was not sorted. The problem was that the requisite validation recursive function was comparing semester indices, which obviously would be broken with unsorted semesters. A fix is included in this PR.