Improve the status export
What does this MR do and why?
In this MR, we are introducing a new column in the Project Status Export, "Control Statuses", to capture the individual status of each control.
The change will:
- Add 'Control Statuses' to the export, with the values space separated i.e.
scanner_sast_running:pass external_control:fail
How to set up and validate locally
- Make sure you have an ultimate license set up locally
- Navigate to the Compliance Center Dashboard, and then frameworks i.e.
http://gitlab.localdev:3000/gitlab-org/gitlab-test/-/security/compliance_dashboard/frameworks - Ensure that you have a framework setup. You will also need to add at least one requirement with control(s) of your choice.
- Apply the the framework to a project in your group
- Navigate to the export to execute the CSV export.
- You can also verify the CSV in a rails console.
Example:
ComplianceManagement::ComplianceFramework::ProjectRequirementStatuses::ExportService.new(user: User.find(USER_ID), group: Group.find(GROUP_ID)).execute
Issue: #539175 (closed)
Edited by Jean van der Walt