Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle metrics that has no filepath #323

Merged
merged 7 commits into from
Jan 11, 2024
Merged

Conversation

chuanlin2018
Copy link
Collaborator

@chuanlin2018 chuanlin2018 commented Dec 13, 2023

Issue: landing page crashed when metrics data didn't have filepath info.
Example: https://testdata.nist.gov/od/id/66AF4AFEA96764C4E0532457068100261895
Fix: Check filepath attribute before using it.
Testing: To test using testdata.nist.gov as backend, in environment.ts set useMetadataService: true, useCustomizationService: true and replace data.nist.gov with testdata.nist.gov.
Test samples:
http://localhost:4200/metrics/mds2-2124
http://localhost:4200/lps/mds2-2124
http://localhost:4200/metrics/576CE869311197F3E0531A570681C5C71857
http://localhost:4200/lps/576CE869311197F3E0531A570681C5C71857

@RayPlante
Copy link
Collaborator

This PR has some conflicts with #320 . Can you try resolving them? (Try merging the two branches together to see the conflicts.)

@chuanlin2018
Copy link
Collaborator Author

Will do.

@chuanlin2018
Copy link
Collaborator Author

Fixed. Sorry for the delay. It took me a while to figure out what had been changed in both PRs...

Copy link
Collaborator

@RayPlante RayPlante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflicts are resolved. Behavior tested and confirmed on testdata.

@RayPlante RayPlante merged commit a9a4da3 into integration Jan 11, 2024
1 check passed
@RayPlante RayPlante deleted the fix/metrics-crash branch January 11, 2024 15:17
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.

2 participants