-
Notifications
You must be signed in to change notification settings - Fork 4
Address duplicate controls at catalog level in profile resolution #92
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
Address duplicate controls at catalog level in profile resolution #92
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
… controls defined at the catalog level. Resolved metaschema-framework/oscal-cli#60.
c7fb30f to
011d503
Compare
|
When do you expect this fix will be available in a release that can be consumed by |
Sorry for the delayed response, I was trying to find where I had not yet wrote a clear comment on this from earlier in the day. 😅 Seeing as the release is needed in the coming days of oscal-cli and other bugs we need to revolve in metaschema-java, this codebase, and oscal-cli, can you use our snapshot repo and test a recent dev build? This includes a snapshot version of me@computer metaschema-framework_m2 % git clone https://github.com/metaschema-framework/maven2 metaschema-framework_m2
me@computer metaschema-framework_m2 % pushd metaschema-framework_m2
me@computer metaschema-framework_m2 % git remote
metaschema-framework
me@computer metaschema-framework_m2 % git branch --show-current
main
me@computer metaschema-framework_m2 % git rev-parse HEAD
4f2b437f7ef79e5df41281af9728cb96856177d1
me@computer metaschema-framework_m2 % pushd dev/metaschema/oscal/oscal-cli-enhanced/2.5.0-SNAPSHOT
me@computer 2.5.0-SNAPSHOT % unzip oscal-cli-enhanced-2.5.0-SNAPSHOT-oscal-cli.zip
me@computer 2.5.0-SNAPSHOT % oscal-cli --version
oscal-cli 2.5.0-SNAPSHOT built at 2025-01-15 04:40 from branch develop (ba14f61) at Unknown
liboscal-java 5.2.0-SNAPSHOT built at 2025-01-15 04:35 from branch develop (0e18db2) at Unknown
oscal v1.1.3 built at 2025-01-15 04:35 from branch b123c11bd12c8b8f1bcc8bf85763e5775c0423e9 (b123c11) at https://github.com/usnistgov/OSCAL.git
metaschema-java 2.2.0-SNAPSHOT built at 2025-01-07T12:44:28+0000 from branch develop (d8476c3) at https://github.com/metaschema-framework/metaschema-java
metaschema 2.2.0-SNAPSHOT built at 2025-01-07T12:44:28+0000 from branch develop (7e49638) at https://github.com/metaschema-framework/metaschema.gitIf you want to subscribe to repo notifications with the watch button on the |
|
Thanks! I've confirmed that the 2.5.0 snapshot build is working correctly. |
Standby for further guidance on the release. I will try to send out a custom message here. |
Committer Notes
Ensure that controls defined at the catalog level are not duplicated. This fixes a bug caused during the import handling phase of profile resolution, which was "promoting" controls defined at the catalog level, causing a second copy of the control to be added. This was fixed by making controls at the catalog level always eligible for selection.
Resolves metaschema-framework/oscal-cli#60
All Submissions:
By submitting a pull request, you are agreeing to provide this contribution under the CC0 1.0 Universal public domain dedication.
Changes to Core Features: