Add dropdown for top-level group selection

Why are we doing this work

  • Currently the user must type in a top-level group to be an exception for protecting group-level protected branch modification
  • it would be easier if it were a dropdown
  • use id instead of name in case group gets renamed

Relevant links

Design

Non-functional requirements

  • Documentation:
  • Feature flag:
  • Performance:
  • Testing:

Implementation plan

  • frontend update ee/app/assets/javascripts/security_orchestration/components/policy_editor/scan_result/settings/block_group_branch_modification.vue to use a dropdown for top-level group selection
    • ensure it only shows top-level groups
  • backend update backend to use ids instead of names

Verification steps

Edited by Alexander Turinske