-
Notifications
You must be signed in to change notification settings - Fork 11
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
[EGRC-292] Update OSCAL SSP Viewer, resolve various bugs related oscal-content update #43
Conversation
Fix for oscal-content changing annotation to props. This is a bit complicated because we are regularly using props, so for the .map function we will still use the parameter annotations. Testing is also fixed to use props.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Files look good. Ran OSCALViewer locally and navigated to system security plan viewer. Looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor change requested.
@rgauss @kkennedy26 Old version:
New version
To fix this issue,
|
@zclarkEDC, that looks correct to me, go for it. |
@zclarkEDC, looks like the issue is actually an issue with the addition of Note that the Catalog Viewer parameter label is broken as well. |
I spent some time attempting to fix the issue if there are 2 {{insert: param, paramId}} in the same prose, but it caused load times to take minutes. I left a comment elaborating on the issue near the old // TODO |
- Change ReplacedProseWithParameterLabel and ReplacedProseWithByComponentValue to find the parameterId, note this is still broken because it only works if there is one parameter.
- Change annotation to prop in OSCALSystemCharacteristics
In |
Overview
EGRC-292
Render fix
Still using the variable name annotations, because props is already assigned.
If we do a PropTypes rewrite in the future, this may alleviate the issue.
404 Error fix
In OSCALSspResolver.js, changed the relative profile import path.
This fix is needed because latest oscal-content PR resolved the issue