Update role approvers on mode switch
What does this MR do and why?
Update role approvers on mode switch Alexander Turinske authored 16 hours ago
- fix bug where if a user changed the role approvers in yaml mode and switched to rule mode, the dropdown did not update
- fix bug where if a user removed the role approvers in yaml mode and switched to rule mode, the dropdown did not update
- fix bug where if a user changed the role approvers in yaml mode to a role that did not exists and switches to rule mode, the dropdown was not updated
- update tests
Changelog: fixed
EE: true
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
role_approver_-_b | roler_approver_-_a |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Upload a GitLab Ultimate license
- Navigate to a project/group => Secure => Policies => New policy => Scan result policy
- Add role approver in rule mode
- Modify it in yaml mode to a role that exists
- Switch back to rule mode
- Verify it was updated
- Modify it in yaml mode to a role that does not exist
- Switch back to rule mode
- Verify it disabled rule mod
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 #395545 (closed)
Edited by Alexander Turinske