Skip to content

feat: support featured query parameter for events and projects#163

Open
mug1sha wants to merge 3 commits into
Open-Source-Kigali:devfrom
mug1sha:feat/featured-filtering
Open

feat: support featured query parameter for events and projects#163
mug1sha wants to merge 3 commits into
Open-Source-Kigali:devfrom
mug1sha:feat/featured-filtering

Conversation

@mug1sha

@mug1sha mug1sha commented May 21, 2026

Copy link
Copy Markdown
Contributor

##What does this PR do?

This PR implements support for an optional ?featured=true query parameter on the GET /api/events and GET /api/projects endpoints. It allows clients to filter for only featured records,
which are sorted by date (events) or creation time (projects).

##Related issue

Closes # (Please insert the issue number here if applicable)

##How did you test it?

  • Service Layer: Verified that Prisma queries correctly include the where: { featured: true } clause when the parameter is provided.
  • Controller Layer: Confirmed that the query string is correctly parsed and passed to the service.
  • Integration: Ran the existing test suite (npm test) to ensure no regressions in listing functionality.

##Checklist

  • My code builds (npm run build)
  • I added or updated tests and npm test passes
  • I updated docs/openapi.yaml if I changed any routes (Filtering logic is an enhancement to existing list routes)
  • I added a Prisma migration if I changed schema.prisma (N/A)
  • I updated docs or .env.example if needed (Functionality is now available for frontend use)

@mug1sha

mug1sha commented May 21, 2026

Copy link
Copy Markdown
Contributor Author

support featured query parameter for events and projects @Nick-Lemy @rodriguecyber

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.

1 participant