-
Notifications
You must be signed in to change notification settings - Fork 16
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
Simplify document loading #872
Labels
enhancement
New feature or request
Milestone
Comments
Assumption: Error handling will function the same way it has. No change in error handling mechanisms. |
laurelmay
pushed a commit
to EasyDynamics/oscal-editor-deployment
that referenced
this issue
May 26, 2023
### Navigation Failing For some reason the first click when selecting catalogs in the drawer selector fails. This leads to A LOT of tests failing as we use this function in pretty much all our tests. This temporary fix will let us test other functionality rather than just always failing. We really should **completely rework** how we navigate to each document type in the future as this code is extremely fragile. ### Loading Invalid Components Failing When we intentionally put in invalid data, a `TypeError` is thrown. We are still able to reload new data after that failure, so we catch the exception. This test may be want to reconsidered when EasyDynamics/oscal-react-library#872 or subsequent related issues are completed.
6/8/23 Sprint Planning - Moved from Sprint 48 to Sprint 49 |
6/22/23 Sprint Planning - Moved from Sprint 49 to Sprint 50 |
7/6/23 Sprint Planning - Removed from sprint board. Planning to return to this issue at a later date. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
As a user of the OSCAL Viewer, I want to paste a URL and have it "just work" without giving a validation error because I gave a URL to a Profile instead of Catalog.
Acceptance Criteria
/catalog/?url=A_PROFILE
should display the profile without error/
) no longer displays the Catalog Viewer by default but instead more of a welcome text with the "OSCAL Loader Form" to allow specifying a URLhttps://viewer.oscal.io/?url=
and documentation/samples are updated to use thisProposed Solution
This probably requires pretty extensive changes to the
OSCALLoader
andOSCALLoaderForm
but with theConvert.toOscal
function, it should be feasible to determine which document type we have (based on which field is populated).The majority of the "friendly" bits for this (the new welcome page, etc) need to be defined in the
oscal-viewer
package rather than included in the library. At the same time, it would be great to remove allRoute
-based stuff from theoscal-react-library
if any is still present.Additional Notes
This is a good "first step" to refactoring
OSCALLoader
andOSCALLoaderForm
as it forces us to more dynamically handle the document type while still allowing us to maintain assumptions about having an entire document.Implementation
The text was updated successfully, but these errors were encountered: