P4-W2: Export jobs — async dataset export with JSONL and CSV support#123
P4-W2: Export jobs — async dataset export with JSONL and CSV support#123user1303836 merged 1 commit intomainfrom
Conversation
Adds export job endpoints for dataset-oriented bulk exports with JSONL and CSV format support. Export jobs run asynchronously with status polling and download on completion. Supports all 6 Silver datasets (token_transfers, native_balance_deltas, decoded_events, hl_fills, hl_funding, positions) with optional target_id, network, and time range filters. Preserves the existing wallet export endpoint. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: fac1a771d287
Remote Review — P4-W2: Export JobsVerdict: Review pass is clear. No blocking issues found. GHA StatusAll 4 checks pass: Formatting ✓, Clippy ✓, Tests ✓, Build (release) ✓ Review Focus Assessment
Additional Observations (non-blocking)
This packet is ready to merge from the PR-comment review perspective. |
Summary
POST /v1/export/dataset— create an export job by dataset name, target, and format (JSONL or CSV)GET /v1/export/jobs/:job_id— poll job status and metadataGET /v1/export/jobs/:job_id/download— download completed export fileExportFormatenum incorewith JSONL and CSV variantsadapters(one per Silver dataset)api: creation → background processing → downloadString::leak()memory leak in the download handlerGET /v1/export/:walletwallet export endpoint unchangedValidation
All 3 required checks pass:
cargo fmt --all --check✓cargo clippy --workspace --all-targets -- -D warnings✓cargo test --workspace— 737 tests pass ✓No migration changes. No breaking API changes. No wallet-assumption regressions.
Phase
Phase 4: ETL-First Delivery — Work Packet P4-W2
Test plan
cargo test --workspacepasses (737 tests)cargo clippy --workspace --all-targets -- -D warningsclean/v1/export/:walletendpoint is unaffectedString::leak()pattern🤖 Generated with Claude Code