Skip to content

fix(commands): migrate NPEdia links to new RIKEN domain#821

Open
vcnainala wants to merge 1 commit into
mainfrom
fix/690-update-npedia-links
Open

fix(commands): migrate NPEdia links to new RIKEN domain#821
vcnainala wants to merge 1 commit into
mainfrom
fix/690-update-npedia-links

Conversation

@vcnainala

Copy link
Copy Markdown
Member

Summary

  • Adds coconut:update-npedia-links artisan command to migrate NPEdia source URLs from the legacy cbrg.riken.jp domain to npedia.riken.jp
  • Updates entries.link, entries.meta_data, collection_molecule.url, and collections.url for the NPEdia collection
  • Records audit trail via OwenIt auditing on entries/collections and custom npediaLinkUpdate events on molecules
  • Supports --dry-run preview and configurable --batch size with progress bars for large datasets

Closes #690

Test plan

  • ./vendor/bin/sail artisan coconut:update-npedia-links --dry-run — verified counts and sample URL transformations
  • ./vendor/bin/sail artisan coconut:update-npedia-links — run on staging/production after review
  • Confirm molecule detail pages show working NPEdia outbound links
  • Verify audit records are created for entries, collection, and molecule pivot updates

Introduce coconut:update-npedia-links to migrate NPEdia source URLs to the
new RIKEN domain across entries, collection pivots, and collection metadata,
recording OwenIt audits for traceability.

Closes #690
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@e4a4f53). Learn more about missing BASE report.

Additional details and impacted files
@@          Coverage Diff           @@
##             main    #821   +/-   ##
======================================
  Coverage        ?   6.13%           
  Complexity      ?    1737           
======================================
  Files           ?     227           
  Lines           ?    8961           
  Branches        ?       0           
======================================
  Hits            ?     550           
  Misses          ?    8411           
  Partials        ?       0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

Npedia link update

2 participants