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.
Description:
Changes from 3.2.5:
Added
ENABLE_DIRECT_RESPONSEenvironment variable. When enabled (ENABLE_DIRECT_RESPONSE=true), endpoints return Starlette Response objects directly, bypassing FastAPI's jsonable_encoder and Pydantic serialization for significantly improved performance on large search responses. Note: In this mode, all FastAPI dependencies (including authentication, custom status codes, and validation) are disabled for all routes. Default isfalsefor safety. A warning is logged at startup if enabled. See issue #347 and PR #359.ENABLE_DIRECT_RESPONSEenvironment variable, covering both Elasticsearch and OpenSearch backends. Tests gracefully handle missing backends by attempting to import both configs and skipping if neither is available. #359Changed
fastapi-slimwithfastapidependency #351stac_fastapi.opensearchtostac_fastapi_opensearchstac_fastapi.elasticsearchtostac_fastapi_elasticsearchstac_fastapi.coretostac_fastapi_coredocker-compose.ymltocompose.ymlto align with Docker Compose V2 conventions #358versionfield from all compose files #358STAC_FASTAPI_VERSIONenvironment variables to 4.0.0 in all compose files #362httpx.ASGITransport(app=...)for FastAPI app testing (removes deprecation warning). #359put_templateto composableput_index_templateAPI indatabase_logic.py. This resolves deprecation warnings and ensures compatibility with Elasticsearch 7.x and 8.x. #359ConfigDictinstead of class-basedConfigfor Pydantic v2 compatibility. This resolves deprecation warnings and prepares for Pydantic v3. #359@root_validatorvalidators to@model_validatorfor Pydantic v2 compatibility. #359@app.on_event("startup")to FastAPI's recommended lifespan context manager. This removes deprecation warnings and ensures compatibility with future FastAPI versions. #361get_bool_envutility. This ensures robust and consistent handling of environment variables such asES_USE_SSL,ES_HTTP_COMPRESS, andES_VERIFY_CERTSacross both backends. #359Fixed
mk_actionsandfilter-linksmethods #351PR Checklist:
pre-commit run --all-files)make test)