-
Notifications
You must be signed in to change notification settings - Fork 19
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
Update Converter Generators to Emit Missing IDs for Fields in Certain Assembly Contexts #236
Conversation
More testing and research is needed. Will want to confirm with @david-waltermire-nist if this needs to be pulled into the sprint or not for complete resolution. For more realistic end-to-end tests, @wendellpiez and I ran oscal-content SSPs and catalogs through the pipeline locally with this change. There is minimal, if any changes, detected by |
Per feedback from Dave, review |
Talked with Dave and Wendell about this at the tail end of triage.
|
910c8c3
to
549a1f7
Compare
28872af
to
21383fb
Compare
549a1f7
to
04bc6e5
Compare
bc5bafc
to
a1f1e47
Compare
OK with #240 out of the way, I need to come back this to understand it better. |
04bc6e5
to
13764fa
Compare
The PR includes a schema correction and XSpec for it. What do we need to finish? Could be an easy one. If not clear, then maybe this is an Issue-not-an-Issue, or maybe we need to return to #235. |
Per a woefully under-detailed comment from before, I will need a solid block of time, perhaps 2 hours or more, to integrate work upstream in OSCAL and verify the bug is a no-op or bad report. The commit change did not materially expose a bug or a deviation in behavior with the PR, hence the head scratch. I apologize for the delays. |
5103e5b
to
f80b2b7
Compare
As reported in the issue, debugging indicated that filtering the IDs of some fields in array constructs (in the XSLT M4 supermodel intermediate format) are dropping in later stages as a result, lead to invalid JSON serialization.
13764fa
to
f29902c
Compare
@david-waltermire-nist, I have spent some time thinking about this but cannot really envision more tests for other edge cases or other things needed. So for now, I would like to request a review of the PR. If merged, we can move forward accordingly, thanks! /cc @wendellpiez if you have any feedback or thoughts on the tests or additional edge cases, let me know, I could not think of any. |
👍 If we are happy with the testing we have and confident we can build on that going forward, we could merge this and let it rest. It's not that there is not more testing, it's that defining the bounds of such testing is itself an exercise. Indeed as we have discovered, testing the converter generator is nigh-impossible without also being able to test (and validate) the converters they are generating. This suggests that the time to pick this up again is when we have robust testing of bi-directional conversion from valid XML to JSON (or other syntax/es) and back. Maybe this means a spin-off Issue to work on the testing. |
@david-waltermire-nist any update on review for this PR? Let me know if you have any questions, comments, or concerns. |
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.
This looks consistent with what we discussed over the discussion thread. Approved. Thanks!
Committer Notes
Closes #235.
All Submissions:
Changes to Core Features:
Have you updated all website](https://pages.nist.gov/metaschema) and readme documentation affected by the changes you made? Changes to the website can be made in the website/content directory of your branch.