Skip to content
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

Filter and Query Catalog Events (Backend) #35

Closed
michellelin1 opened this issue Jan 21, 2024 · 0 comments · Fixed by #43
Closed

Filter and Query Catalog Events (Backend) #35

michellelin1 opened this issue Jan 21, 2024 · 0 comments · Fixed by #43
Assignees
Labels

Comments

@michellelin1
Copy link
Member

Instructions

  • Modify the GET /catalog route so that takes in a req.query with fields title, subject, event_type, and year
    • Currently, the GET /catalog returns all rows in catalog, but we want to make the search functionality more robust
  • Linked to frontend #24

Notes

  • All the fields are optional (ex. If the user doesn’t specify a subject, you should include all subjects in your search)
  • To match the title, use the LIKE operator (ex. title LIKE ‘%user_input%’)
  • Order the events by title ASC

Acceptance Criteria

  • Only return rows that match all the filters

Resources

As always, feel free to message Michael and Michelle if you have any questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants