Skip to content

Add mutation concern to resolve a single issuable

Eugenia Grieff requested to merge 36309-graphql-mutation-resolves-issue into master

What does this MR do?

From discussion !25628 (comment 294297427)

In multiple places we're repeating the functionality of including Mutations::ResolvesProject and then using Resolvers::IssuesResolver to resolve a single issue or Resolvers::MergeRequestsResolver to resolve a single merge request. It seems logical to move this functionality to a new mutation concern ResolvesIssuable and replace existing code.

In a new iteration, this concern could be adapted to use for epics by replacing the parent_path and using Mutations::ResolvesGroup instead.

This new concern will be useful in !25628 (merged) as well.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Eugenia Grieff

Merge request reports