Skip to content

Phase 1: DOI landing target -> canonical /dataset URL - #842

Merged
neuromechanist merged 2 commits into
feature/issue-837-epic-legacy-separationfrom
feature/issue-838-phase1-doi-target-forwarder
Jun 26, 2026
Merged

neuromechanist merged 2 commits into
feature/issue-837-epic-legacy-separationfrom
feature/issue-838-phase1-doi-target-forwarder

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

Phase 1 of epic #837 (legacy nemar.org dataexplorer separation). Repoints the DOI _target and enrichment/README links from the legacy https://nemar.org/dataexplorer/detail?dataset_id=<id> to the canonical https://nemar.org/dataset/<id> (version DOIs: ?v=v<version>, the form ww2 honors).

  • New zero-dep helpers datasetLandingUrl(id) / datasetVersionLandingUrl(id, version) in shared/datacite-constants.ts (single source of truth).
  • All 9 inline legacy-URL builders swapped to the helpers: doi.ts (concept + version), admin.ts (DOI update x2, version refresh, release-body link, publish make-public), llm-enrich.ts (seed related-identifier), enrich-dataset.ts (repo description link).

Code only; no existing DOI is mutated here. The Cloudflare forwarder (nemar.org/dataset/* -> ww2, on the SCCN-owned zone) is applied as the Phase 1 infra step. Phase 2 bulk re-targets the ~1,182 existing EZID DOIs.

Closes #838
Part of epic #837

Test plan

  • New unit test test/dataset-landing-url.test.ts (concept + ?v=v version forms; asserts no dataexplorer).
  • Updated assertions in test/datacite.test.ts and test/ezid-sandbox.test.ts.
  • bun test targeted: 134 pass.
  • bun run typecheck clean; Biome clean on changed src files.
  • Forwarder curl chain verified once the redirect rule is live.

Replace legacy nemar.org/dataexplorer/detail?dataset_id=<id> DOI _target
and enrichment links with the canonical https://nemar.org/dataset/<id>
(version DOIs: ?v=v<version>), via two shared helpers in
shared/datacite-constants.ts. Part of epic #837 (Phase 1, #838).
@github-actions

github-actions Bot commented Jun 26, 2026 •

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR842

Version: 0.8.70-PR842.ce4171d
Commit: ce4171d


🤖 Updated on each push.

@neuromechanist
neuromechanist merged commit f32d2dd into feature/issue-837-epic-legacy-separation Jun 26, 2026
1 check passed
@neuromechanist
neuromechanist deleted the feature/issue-838-phase1-doi-target-forwarder branch June 26, 2026 23:06

This branch was previously deployed

1 inactive deployment
npm — ce4171da Deployed Jun 26, 2026 by neuromechanist via publish #1578
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