Extend group level policy list to include scan result policies
Why are we doing this work
Currently scan result policies are not supported by the group level security policies.
Relevant links
This will follow the design from this epic with UX team being involved as part of the merge request review process.
Non-functional requirements
-
Documentation: -
Feature flag: -
Performance: -
Testing:
Implementation plan
-
frontend add support for scan result policies through
NAMESPACE_QUERY_DICT
in policy listee/app/assets/javascripts/security_orchestration/components/policies/policies_list.vue
-
frontend create a graphql for group level query as in
ee/app/assets/javascripts/security_orchestration/graphql/queries/group_scan_execution_policies.query.graphql
. -
backend create finder for scan result policies similar to
ee/app/finders/security/scan_execution_policies_finder.rb
in order to be used by the resolver. -
backend reuse the resolver for namespace
ee/app/graphql/ee/types/namespace_type.rb
. -
backend update
ee/app/graphql/resolvers/security_orchestration/scan_result_policy_resolver.rb
to supportrelationship
similar toee/app/graphql/resolvers/security_orchestration/scan_execution_policy_resolver.rb
Verification steps
Edited by Zamir Martins