Selected groups are not persisted for allowed to merge / allowed to push and merge sections
Description
As part of #439365 (closed) and #438968 (closed) we introduced the ability to add groups to the 'Allowed to merge' and 'Allowed to Push and Merge' branch protections. However the selected groups are not being persisted:
Example of what we're passing in the request:
Example response:
Reproduction steps
- Enable the
edit_branch_rules
feature flag - Navigate to Settings > Repository in any project
- Expand branch rules
- Add new rule with "Add branch rule" dropdown
- Go to rule detail page and click on edit button in the "Allowed to merge" setting
- In the drawer, add a group
- Click Save changes