Fix error when fetching inherited security execution policy in GraphQL
What does this MR do and why?
This MR fixes the problem (https://sentry.gitlab.net/gitlab/gitlabcom/issues/3290022/?query=is%3Aunresolved) where we where not able to fetch scan execution policies in GraphQL for the project (without security policy project) in the group (with security policy project).
How to test it?
- Create new group
- Create new project in that group
- Using
SecurityPolicyProjectCreate
mutation, create Policy Project for the group. - Create a simple policy in Policy Project.
- Using
project.scanExecutionPolicies(relationship: INHERITED)
try to fetch policies in GraphQL API
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #347066 (closed)
Edited by Alan (Maciej) Paruszewski