Skip to content

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?

  1. Create new group
  2. Create new project in that group
  3. Using SecurityPolicyProjectCreate mutation, create Policy Project for the group.
  4. Create a simple policy in Policy Project.
  5. 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.

Related to #347066 (closed)

Edited by Alan (Maciej) Paruszewski

Merge request reports

Loading