Commit 70800237 authored by Kev's avatar Kev Committed by David O'Regan

Fix GraphQL/OrderedArguments offense (Part 2/6)

parent 52492f2c
......@@ -3,9 +3,6 @@ GraphQL/OrderedArguments:
Exclude:
- app/graphql/mutations/jira_import/start.rb
- app/graphql/mutations/merge_requests/accept.rb
- app/graphql/resolvers/base_issues_resolver.rb
- app/graphql/resolvers/design_management/designs_resolver.rb
- app/graphql/resolvers/design_management/version/design_at_version_resolver.rb
- app/graphql/resolvers/design_management/version/designs_at_version_resolver.rb
- app/graphql/resolvers/design_management/version_in_collection_resolver.rb
- app/graphql/resolvers/group_milestones_resolver.rb
......
......@@ -4,13 +4,13 @@ module Resolvers
class BaseIssuesResolver < BaseResolver
prepend IssueResolverArguments
argument :state, Types::IssuableStateEnum,
required: false,
description: 'Current state of this issue.'
argument :sort, Types::IssueSortEnum,
description: 'Sort issues by this criteria.',
required: false,
default_value: :created_desc
argument :state, Types::IssuableStateEnum,
required: false,
description: 'Current state of this issue.'
type Types::IssueType.connection_type, null: true
......
......@@ -8,16 +8,16 @@ module Resolvers
type ::Types::DesignManagement::DesignType.connection_type, null: true
argument :ids, [DesignID],
argument :at_version, VersionID,
required: false,
description: 'Filters designs by their ID.'
description: 'Filters designs to only those that existed at the version. ' \
'If argument is omitted or nil then all designs will reflect the latest version'
argument :filenames, [GraphQL::Types::String],
required: false,
description: 'Filters designs by their filename.'
argument :at_version, VersionID,
argument :ids, [DesignID],
required: false,
description: 'Filters designs to only those that existed at the version. ' \
'If argument is omitted or nil then all designs will reflect the latest version'
description: 'Filters designs by their ID.'
def self.single
::Resolvers::DesignManagement::DesignResolver
......
......@@ -16,16 +16,16 @@ module Resolvers
authorize :read_design
argument :id, DesignAtVersionID,
required: false,
as: :design_at_version_id,
description: 'ID of the DesignAtVersion.'
argument :design_id, DesignID,
required: false,
description: 'ID of a specific design.'
argument :filename, GraphQL::Types::String,
required: false,
description: 'Filename of a specific design.'
argument :id, DesignAtVersionID,
required: false,
as: :design_at_version_id,
description: 'ID of the DesignAtVersion.'
def self.single
self
......
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