ROX-33544: Add Tailored Profile tab to compliance coverage#19575
ROX-33544: Add Tailored Profile tab to compliance coverage#19575
Conversation
|
Skipping CI for Draft Pull Request. |
|
Leaving this as a draft PR until I split up / move some of the logic and add automated test. |
|
Images are ready for the commit at 941914e. To use with deploy scripts, first |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #19575 +/- ##
==========================================
+ Coverage 49.25% 49.28% +0.02%
==========================================
Files 2735 2735
Lines 206138 206215 +77
==========================================
+ Hits 101539 101627 +88
+ Misses 97051 97045 -6
+ Partials 7548 7543 -5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Functional changes will be easier to review in commit 6402861. Unfortunately I changed too much so the diff shows it as a new file instead of a replacement. |
Description
Adds a Tailored Profiles tab to compliance coverage so tailored profiles are separated from benchmark-based profiles.
Notes:
TAILORED_PROFILE) now show under a dedicated tabstandard.shortNamegetProfileTab/getStandardTabsprofiles[0], not “first tab / first profile”The source of truth here is a little awkward because the API returns a flat list of profiles, while the UI groups those profiles into tabs by derived benchmark name. In other words, the tabs do not exist in the response shape and have to be built on the client from
operatorKindandstandards[].That also means the route is still profile-first even though the UI feels tab-first. The selected tab is derived from the selected profile, so there is not really a single backend-provided source of truth for the tab state itself.
User-facing documentation
Testing and quality
Automated testing
How I validated my change
Manual testing
PROFILE/OPERATOR_KIND_UNSPECIFIEDstandard.shortName)shortNamevalues are ignoredTAILORED_PROFILEMixed profile list
Conditional tabs
Scan schedule filter change