Allow to save and update vulnerability management policy
What does this MR do and why?
Related #470573 (closed)
Allow to remove, save and update vulnerability management policy.
Opening an existing policy can be properly tested once we implement [backend] Add resolver for vulnerability manage... (#465742 - closed).
note: Because the vulnerability management policy itself is behind a feature flag and not used yet and to ease development, this MR only supports using the Security Policies Project Background Worker which lets the parent component of the editor_component.vue handle the persistence.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
How to set up and validate locally
- Enable
vulnerability_management_policy
feature flag at http://gdk.test:3000/rails/features - Enable
security_policies_project_background_worker
feature flag at http://gdk.test:3000/rails/features - Go to any project
- Go to Secure > Policies
- Click New policy
- Click Select policy on the Vulnerability management policy card
- Update the policy
- Click Create policy
- Validate it starts loading and then redirects you to an open MR
Edited by Lorenz van Herwaarden