Repository navigation
Preserve DatasetDOI, sync title, add uploader contributor - #258
Merged
Merged
Conversation
- Preserve existing DatasetDOI in SourceDatasets before overwriting with NEMAR concept DOI during publish workflow - Auto-sync BIDS Name changes to EZID DOI metadata via the LLM enrichment webhook (full DataCite XML rebuild) - Add data uploader as DataCurator contributor in DataCite metadata when they are not listed as a BIDS Author - Update buildOrcidEnrichment to always pass through uploader fields Closes #256
📦 Package PreviewYour package is ready to test! bun install -g nemar-cli@PR258Version: 🤖 Updated on each push. |
- Use LEFT JOIN for users table to avoid masking orphaned datasets - Broaden DOI sync to run on every enrichment (not just name change) - Distinguish config vs transient errors in DOI sync catch block - Skip parseAuthorName for usernames in DataCurator contributor - Add 4 tests for DataCurator contributor logic in bidsToDataCite
- Add orcid field to DataCiteContributor interface and XML builder - Attach uploaderOrcid to DataCurator contributor entry - Use word-boundary regex instead of substring matching for uploader-is-author check to avoid false positives - Add tests for ORCID on contributor and word-boundary matching
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
DatasetDOIinSourceDatasetsbefore overwriting with NEMAR concept DOI during publish workflow (flows into DataCite asIsDerivedFromvia existing logic)Namechanges to EZID DOI metadata via the LLM enrichment webhook (full DataCite XML rebuild, non-fatal)DataCuratorcontributor in DataCite metadata when they are not listed as a BIDS AuthorTest plan
bun test test/doi-provider.test.tspasses (updated tests for newuploaderName/uploaderOrcidfields)bun test test/datacite.test.tspassesbun test test/publish-workflow.test.tspassestsc --noEmit)DatasetDOIand verifySourceDatasetsis updatedNamein a test dataset, trigger LLM enrichment, verify EZID DOI metadata reflects new titleCloses #256