Repository navigation
Add OpenNeuro dataset import pipeline - #215
Merged
Merged
Conversation
Add 'on' prefix support for OpenNeuro-sourced datasets alongside existing nm/xx prefixes. Includes backend import endpoint, CLI orchestration command, D1 migration for source tracking, and a CI workflow template for nemarDatasets/.github. Maps ds###### -> on###### with IsIdenticalTo DOI relation.
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR215Version: 🤖 Updated on each push. |
- Fix shell injection in CI workflow (use env vars instead of direct interpolation) - Remove dead code (readDataciteYml, duplicate run function) - Check git add/commit/remote-remove exit codes - Make data download failure a hard error (use --skip-data for metadata only) - Consolidate Zod + manual validation into single regex schema - Add last_activity_at to import INSERT - Include error details in admin-facing error responses - Add top-level try-catch in CLI command handler - Fix step numbering mismatch in docstring - Export runCommand from git-annex.ts and reuse it - Extract DOI once and pass through to seedMetadata
Contributor
Author
PR Review FindingsRan 4 specialized review agents (code-reviewer, silent-failure-hunter, comment-analyzer, code-simplifier) in parallel. All findings addressed in commit 9b45d2a. Critical (4 found, 4 fixed)
Important (3 found, 3 fixed)
Code Quality (7 found, 7 fixed)
Skipped (1 false positive)
|
3 of 5 tasks
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
onprefix support for OpenNeuro-sourced datasets (validation, D1 migration)POST /admin/datasets/importbackend endpoint for creating datasets with custom IDsnemar admin import-openneuro <ds-id>CLI command that orchestrates clone, S3 copy, metadata seeding, and pushonboard-openneuro.yml) for nemarDatasets/.githubDetails
Maps OpenNeuro
ds######to NEMARon######. Seeds.nemar/metadata.jsonwithIsIdenticalTorelation linking the NEMAR DOI to the OpenNeuro DOI. Stores provenance (source: "openneuro",source_id) in D1.Test plan
isValidDatasetId("on007262")returns true,isSandboxDatasetId("on007262")returns falsenemar admin import-openneuro ds007262against dev backend