- Notifications
You must be signed in to change notification settings - Fork28
PermalinkChoose a base ref {{ refName }}default Choose a head ref {{ refName }}default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also orlearn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also.Learn more about diff comparisons here.
base repository:stac-utils/stac-fastapi-elasticsearch-opensearch
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
Uh oh!
There was an error while loading.Please reload this page.
base:v4.0.0a1
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}defaultLoading
...
head repository:stac-utils/stac-fastapi-elasticsearch-opensearch
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
Uh oh!
There was an error while loading.Please reload this page.
compare:v4.0.0a2
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}defaultLoading
- 1commit
- 25files changed
- 1contributor
Commits on Apr 22, 2025
Enable direct response, stac-fastapi 5.2.0, deprecation warnings (#359)
**Related Issue(s):**-#347 **Description:**#### v4.0.0a2 release #### Added- Added support for high-performance direct response mode for bothElasticsearch and Opensearch backends, controlled by the`ENABLE_DIRECT_RESPONSE` environment variable. When enabled(`ENABLE_DIRECT_RESPONSE=true`), endpoints return Starlette Responseobjects directly, bypassing FastAPI's jsonable_encoder and Pydanticserialization for significantly improved performance on large searchresponses. **Note:** In this mode, all FastAPI dependencies (includingauthentication, custom status codes, and validation) are disabled forall routes. Default is `false` for safety. A warning is logged atstartup if enabled. See [issue#347](#347)#### Changed- Updated test suite to use `httpx.ASGITransport(app=...)` for FastAPIapp testing (removes deprecation warning).- Updated stac-fastapi parent libraries to 5.2.0. - Migrated Elasticsearch index template creation from legacy`put_template` to composable `put_index_template` API in`database_logic.py`. This resolves deprecation warnings and ensurescompatibility with Elasticsearch 7.x and 8.x.- Updated all Pydantic models to use `ConfigDict` instead of class-based`Config` for Pydantic v2 compatibility. This resolves deprecationwarnings and prepares for Pydantic v3.- Migrated all Pydantic `@root_validator` validators to`@model_validator` for Pydantic v2 compatibility.- Migrated startup event handling from deprecated`@app.on_event("startup")` to FastAPI's recommended lifespan contextmanager. This removes deprecation warnings and ensures compatibilitywith future FastAPI versions.**PR Checklist:**- [x] Code is formatted and linted (run `pre-commit run --all-files`)- [x] Tests pass (run `make test`)- [x] Documentation has been updated to reflect changes, if applicable- [x] Changes are added to the changelog
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:git diff v4.0.0a1...v4.0.0a2
Uh oh!
There was an error while loading.Please reload this page.