Skip to content
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 or learn 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
...
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
  • 1 commit
  • 25 files changed
  • 1 contributor

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 both
    Elasticsearch and Opensearch backends, controlled by the
    `ENABLE_DIRECT_RESPONSE` environment 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 is `false` for safety. A warning is logged at
    startup if enabled. See [issue
    #347](#347)
    
    #### Changed
    - Updated test suite to use `httpx.ASGITransport(app=...)` for FastAPI
    app 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 ensures
    compatibility 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 deprecation
    warnings 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 context
    manager. This removes deprecation warnings and ensures compatibility
    with 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 authored Apr 22, 2025
    Configuration menu
    Copy the full SHA
    67df17b View commit details
    Browse the repository at this point in the history
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy