This repository was archived by the owner on Oct 18, 2025. It is now read-only.
Implement course fetching and searching #3
Merged
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.
What?
Implemented a course search algorithm that accepts 4 optional parameters: a search prompt, department filters, attribute filters, and semester filters. Comes with two endpoints that makes use of this algorithm: one to fetch all courses and one to fetch courses based on the 4 parameters.
Why?
The course planner website needs a way to fetch all of RPI's courses and to search/filter them based on user-provided parameters. Therefore, the backend needed functions to fetch this data from the MySQL database and serve it to the client.
How?
The course search functions were implemented across controller, service, and repository components. The controller component includes endpoint mappings and top-level logic, the service component contains the Java-side search logic, and the repository component contains a Frankenstein SQL query responsible for actually fetching course data based on search
parameters. A course entity and DTO was also created to store search result data and to be served to the client.
Testing?
I used the course search endpoints and manually inputted search parameters; it hasn't given me any wrong results so far.
Anything Else?
https://www.youtube.com/watch?v=1xtFp2Wu_To