Skip to content

update to v3.2.5 #350

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

Merged
merged 3 commits into from
Apr 7, 2025
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
# E501 let black handle all line length decisions
# W503 black conflicts with "line break before operator" rule
# E203 black conflicts with "whitespace before ':'" rule
'--ignore=E501,W503,E203,C901' ]
'--ignore=E501,W503,E203,C901,E231' ]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
hooks:
Expand Down
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]

### Added
- Option to configure multiple Elasticsearch/OpenSearch hosts and enable `http_compress`. [#349](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/349)

### Changed

## [v3.2.5] - 2025-04-07

### Added

- Option to configure multiple Elasticsearch/OpenSearch hosts and enable `http_compress`. [#349](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch/pull/349)

## [v3.2.4] - 2025-03-14

### Added
Expand Down Expand Up @@ -302,7 +307,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Use genexp in execute_search and get_all_collections to return results.
- Added db_to_stac serializer to item_collection method in core.py.

[Unreleased]: https://github.com/stac-utils/stac-fastapi-elasticsearch/tree/v3.2.4...main
[Unreleased]: https://github.com/stac-utils/stac-fastapi-elasticsearch/tree/v3.2.5...main
[v3.2.5]: https://github.com/stac-utils/stac-fastapi-elasticsearch/tree/v3.2.4...v3.2.5
[v3.2.4]: https://github.com/stac-utils/stac-fastapi-elasticsearch/tree/v3.2.3...v3.2.4
[v3.2.3]: https://github.com/stac-utils/stac-fastapi-elasticsearch/tree/v3.2.2...v3.2.3
[v3.2.2]: https://github.com/stac-utils/stac-fastapi-elasticsearch/tree/v3.2.1...v3.2.2
Expand Down
2 changes: 1 addition & 1 deletion stac_fastapi/core/stac_fastapi/core/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""library version."""
__version__ = "3.2.4"
__version__ = "3.2.5"
2 changes: 1 addition & 1 deletion stac_fastapi/elasticsearch/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
desc = f.read()

install_requires = [
"stac-fastapi.core==3.2.4",
"stac-fastapi.core==3.2.5",
"elasticsearch[async]==8.11.0",
"elasticsearch-dsl==8.11.0",
"uvicorn",
Expand Down
14 changes: 10 additions & 4 deletions stac_fastapi/elasticsearch/stac_fastapi/elasticsearch/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@ def _es_config() -> Dict[str, Any]:
scheme = "https" if use_ssl else "http"

# Configure the hosts parameter with the correct scheme
hosts = [
f"{scheme}://{host.strip()}:{os.getenv('ES_PORT')}"
for host in os.getenv("ES_HOST").split(",")
]
es_hosts = os.getenv(
"ES_HOST", "localhost"
).strip() # Default to localhost if ES_HOST is not set
es_port = os.getenv("ES_PORT", "9200") # Default to 9200 if ES_PORT is not set

# Validate ES_HOST
if not es_hosts:
raise ValueError("ES_HOST environment variable is empty or invalid.")

hosts = [f"{scheme}://{host.strip()}:{es_port}" for host in es_hosts.split(",")]

# Initialize the configuration dictionary
config: Dict[str, Any] = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""library version."""
__version__ = "3.2.4"
__version__ = "3.2.5"
2 changes: 1 addition & 1 deletion stac_fastapi/opensearch/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
desc = f.read()

install_requires = [
"stac-fastapi.core==3.2.4",
"stac-fastapi.core==3.2.5",
"opensearch-py==2.4.2",
"opensearch-py[async]==2.4.2",
"uvicorn",
Expand Down
14 changes: 10 additions & 4 deletions stac_fastapi/opensearch/stac_fastapi/opensearch/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@ def _es_config() -> Dict[str, Any]:
scheme = "https" if use_ssl else "http"

# Configure the hosts parameter with the correct scheme
hosts = [
f"{scheme}://{host.strip()}:{os.getenv('ES_PORT')}"
for host in os.getenv("ES_HOST").split(",")
]
es_hosts = os.getenv(
"ES_HOST", "localhost"
).strip() # Default to localhost if ES_HOST is not set
es_port = os.getenv("ES_PORT", "9200") # Default to 9200 if ES_PORT is not set

# Validate ES_HOST
if not es_hosts:
raise ValueError("ES_HOST environment variable is empty or invalid.")

hosts = [f"{scheme}://{host.strip()}:{es_port}" for host in es_hosts.split(",")]

# Initialize the configuration dictionary
config: Dict[str, Any] = {
Expand Down
2 changes: 1 addition & 1 deletion stac_fastapi/opensearch/stac_fastapi/opensearch/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"""library version."""
__version__ = "3.2.4"
__version__ = "3.2.5"