Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## [Unreleased]

### Changed

- update pgstac version to `0.8.x`

## [2.5.0] - 2024-04-25

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ services:

database:
container_name: stac-db
image: ghcr.io/stac-utils/pgstac:v0.7.10
image: ghcr.io/stac-utils/pgstac:v0.8.5
environment:
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"buildpg",
"brotli_asgi",
"pygeofilter>=0.2",
"pypgstac==0.7.*",
"pypgstac==0.8.*",
]

extra_reqs = {
"dev": [
"pystac[validation]",
"pypgstac[psycopg]==0.7.*",
"pypgstac[psycopg]==0.8.*",
"pytest-postgresql",
"pytest",
"pytest-cov",
Expand Down
3 changes: 3 additions & 0 deletions stac_fastapi/pgstac/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ async def _get_base_item(collection_id: str) -> Dict[str, Any]:

for feature in collection.get("features") or []:
base_item = await base_item_cache.get(feature.get("collection"))
# Exclude None values
base_item = {k: v for k, v in base_item.items() if v is not None}

feature = hydrate(base_item, feature)

# Grab ids needed for links that may be removed by the fields extension.
Expand Down
2 changes: 0 additions & 2 deletions tests/api/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,6 @@ async def test_base_queryables(load_test_data, app_client, load_test_collection)
assert q["type"] == "object"
assert "properties" in q
assert "id" in q["properties"]
assert "eo:cloud_cover" in q["properties"]


@pytest.mark.asyncio
Expand All @@ -488,7 +487,6 @@ async def test_collection_queryables(load_test_data, app_client, load_test_colle
assert q["type"] == "object"
assert "properties" in q
assert "id" in q["properties"]
assert "eo:cloud_cover" in q["properties"]


@pytest.mark.asyncio
Expand Down