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

Improve rendering controls to HTML #10994

Merged
merged 2 commits into from
Aug 16, 2023

Conversation

jan-cerny
Copy link
Collaborator

We will generate HTML pages only for controls that are actually used in the product. That means we will stop generating bizzare pages like "CIS benchmark for SUSE Linux Enterprise 15 for RHEL 7". A side effect is that the build will be faster.

Fixes: #10791

Review Hints:

python3 utils/render_all_policies.py --output-dir /tmp/out --ssg-root $(pwd) --product rhel9

We will generate HTML pages only for controls that are actually
used in the product. That means we will stop generating bizzare
pages like "CIS benchmark for SUSE Linux Enterprise 15 for RHEL 7".
A side effect is that the build will be faster.

Fixes: ComplianceAsCode#10791
@github-actions
Copy link

Start a new ephemeral environment with changes proposed in this pull request:

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

@marcusburghardt marcusburghardt self-assigned this Aug 15, 2023
@marcusburghardt marcusburghardt added enhancement General enhancements to the project. Documentation Update in project documentation. labels Aug 15, 2023
Copy link
Member

@marcusburghardt marcusburghardt left a comment

Choose a reason for hiding this comment

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

Thanks for this. It is much better. I only have a minor comment about an unused module.

@jan-cerny
Copy link
Collaborator Author

I have removed the unused import

@jan-cerny jan-cerny added this to the 0.1.70 milestone Aug 16, 2023
Copy link
Member

@marcusburghardt marcusburghardt left a comment

Choose a reason for hiding this comment

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

Thanks

@codeclimate
Copy link

codeclimate bot commented Aug 16, 2023

Code Climate has analyzed commit a64cbb1 and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 2

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 53.3% (0.0% change).

View more on Code Climate.

@marcusburghardt marcusburghardt merged commit 082c304 into ComplianceAsCode:master Aug 16, 2023
32 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Update in project documentation. enhancement General enhancements to the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Online controls pages contain meaningless entries
2 participants