-
Notifications
You must be signed in to change notification settings - Fork 58
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
Add option to normalize export ckl profile name #5852
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: George M Dias <GDIAS@MITRE.ORG>
Signed-off-by: George M Dias <GDIAS@MITRE.ORG>
Signed-off-by: George M Dias <GDIAS@MITRE.ORG>
Signed-off-by: George M Dias <GDIAS@MITRE.ORG>
DMedina6
approved these changes
May 24, 2024
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.
Code works as expected after testing, and tests all pass. I'm going to approve this even though I left other comments for review.
Review updates
Signed-off-by: George M Dias <GDIAS@MITRE.ORG>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
heimdall-frontend
Issue is related to the Heimdall-Lite frontend
ready-to-merge
Used by mergify to identify if a PR is ready to merge into master.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Provide a checkbox that normalizes (proper formats) the profile title (name). Also fixes issue # #2375
Example, if the name is:
redhat-enterprise-linux-8-stig-baseline
It normalizes to: 'Redhat Enterprise Linux 8 Security Technical Implementation Guide`
Logic
Process exchanges profile titles that end with 'stig-baseline', 'cis-baseline', 'srg-baseline' to Security Technical Implementation Guide and capitalizes all preceding words removing the dashes.
Without applying title formatting:
![image](https://private-user-images.githubusercontent.com/13986875/333350940-1e025a1e-f7d9-4ad9-be77-5fca1a85cf9b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxODg4NzgsIm5iZiI6MTcxOTE4ODU3OCwicGF0aCI6Ii8xMzk4Njg3NS8zMzMzNTA5NDAtMWUwMjVhMWUtZjdkOS00YWQ5LWJlNzctNWZjYTFhODVjZjliLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI0VDAwMjI1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFjNWRhOGNlZDZiZjk1NmU0ZjIzNTkwN2UzZGNkMWU0Yjc0MzU5YmRkMjJmMzE2NzBiNTZlNjY2OTVkNzk4MmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.KE3QWzncqsNghVs_AczwyI_2poE0BdlFLcYu79UeKNU)
After applying title formatting:
![image](https://private-user-images.githubusercontent.com/13986875/333351517-a35bd107-ba65-469b-a658-033184bf31ee.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxODg4NzgsIm5iZiI6MTcxOTE4ODU3OCwicGF0aCI6Ii8xMzk4Njg3NS8zMzMzNTE1MTctYTM1YmQxMDctYmE2NS00NjliLWE2NTgtMDMzMTg0YmYzMWVlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI0VDAwMjI1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYwOTRlYTA5YTQwMmQ5MzdkMDg2ZWRkMTViYWUyNTNjMGJlZGI4YTA4NWY5Y2I5ODA2MWFjMmQ0YjU5OTRhYzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.InFmo29Z6HxTuDx4GHg7bZC5OJAqSDPXJdTg9P9L7Yo)