Skip to content

Conversation

@patela22
Copy link
Contributor

@patela22 patela22 commented Oct 7, 2025

Description

[Link to Ticket](insert the link to your ticket inside the parenthesis here)

Please include a summary of the changes and the related issue. Please also
include relevant motivation, context, and images!

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. If they are unit
tests, provide the file name the tests are in. If they are not unit tests,
describe how you tested the change.

Checklist

  • I have performed a self-review of my code
  • I have reached out to another developer to review my code
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes

@patela22 patela22 requested a review from Copilot October 7, 2025 15:00
@patela22 patela22 linked an issue Oct 7, 2025 that may be closed by this pull request
@patela22 patela22 marked this pull request as draft October 7, 2025 15:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a search functionality for events that allows filtering and sorting by various criteria. The implementation includes new search fields in the event schema and a comprehensive search API endpoint.

Key changes:

  • Added optional search-related fields to event schemas (description, keywords, age_min, age_max)
  • Implemented search_events method in EventModel with filtering, sorting, and pagination
  • Created new /search endpoint for querying events with multiple search criteria

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
app/schemas/event.py Added optional fields for search functionality (description, keywords, age constraints)
app/models/event.py Implemented search_events method with MongoDB queries for filtering and pagination
app/api/endpoints/event.py Added search endpoint with query parameters for filtering and sorting events

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@patela22 patela22 marked this pull request as ready for review October 7, 2025 18:19
@sierrawelsch sierrawelsch merged commit 57939c3 into main Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding search, sorting, and filtering functionality to GET events

4 participants