Skip to content

Phase 2: Record the upstream snapshot each version mirrors #1908

Closed

Description

@neuromechanist

Part of epic #1046.

Model: Sonnet. Depends on: Phase 1.

Scope: Record what we mirrored. Migration 0100 adds dataset_versions.source_version and source_version_basis (doi, lineage, unknown; NULL means never examined); the dataset level tag is derived from the highest semver version row and datasets stays at 84 columns. One shared parser sourceSnapshotOf(desc, sourceId) reads Version, then a DOI matching 10.18112/openneuro..v, then the URL, accepts only entries naming the dataset's own ds, and returns unknown on disagreement. Write the value when the version row is inserted. A resumable backfill route plus nemar admin upstream-backfill reads v/dataset_description.json through the authenticated raw CDN and records unknown rather than guessing.

Definition of done: Backfill run on production with counts per basis posted on #1046; tests: source-snapshot unit test, migration test on real SQLite, column budget test still pinned at 84.

Binding design: ADR 0006 (a re-pull is a major version) and the ADR 0111 written in Phase 1; the design record is the epic body.

Activity

  1. added
    feature
    on Oct 24, 2026
  2. neuromechanist commented on Oct 24, 2026

    @neuromechanist
    ContributorAuthor

    Merged to the epic branch in #1920.

  3. changed the title [-]Phase 2: ADR 0111: an upstream re-pull is a reviewed delta on a release branch[/-] [+]Phase 2: Record the upstream snapshot each version mirrors[/+] on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions