[Frontend] Add group scope option to a policy drawer

Why are we doing this work

  1. Policy scope will now have fourth option: scoping to a group
  2. This issue adds new option to policy_scope dropdown
  3. This option must be reflected on a policy drawer on policy list

Relevant links

Non-functional requirements

  • Documentation:
  • Feature flag: policy_group_scope
  • Performance:
  • Testing: unit tests

Implementation plan

  1. Add new option in ee/app/assets/javascripts/security_orchestration/components/policy_drawer/scope_info_row.vue
  2. Update grapqhql query to query groups as well ee/app/assets/javascripts/security_orchestration/graphql/fragments/policy_scope.fragment.graphql
  3. Add tests
  4. Make sure groups option is reflected in drawer

Verification steps

Edited by Artur Fedorov