Fix group mr approval selective codeowner removals
What does this MR do and why?
I have introduced a bug in !90578 (merged)
When reset approvals on push is NOT set at group level, the radio is left blank (it should show as "keep all approvals"):
This is because, the selective code owner removals value is incorrectly being returned as true from the API.
Validation
- Checkout master, view group settings
- Set merge request approval setting to "keep approvals"
- You will see the radio resets to blank
- Set the value to "remove all approvals"
- You will see the radio correctly remains set
- Checkout this branch
- Repeat above
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 #344632 (closed)
Edited by Max Woolf