Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Permalink

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
base:v4.0.0a1
Choose a base ref
Loading
...
head repository:stac-utils/stac-fastapi-elasticsearch-opensearch
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare:v4.0.0a2
Choose a head ref
Loading
  • 1commit
  • 25files changed
  • 1contributor

Commits on Apr 22, 2025

  1. 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
    @jonhealy1
    jonhealy1 authoredApr 22, 2025
    Configuration menu
    Copy the full SHA
    67df17bView commit details
    Browse the repository at this point in the history
Loading

[8]ページ先頭

©2009-2025 Movatter.jp