Skip to content

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:

Screenshot_2024-06-03_at_10.35.21

Example response:

Screenshot_2024-06-13_at_10.17.47

Reproduction steps

  1. Enable the edit_branch_rules feature flag
  2. Navigate to Settings > Repository in any project
  3. Expand branch rules
  4. Add new rule with "Add branch rule" dropdown
  5. Go to rule detail page and click on edit button in the "Allowed to merge" setting
  6. In the drawer, add a group
  7. Click Save changes