Update multiple selection for existing policies
What does this MR do and why?
Describe in detail what your merge request does and why.
Update multiple selection for existing policies
- fill out approvers for existing policies
- track approver type with approver id
- update existing approvers data shape
- make it easier to add/remove approvers
- modify shape sooner
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
There is only one visual change and that is that the dropdown is now disabled when no available type is selectable.
Screen_Recording_2023-01-19_at_11.08.21
There are several CSS issues with the layout and those will be fixed with Update approver CSS (!109177 - merged).
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Upload a GitLab Ultimate license
- Enable the
scan_result_role_action
feature flag:echo "Feature.enable(:scan_result_role_action)" | rails c
- Navigate to http://gdk.test:3443/groups/flightjs/-/security/policies/new?type=scan_result_policy
- Verify that multiple actions can be added
- Create a policy, merge the resulting MR, navigate back to http://gdk.test:3443/groups/flightjs/-/security/policies, select the new policy and select
Edit policy
- Verify the policy editor renders the actions correctly and it can be updated
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 #377865 (closed)
Edited by Alexander Turinske