Skip to content

Add directionality field to JobToken::RemoveProject GraphQL mutation

drew stachon requested to merge add-direction-to-remove-project-mutation into master

What does this MR do and why?

This MR adds the ability to remove inbound token scopes from a source Project. The current RemoveProject mutation works perfectly well, but for outbound scopes only. Following the design of !99166 (merged), we're now adding a relatively straightforward change to allow direction in GraphQL requests.

There had originally been some extra refactoring as part of this MR, but we decided against it because there's other work depending on this. If we want to make some internal changes with Allowlist and the ProjectScopeLink scopes/queries, we can do that afterward in a follow-up.

How to set up and validate locally

A GraphQL request can be sent directly to the API to ensure this works.

To be added

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by drew stachon

Merge request reports