Skip to content

fix(search): return all profiles on empty search query q - #87

Open
emre155 wants to merge 1 commit into
anxkhn:mainfrom
emre155:fix/search-empty-query
Open

fix(search): return all profiles on empty search query q#87
emre155 wants to merge 1 commit into
anxkhn:mainfrom
emre155:fix/search-empty-query

Conversation

@emre155

@emre155 emre155 commented Jul 18, 2026

Copy link
Copy Markdown

Summary

Fixes the search profiles endpoint behavior so that querying with an empty search query (q="") returns all profiles instead of empty results, resolving the associated test failure (closes #9).

Changes

  • Updated app/main.py inside search_profiles to return all profiles if query parameter q is not provided or is empty.
  • Updated tests/test_search.py search tests to include the clean_store fixture to prevent test pollution.

Signed-off-by: emreumar emreumar@users.noreply.github.com

Signed-off-by: emreumar <emreumar@users.noreply.github.com>
@emre155
emre155 requested a review from anxkhn as a code owner July 18, 2026 16:41
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.

Search with empty query returns empty results instead of all profiles

2 participants