Update development seeder for compliance violations
What does this MR do and why?
This MR updates the compliance dashboard development seeder to meet the requirements of the new compliance report and the compliance violations concept.
As the report is replacing the dashboard in %14.10 and the dashboard is not being worked on anymore, it is fine to replace the seeder entirely. The seeder will only be visible with the feature flag :compliance_violations_report
enabled or it is fully deployed.
This MR also simplifies the seeder's code, making it easier to understand what is going on.
How to set up and validate locally
Run FILTER=compliance_report_violations rake db:seed_fu
to run this specific seeder. Alternatively, you can rebuild your database.
To see the seeded data, you will need to enable the feature flag if [Feature flag] Enable compliance violations report (#346266 - closed) is not closed: echo "Feature.enable(:compliance_violations_report);" | rails c
. Then visit a groups compliance report [GDK_HOST]/groups/[GROUP]/-/security/compliance_dashboard
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #355596 (closed)