Commit 50a24009 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Merge branch 'ajk-graphql-global-id-issue-move-list' into 'master'

Fix Rubocop violations in the issue-move-list mutation

See merge request gitlab-org/gitlab!55610
parents 01d7654b c51c7ec2
...@@ -5,35 +5,38 @@ module Mutations ...@@ -5,35 +5,38 @@ module Mutations
module Issues module Issues
class IssueMoveList < Mutations::Issues::Base class IssueMoveList < Mutations::Issues::Base
graphql_name 'IssueMoveList' graphql_name 'IssueMoveList'
BoardGID = ::Types::GlobalIDType[::Board]
ListID = ::GraphQL::ID_TYPE
IssueID = ::GraphQL::ID_TYPE
argument :board_id, GraphQL::ID_TYPE, argument :board_id, BoardGID,
required: true, required: true,
loads: Types::BoardType, loads: Types::BoardType,
description: 'Global ID of the board that the issue is in.' description: 'Global ID of the board that the issue is in.'
argument :project_path, GraphQL::ID_TYPE, argument :project_path, GraphQL::ID_TYPE,
required: true, required: true,
description: 'Project the issue to mutate is in.' description: 'Project the issue to mutate is in.'
argument :iid, GraphQL::STRING_TYPE, argument :iid, GraphQL::STRING_TYPE,
required: true, required: true,
description: 'IID of the issue to mutate.' description: 'IID of the issue to mutate.'
argument :from_list_id, GraphQL::ID_TYPE, argument :from_list_id, ListID,
required: false, required: false,
description: 'ID of the board list that the issue will be moved from.' description: 'ID of the board list that the issue will be moved from.'
argument :to_list_id, GraphQL::ID_TYPE, argument :to_list_id, ListID,
required: false, required: false,
description: 'ID of the board list that the issue will be moved to.' description: 'ID of the board list that the issue will be moved to.'
argument :move_before_id, GraphQL::ID_TYPE, argument :move_before_id, IssueID,
required: false, required: false,
description: 'ID of issue that should be placed before the current issue.' description: 'ID of issue that should be placed before the current issue.'
argument :move_after_id, GraphQL::ID_TYPE, argument :move_after_id, IssueID,
required: false, required: false,
description: 'ID of issue that should be placed after the current issue.' description: 'ID of issue that should be placed after the current issue.'
def ready?(**args) def ready?(**args)
if move_arguments(args).blank? if move_arguments(args).blank?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment