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

Remove default eo:cloud_cover queryable #210

Merged
merged 2 commits into from
Sep 20, 2023
Merged

Conversation

mmcfarland
Copy link
Collaborator

This default queryable was added in the early days of pgstac so that the field would be indexed by default if it was present in any items. However, now that the queryables table is used to generate content for /queryables stac endpoint in stac-fastapi, it is included in the queryable content for all collections (since there is no collection_id).

Removing this optimization fixes incorrect (and broken, since the $ref URL also has a typo) default behavior.

This default queryable was added in the early days of pgstac so that the
field would be indexed by default if it was present in any items.
However, now that the queryables table is used to generate content for
/queryables stac endpoint, it is included in the queryable content for
all collections (since there is no collection_id).

Removing this opmtimization fixes incorrect (and broken, since the $ref
url also has a typo) default behavior.
@bitner bitner force-pushed the mjm/remove-default-queryable-cc branch from 7a70e98 to ed2af02 Compare September 20, 2023 20:04
@bitner bitner merged commit 318fa2d into main Sep 20, 2023
15 checks passed
@mmcfarland mmcfarland deleted the mjm/remove-default-queryable-cc branch October 27, 2023 14:53
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