Closed chuanlin2018 closed 4 months ago
Just checked the fix for metrics page. Still working on landing page side... There are similar code in both page that need be put in a service but will work on it later.
All fixed.
In metrics page I moved file level metrics code inside record level metrics function because if there is no metrics level data, no need to fetch file level data.
Loading metrics data after Nerdm record loaded.
Checked on testdata; no issues. Merging.
Issue: https://sgitlab.nist.gov/oar-odd/landing-page-service/-/issues/3 Landing page crashed because there was no pdrid in metrics data.
Fix: Added pdrid check in getMetrics() in both landingpage and metrics component.