fix: fields extension on collections endpoint - #326
Merged
Conversation
alukach
force-pushed
the
bug/collection-fields-extension
branch
2 times, most recently
from
November 28, 2025 16:50
e4c9d3c to
4aa6542
Compare
alukach
force-pushed
the
bug/collection-fields-extension
branch
from
November 28, 2025 19:02
f0fbab4 to
a915f2a
Compare
alukach
force-pushed
the
bug/collection-fields-extension
branch
3 times, most recently
from
November 28, 2025 20:21
4b57864 to
b5e71b4
Compare
alukach
force-pushed
the
bug/collection-fields-extension
branch
from
November 28, 2025 20:45
b5e71b4 to
04600a3
Compare
alukach
marked this pull request as ready for review
November 28, 2025 20:51
alukach
force-pushed
the
bug/collection-fields-extension
branch
from
November 29, 2025 01:56
d1df3ca to
4452922
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
Collaborator
Author
I see you marked this comment as off-topic, but I will share that I was going off of: https://github.com/stac-api-extensions/collection-search/blob/v1.0.0-rc.1/README.md?plain=1#L103-L108 |
vincentsarago
approved these changes
Dec 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue(s):
Description:
Currently, the
fieldsextension fails on the Collections endpoint due to the fact that we process theincludeandexcludearguments asset()values and then attempt to convert it to JSON.setvalues are not supported byjson.dumpsand thus an error is thrown.stac-fastapi-pgstac/stac_fastapi/pgstac/core.py
Lines 81 to 103 in 990b2af
stack trace
This PR converts these values to a
listbeforejson.dumps().Additionally, I have added a test to validate this behavior. #327 and #328 came out of these tests, requiring the testing to be adjusted slightly.
PR Checklist:
pre-commithooks pass locallymake test)make docs)