Skip to content

Restore POST_REQUEST_MODEL in post_search to preserve filters#40

Open
figi44 wants to merge 1 commit intomainfrom
fix/226-search-params
Open

Restore POST_REQUEST_MODEL in post_search to preserve filters#40
figi44 wants to merge 1 commit intomainfrom
fix/226-search-params

Conversation

@figi44
Copy link
Copy Markdown
Contributor

@figi44 figi44 commented Apr 1, 2026

BaseSearchPostRequest silently drops extension fields (filter, sortby, token, fields, query) causing all CQL2 filtering to be ignored on POST /search. Regression introduced in e58e402 (Poetry-to-uv migration).

Fixes EO-DataHub/platform-bugs#226

BaseSearchPostRequest silently drops extension fields (filter, sortby,
token, fields, query) causing all CQL2 filtering to be ignored on POST
/search. Regression introduced in e58e402 (Poetry-to-uv migration).

Fixes EO-DataHub/platform-bugs#226
@figi44 figi44 requested a review from recmanj April 1, 2026 15:47
Copy link
Copy Markdown

@GeoSpark GeoSpark left a comment

Choose a reason for hiding this comment

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

The type needs to be changed from BaseSearchPostRequest in request_adaptor.py in build_search_filter and stac_to_planet_request functions too. Previously it was an anonymous dict (which isn't necessarily the best option either).

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.

2 participants