[Frontend] Add group scope option to a policy drawer
Why are we doing this work
- Policy scope will now have fourth option: scoping to a group
- This issue adds new option to policy_scope dropdown
- 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
- Add new option in
ee/app/assets/javascripts/security_orchestration/components/policy_drawer/scope_info_row.vue - Update
grapqhqlquery to query groups as wellee/app/assets/javascripts/security_orchestration/graphql/fragments/policy_scope.fragment.graphql - Add tests
- Make sure groups option is reflected in drawer
Verification steps
Edited by Artur Fedorov