-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: UNI-298 wrapped api routes (#310)
* create repository and service functions to find review with the most votes * write tests for getMostLikedReview * add get endpoint for most liked review * use cardinality instead of array_length for most liked * rename getMostLikedReview to getMostLiked, added caching * add query to find course with highest enjoyability * create stub fn and test for getHighestEnjoyability * create getHighestEnjoyment method * changed mostLiked endpoint to use kebab-case * make nulls be considered last for highest enjoyability * create endpoint to find highest-enjoyability * write query to get course with highest usefulness * write service method and test for highest usefulness * add endpoint to get highest usefulness course * write query for manageability * write method for course manageability and tests * add endpoint for highest manageability * implement query to find highest rated course in term * write method and tests for highest rated per term * implement endpoint for highest rated per term * add sort on review count for highest rated course per term * add redis caching for obtaining highest rated course * add second sort for review count on other queries * delete unused review id types * remove ReviewId import * add unit test for no course in db * remove comment * remove redundant ReviewIdSchema import in review.repository * refactor highest attribute query into one function * refactor highest rated attribute course service functions to be one fn * refactor course controller routes for highest rated attribute * forgot to change logger string for highest-attribute * remove unused imports * prefix wrapped routes with /wrapped * prefix logger messages
- Loading branch information
1 parent
fa6a0af
commit b446622
Showing
9 changed files
with
398 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.