Search page: text filter is always rejected, switching catalog keeps the old selection, and results stop at 50

Open
#231 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
54/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python, react, typescript
Domain
frontend, search

Research direction

Start with app/src/components/search/SearchPage.tsx and trace the filter request, catalog-change handler, and result rendering. Add component tests for each reported behavior and an end-to-end test for a filtered search, as the acceptance criteria require. Done means text filtering succeeds, changing catalogs resets the selection and query, and results can be paged beyond 50.

Written by the indexing model from the issue text.

Description

bug ready

Found in the 2026-11-29 whole-repo review. Reported by a reviewer, who confirmed the rejection with a live request; not independently re-verified.

Problem

In app/src/components/search/SearchPage.tsx:

  • The filter box sends the filter as text in a POST body (~lines 78-79). The catalog only accepts the JSON form in a POST and answers 400.
  • Changing the catalog (~line 112) does not clear the selected collections or the last query, so the old query re-runs against the new catalog with the previous catalog's collection ids.
  • Results are capped at 50 with no next page, though a total is displayed.

Suggested fix

Send text filters with GET /search?filter=...&filter-lang=cql2-text (or accept the JSON form); reset selection on catalog change; add paging.

Acceptance criteria

  • Component tests for each of the three; an e2e test that runs a filtered search
Dominant language
Python
Stars
0
Forks
2
Avg merge
8h 26m
Merged PRs (30d)
47

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TechTraverse/stac-higher

All issues in TechTraverse/stac-higher

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.