Skip to content

Block on-prefix datasets from nemar.org sync - #277

Merged
neuromechanist merged 2 commits into
devfrom
fix/issue-265-block-on-sync
Mar 10, 2026
Merged

neuromechanist merged 2 commits into
devfrom
fix/issue-265-block-on-sync

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

  • Skip sync_nemar step in publish pipeline for on-prefix datasets (logs clear message, marks step complete)
  • Return 400 from POST /admin/datasets/:id/sync for on-prefix datasets
  • OpenNeuro datasets need alternate_id mapping (coordination with Choonhan) before they can sync

Manual cleanup done

  • Deleted on000117, on003645, on007176 records from all 4 nemar.org tables
  • Reset D1 sync status for these datasets

Test plan

  • Build passes
  • Tests pass (1 pre-existing unrelated failure in manifest auto-detect test)

Closes #265

OpenNeuro-imported datasets (on00xxxx) need alternate_id mapping
before they can be synced to nemar.org. Add guards in both the
publish pipeline sync_nemar step and the manual sync endpoint.

Closes #265
@github-actions

github-actions Bot commented Mar 10, 2026 •

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR277

Version: 0.7.16-PR277.b6b61a4
Commit: b6b61a4


🤖 Updated on each push.

- Call updateProgress without error arg so skipped steps are
  marked completed (not failed), fixing resume behavior
- Move credential variables inside else block for natural
  type narrowing, removing non-null assertions
- Move variable declarations after early return guard
@neuromechanist
neuromechanist merged commit ab1070c into dev Mar 10, 2026
8 checks passed
@neuromechanist
neuromechanist deleted the fix/issue-265-block-on-sync branch March 10, 2026 01:50
@neuromechanist neuromechanist mentioned this pull request Mar 10, 2026
2 tasks done

This branch was previously deployed

1 inactive deployment
npm — b6b61a4c Deployed Mar 10, 2026 by neuromechanist via publish #469
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant