Skip to content

Add search filter to prospects endpoint#64

Merged
goldlabelapps merged 1 commit intomasterfrom
staging
Apr 6, 2026
Merged

Add search filter to prospects endpoint#64
goldlabelapps merged 1 commit intomasterfrom
staging

Conversation

@goldlabelapps
Copy link
Copy Markdown
Owner

Introduce a new 'search' query parameter to /prospects to allow case-insensitive partial matches on first_name or last_name. The handler now builds a dynamic WHERE clause (preserving hide IS NOT TRUE), uses parameterized queries for the COUNT and SELECT to include the search terms, and appends OFFSET/LIMIT for pagination. Ordering (flagged first, then first_name ASC) and existing pagination behavior are preserved.

Introduce a new 'search' query parameter to /prospects to allow case-insensitive partial matches on first_name or last_name. The handler now builds a dynamic WHERE clause (preserving hide IS NOT TRUE), uses parameterized queries for the COUNT and SELECT to include the search terms, and appends OFFSET/LIMIT for pagination. Ordering (flagged first, then first_name ASC) and existing pagination behavior are preserved.
@goldlabelapps goldlabelapps merged commit 196b583 into master Apr 6, 2026
1 check passed
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