-
Notifications
You must be signed in to change notification settings - Fork 61
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
feat: adds implementation parts to This System component in markdown #1536
Conversation
Changes in assembly are due to changes in the markdown breaking the unit tests because the This System component is associated with each statement Signed-off-by: Jennifer Power <[email protected]>
The process_main_component was overwriting the first prose response to all the parts Signed-off-by: Jennifer Power <[email protected]>
Signed-off-by: Jennifer Power <[email protected]>
Signed-off-by: Jennifer Power <[email protected]>
Signed-off-by: Jennifer Power <[email protected]>
Similar comment to PR #1534. Is there a place in the docs that describes this feature for users? Otherwise, looks like you have all the bases covered. |
Per discussion at today's issue review, this need changes before for being accepted. The behavior should be |
Resolves merge conflicts Signed-off-by: Jennifer Power <[email protected]>
To ensure the default markdown is not overly verbose, writing all implementation parts and the inclusion of This System is optional. Signed-off-by: Jennifer Power <[email protected]>
Signed-off-by: Jennifer Power <[email protected]>
The goal is to increase the usefulness of the comments Signed-off-by: Jennifer Power <[email protected]>
@degenaro @AleJo2995 @vikas-agarwal76 The logic has been updated based on the provided feedback. Please take another look. |
trestle/core/control_writer.py
Outdated
""" | ||
Check if a part should be skipped based on rules and context. | ||
|
||
Notes: The default logic is to keep part inclusion rules-based. Using the control |
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.
Nit: English could be improved?
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.
Thanks @degenaro. I can update the docstring to make it more clear.
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.
LGTM, by inspection.
One nit cited. Plus, I see Sonar coverage is > 97%, which is fine. I normally try for 100% for the PR if it's not too challenging. Definitely not a requirement, though.
Thanks @degenaro . I will take a look at the new uncovered lines to see how difficult it would be to remedy. |
Signed-off-by: Jennifer Power <[email protected]>
@degenaro Looks like the new uncovered line was actually moved, not added - https://github.com/oscal-compass/compliance-trestle/pull/1536/files#diff-fcc1b0a823415ac243a1edf58a536c3ec86f7e3bbedacda17bf873c90288f9afR163. The reason that it is uncovered is |
@jpower432 Still looks good to me, comments were for over achievement. Already approved! Suggest waiting for @vikas-agarwal76 to chime in. |
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.
LGTM
Types of changes
develop
->main
)Quality assurance (all should be covered).
Summary
Alters SSP markdown to write the heading for the implementation part if it exists in the control for This System
The default behavior when writing SSP is not changed. It can be altered by using the
include-all-parts
flag.The
--include-all-parts
flag controlsThis System
is written in the markdown. When--include-all-parts
is set, all control parts will be written with the main component present under the## Implementation for part <part>
section. All other components will still be conditionally added based on the presence of rules.Closes #1527
Key links:
Before you merge