Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search is broken without the fields extension #25

Open
gadomski opened this issue Mar 2, 2023 · 0 comments
Open

Search is broken without the fields extension #25

gadomski opened this issue Mar 2, 2023 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@gadomski
Copy link
Member

gadomski commented Mar 2, 2023

To reproduce

In one shell in the stac-fastapi root:

docker-compose run --service-ports --rm database

In a second shell:

ENABLED_EXTENSIONS=query python -m stac_fastapi.pgstac.app

Then:

$ curl http://localhost:8000/search
{"code":"AttributeError","description":"'SearchPostRequest' object has no attribute 'fields'"}%  

Expected behavior

stac-fastapi with the pgstac backend should allow search if the fields extension is not enabled. This does not affect the sqlalchemy backend, which appears to work w/o the fields extension.

Related issues

@gadomski gadomski added the bug Something isn't working label Mar 2, 2023
@gadomski gadomski self-assigned this Mar 2, 2023
@gadomski gadomski transferred this issue from stac-utils/stac-fastapi May 11, 2023
@gadomski gadomski added this to the 2.5.0 milestone May 11, 2023
@gadomski gadomski removed their assignment May 11, 2023
@gadomski gadomski modified the milestones: 2.5.0, 2.4.7 May 15, 2023
@gadomski gadomski modified the milestones: 2.5.0, 2.4.8 May 31, 2023
@gadomski gadomski modified the milestones: 2.4.8, 2.5.0 Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant