Skip to content

nemar.org sync not triggered on version releases #339

Closed

Description

@neuromechanist

Problem

When a new dataset version is created via PR merge (pr-merge workflow creates tag -> version-doi workflow mints DOI), the nemar.org website does not get updated. The sync_nemar step only runs during the admin publish/approve pipeline (step 14 of 15), so version updates after initial publication are invisible on nemar.org until a manual nemar admin sync run is executed.

Impact

  • nm000132 showed v1.0.0 on nemar.org even after v1.1.0 was released and DOI minted
  • HED annotation changes from the PR were not reflected on the website
  • Any dataset version update requires manual admin intervention to appear on nemar.org

Expected behavior

When a version DOI is successfully published via the /webhooks/publish-version-doi endpoint, the nemar.org sync should be triggered automatically.

Root cause

The version DOI webhook handler (backend/src/routes/webhooks.ts) creates the DOI, generates the manifest, and triggers archive generation, but does not call syncDatasetToNemar().

Proposed fix

Add a nemar.org sync step to the version DOI webhook handler after successful DOI publication.

Related

Also found during this investigation: detectHedAnnotation() in nemar-sync.ts only checked sub-*/*_events.json paths, missing root-level BIDS inheritance events files. Fixed in PR #338.

Activity

  1. added
    bug
    on Apr 4, 2026
  2. neuromechanist commented on May 14, 2026

    @neuromechanist
    ContributorAuthor

    Merged via PR #463.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions