Skip to content

Commit e5c4b72

Browse files
committed
update changelog, clean up
1 parent dc31907 commit e5c4b72

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99

1010
### Added
1111

12-
- GET `/collections` collection search structured filtering extension with support for both CQL2 JSON and CQL2 text formats. [#471](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/471)
12+
- GET `/collections` collection search structured filter extension with support for both cql2-json and cql2-text formats. [#475](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/475)
1313

1414
### Changed
1515

stac_fastapi/core/stac_fastapi/core/core.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ async def all_collections(
229229
fields: Optional[List[str]] = None,
230230
sortby: Optional[str] = None,
231231
filter_expr: Optional[str] = None,
232-
query: Optional[str] = None,
233232
filter_lang: Optional[str] = None,
234233
q: Optional[Union[str, List[str]]] = None,
235234
**kwargs,
@@ -240,7 +239,6 @@ async def all_collections(
240239
fields (Optional[List[str]]): Fields to include or exclude from the results.
241240
sortby (Optional[str]): Sorting options for the results.
242241
filter_expr (Optional[str]): Structured filter expression in CQL2 JSON format.
243-
query (Optional[str]): Legacy query parameter (deprecated).
244242
filter_lang (Optional[str]): Must be 'cql2-json' if specified, other values will result in an error.
245243
q (Optional[Union[str, List[str]]]): Free text search terms.
246244
**kwargs: Keyword arguments from the request.

stac_fastapi/tests/api/test_api_search_collections.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
import json
12
import uuid
23

34
import pytest
45

5-
from ..conftest import create_collection
6+
from ..conftest import create_collection, refresh_indices
67

78

89
@pytest.mark.asyncio
@@ -267,14 +268,8 @@ async def test_collections_filter_search(app_client, txn_client, load_test_data)
267268
test_collection["summaries"] = coll["summaries"]
268269
await create_collection(txn_client, test_collection)
269270

270-
# Ensure collections are searchable
271-
from ..conftest import refresh_indices
272-
273271
await refresh_indices(txn_client)
274272

275-
# Test 1: CQL2-JSON format - filter for one of our test collections
276-
import json
277-
278273
# Use the ID of the first test collection for the filter
279274
test_collection_id = test_collections[0]["id"]
280275

0 commit comments

Comments
 (0)