Skip to content

E11.3 — Bulk export: async artifact with expiry, tenant-scoped #1230

Done

Description

@athvin

API product implementation work · part of #521 (E11) · child 3 of 6. Depends on child 2 (an export names its snapshot).

Probe

There is no export route in er-server. The segment CSV export is a BFF-side page walk (frontend segment export; #896 is its Postgres-less regression). DuckDB COPY TO is available and the lake already writes Parquet.

Scope

  • POST /v1/orgs/{org}/datasets/{ds}/exports {kind: golden|duplicates|lineage, format: parquet|csv, snapshot?|run_id?} → an async job (the existing queue) writing one artifact to the tenant's own object-storage prefix.
  • GET .../exports/{export_id}: status, row count, the snapshot it read, and a short-lived presigned download URL.
  • Bounded: row/byte ceiling, and an expiry + retention sweep for artifacts. Tenant-scoped: cross-org is a 404 and the artifact key never leaves the tenant prefix (security skill: tenant isolation).
  • Audit row per export, trace-joined.

Acceptance

Export of an empty dataset, a large one (over one page), a failed export (job.failed with an error class), and a concurrent newer run (the export stays on its snapshot) are all tested. Cross-dataset and cross-org access are refused.

Activity

  1. added
    mvp
    on Nov 25, 2026
  2. changed the title [-]E11.2 — Run-to-snapshot identity, explicit snapshot reads[/-] [+]E11.3 — Bulk export: async artifact with expiry, tenant-scoped[/+] on Nov 25, 2026
  3. self-assigned this
    on Nov 25, 2026
  4. athvin commented on Nov 25, 2026

    @athvin
    OwnerAuthor

    Claimed — working in #1239 (draft). Closing that PR releases the claim.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

mvp

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions