-
Notifications
You must be signed in to change notification settings - Fork 2
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
Search, filter and sort. #107
Conversation
…d to integrate search bar results with it
…mplement sorting with a range, which seems to be a bug on the backend side
Your Render PR Server URL is https://bluesurf-pr-107.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-cl8rlo76e7vc73c9gmd0. |
Your Render PR Server URL is https://bluesurf-fe-fr-pr-107.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-cl8rlon6e7vc73c9gmig. |
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.
Overall I'm glad we have this functionality combined into one function. There are a few changes that should be made before deploying though. We shouldn't be populating the mock database because it will override our PosgreSQL one. And the clubs and locations should be returned in alphabetical order.
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.
lgtm! Great work!
Closes #2.
Closes #3.
Closes #4.
Closes #11.
Closes #13.
Closes #18.
This PR adds the search, filter and sort capability for posts.
Each of the capabilities function both together and individually (i.e., searching can work standalone, or with filtering). If the user inputs a query for searching and then decides to filter by tags, the database query adds the current options to the query to restrict the results more.
Tests for the database function
search_filter_sort
were added under thetest_datalayer_event.py
file and considers a variety of scenarios, that include formatting as well as a combination of everything you can do.Please check the functionality in the frontend :) and run pytest to ensure the tests pass.