Skip to content

fix: remove nodejs.nmrxiv.org references in favor of NMRKit#1460

Open
vcnainala wants to merge 3 commits into
developmentfrom
fix/1429-remove-nodejs-nmrxiv-references
Open

fix: remove nodejs.nmrxiv.org references in favor of NMRKit#1460
vcnainala wants to merge 3 commits into
developmentfrom
fix/1429-remove-nodejs-nmrxiv-references

Conversation

@vcnainala

Copy link
Copy Markdown
Member

Summary

  • Replaces all nodejs.nmrxiv.org references with nmrkit.nmrxiv.org in config, env defaults, and Blade dns-prefetch hints
  • Migrates ProcessELNSpectra from the legacy hardcoded /spectra-parser endpoint to the configurable NMRKit /latest/spectra/parse/url API
  • Updates unit tests to match the new request/response contract

Closes #1429

Test plan

  • Confirm NMRKIT_URL / NMRKIT_API_URL point to https://nmrkit.nmrxiv.org in deployment env
  • Run php artisan test tests/Unit/Jobs/ProcessELNSpectraTest.php
  • Verify ELN spectra import still creates NMRium records for studies with download URLs
  • Confirm page head includes dns-prefetch for configured NMRium and NMRKit origins

Update NMRKIT_URL defaults and derive NMRium/NMRKit dns-prefetch hints
from configuration instead of hardcoding the retired nodejs host.

Refs #1429
Replace the hardcoded legacy spectra-parser endpoint with the NMRKit
parse/url API, normalize nmriumState responses, and align tests with
the updated request contract.

Refs #1429
@codecov

codecov Bot commented Jul 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 73.33333% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.57%. Comparing base (f9fb6af) to head (16a328a).

Files with missing lines Patch % Lines
app/Jobs/ProcessELNSpectra.php 73.33% 4 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                @@
##             development    #1460      +/-   ##
=================================================
- Coverage          76.59%   76.57%   -0.02%     
- Complexity          3590     3594       +4     
=================================================
  Files                249      249              
  Lines              13510    13520      +10     
=================================================
+ Hits               10348    10353       +5     
- Misses              3162     3167       +5     
Flag Coverage Δ
unittests 76.57% <73.33%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

Add unit tests for missing parser URL config, API errors, invalid
response payloads, and nmriumState-wrapped responses to satisfy
Codecov patch coverage on PR #1460.

Refs #1429
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