Skip to content
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: support validation component_type for task csv-to-oscal-cd #1431

Merged
merged 5 commits into from
Aug 8, 2023

Conversation

degenaro
Copy link
Collaborator

@degenaro degenaro commented Aug 2, 2023

Types of changes

  • Hot fix (emergency fix and release)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation (change which affects the documentation site)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Release (develop -> main)

Quality assurance (all should be covered).

  • My code follows the code style of this project.
  • Documentation for my change is up to date?
  • My PR meets testing requirements.
  • All new and existing tests passed.
  • All commits are signed-off.

Summary

Key links:

Before you merge

  • Ensure it is a 'squash commit' if not a release.
  • Ensure CI is currently passing
  • Check sonar. If you are working for a fork a maintainer will reach out, if required.

Signed-off-by: Lou DeGenaro <lou.degenaro@gmail.com>
@degenaro degenaro changed the title feat: Support "validation" component_type for task csv-to-oscal-cd feat: support validation component_type for task csv-to-oscal-cd Aug 2, 2023
Signed-off-by: Lou DeGenaro <lou.degenaro@gmail.com>
Signed-off-by: Lou DeGenaro <lou.degenaro@gmail.com>
for column_name in column_names:
prop_name = self._get_prop_name(column_name)
prop_value = self._csv_mgr.get_value(rule_key, column_name).strip()
rule_set_mgr.add_prop(prop_name, prop_value, namespace, self.get_class(prop_name))
return rule_set_mgr.get_props()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@degenaro Are user columns only getting added for non-validation component? I believe it should be added for all components.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link
Collaborator

@vikas-agarwal76 vikas-agarwal76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@degenaro degenaro merged commit 80aaa72 into develop Aug 8, 2023
16 checks passed
@degenaro degenaro deleted the feat/special-validation-component-handling branch August 8, 2023 15:13
jpower432 pushed a commit to jpower432/compliance-trestle that referenced this pull request Aug 23, 2023
…al-compass#1431)

* feat: Support "validation" component_type for task csv-to-oscal-cd

Signed-off-by: Lou DeGenaro <lou.degenaro@gmail.com>

* fix sonar code smell

Signed-off-by: Lou DeGenaro <lou.degenaro@gmail.com>

* add notes to -i output regarding required/ignored columns

Signed-off-by: Lou DeGenaro <lou.degenaro@gmail.com>

* user properties for both validation and non-validation components

Signed-off-by: Lou DeGenaro <lou.degenaro@gmail.com>

---------

Signed-off-by: Lou DeGenaro <lou.degenaro@gmail.com>
Co-authored-by: AleJo2995 <alejandro.leiva.palomo@ibm.com>
@AleJo2995 AleJo2995 mentioned this pull request Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants