feat(esm_catalog): PR-C1 — middleware + export utilities#1494
Open
siligam wants to merge 1 commit into
Open
Conversation
siligam
force-pushed
the
esm-catalog/pr-b4-federation-api
branch
from
June 14, 2026 00:12
840c483 to
16a3cdd
Compare
siligam
force-pushed
the
esm-catalog/pr-c1-middleware-export
branch
from
June 14, 2026 00:12
5f8f856 to
c06cb4f
Compare
siligam
force-pushed
the
esm-catalog/pr-b4-federation-api
branch
from
June 17, 2026 12:13
16a3cdd to
ed75fed
Compare
siligam
force-pushed
the
esm-catalog/pr-c1-middleware-export
branch
from
June 17, 2026 12:14
c06cb4f to
a095781
Compare
siligam
force-pushed
the
esm-catalog/pr-b4-federation-api
branch
from
June 17, 2026 16:00
ed75fed to
1f401c8
Compare
siligam
force-pushed
the
esm-catalog/pr-c1-middleware-export
branch
from
June 17, 2026 16:01
a095781 to
73dbc73
Compare
siligam
force-pushed
the
esm-catalog/pr-b4-federation-api
branch
from
June 17, 2026 16:34
1f401c8 to
952b8d2
Compare
siligam
force-pushed
the
esm-catalog/pr-c1-middleware-export
branch
from
June 17, 2026 16:34
73dbc73 to
96e0047
Compare
Adds RequestLoggingMiddleware/CorrelationIdMiddleware (starlette-based request tracing) and export.py (Parquet/JSON export via pyarrow). Wires RequestLoggingMiddleware into create_app(). 8 new tests (137 total). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
siligam
force-pushed
the
esm-catalog/pr-b4-federation-api
branch
from
June 17, 2026 17:03
952b8d2 to
673be4b
Compare
siligam
force-pushed
the
esm-catalog/pr-c1-middleware-export
branch
from
June 17, 2026 17:03
96e0047 to
5f389e0
Compare
Contributor
Author
|
Rebased onto the corrected PR-0 base (#1483) — test relocation to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
api/middleware.py:CorrelationIdMiddleware(setsrequest.state.correlation_idto 8-char UUID) +RequestLoggingMiddleware(logs incoming method/path and outgoing status/latency; handles X-Forwarded-For)storage/export.py:export_parquet()+export_json()for writing STAC items to disk;import_parquet()for the SLURM parallel-scan merge workflow; pyarrow is a lazy import (only needed at call time, not install time)RequestLoggingMiddlewareintocreate_app()middleware stack (before CORS)Test plan
pytest src/esm_catalog/tests/test_middleware_export.py -v— 8 pass (2 pyarrow skipped)pytest src/esm_catalog/tests/— 137 total greenesm-catalog-testspasses on 3.9 + 3.12Stack position
release→ PR-0 → A1a → A1b-1 → A1b-2 → A2 → A3 → A4 → B1 → B2 → B3 → B4 → C1 (this PR)🤖 Generated with Claude Code