Commit 3ea20ee5 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'Fix-GraphQL/OrderedArguments-offense-(Part-6/6)' into 'master'

Fix GraphQL/OrderedArguments offense (Part 6/6)

See merge request gitlab-org/gitlab!76028
parents af8f6ed8 8d7a0608
...@@ -4,6 +4,3 @@ GraphQL/OrderedArguments: ...@@ -4,6 +4,3 @@ GraphQL/OrderedArguments:
- app/graphql/resolvers/base_issues_resolver.rb - app/graphql/resolvers/base_issues_resolver.rb
- app/graphql/resolvers/design_management/designs_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/design_at_version_resolver.rb
- app/graphql/types/notes/diff_image_position_input_type.rb
- app/graphql/types/notes/diff_position_base_input_type.rb
- app/graphql/types/notes/diff_position_input_type.rb
...@@ -5,14 +5,14 @@ module Types ...@@ -5,14 +5,14 @@ module Types
class DiffImagePositionInputType < DiffPositionBaseInputType class DiffImagePositionInputType < DiffPositionBaseInputType
graphql_name 'DiffImagePositionInput' graphql_name 'DiffImagePositionInput'
argument :height, GraphQL::Types::Int, required: true,
description: copy_field_description(Types::Notes::DiffPositionType, :height)
argument :width, GraphQL::Types::Int, required: true,
description: copy_field_description(Types::Notes::DiffPositionType, :width)
argument :x, GraphQL::Types::Int, required: true, argument :x, GraphQL::Types::Int, required: true,
description: copy_field_description(Types::Notes::DiffPositionType, :x) description: copy_field_description(Types::Notes::DiffPositionType, :x)
argument :y, GraphQL::Types::Int, required: true, argument :y, GraphQL::Types::Int, required: true,
description: copy_field_description(Types::Notes::DiffPositionType, :y) description: copy_field_description(Types::Notes::DiffPositionType, :y)
argument :width, GraphQL::Types::Int, required: true,
description: copy_field_description(Types::Notes::DiffPositionType, :width)
argument :height, GraphQL::Types::Int, required: true,
description: copy_field_description(Types::Notes::DiffPositionType, :height)
end end
end end
end end
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
module Types module Types
module Notes module Notes
class DiffPositionBaseInputType < BaseInputObject class DiffPositionBaseInputType < BaseInputObject
argument :base_sha, GraphQL::Types::String, required: false,
description: copy_field_description(Types::DiffRefsType, :base_sha)
argument :head_sha, GraphQL::Types::String, required: true, argument :head_sha, GraphQL::Types::String, required: true,
description: copy_field_description(Types::DiffRefsType, :head_sha) description: copy_field_description(Types::DiffRefsType, :head_sha)
argument :base_sha, GraphQL::Types::String, required: false,
description: copy_field_description(Types::DiffRefsType, :base_sha)
argument :start_sha, GraphQL::Types::String, required: true, argument :start_sha, GraphQL::Types::String, required: true,
description: copy_field_description(Types::DiffRefsType, :start_sha) description: copy_field_description(Types::DiffRefsType, :start_sha)
......
...@@ -5,10 +5,10 @@ module Types ...@@ -5,10 +5,10 @@ module Types
class DiffPositionInputType < DiffPositionBaseInputType class DiffPositionInputType < DiffPositionBaseInputType
graphql_name 'DiffPositionInput' graphql_name 'DiffPositionInput'
argument :old_line, GraphQL::Types::Int, required: false,
description: copy_field_description(Types::Notes::DiffPositionType, :old_line)
argument :new_line, GraphQL::Types::Int, required: false, argument :new_line, GraphQL::Types::Int, required: false,
description: copy_field_description(Types::Notes::DiffPositionType, :new_line) description: copy_field_description(Types::Notes::DiffPositionType, :new_line)
argument :old_line, GraphQL::Types::Int, required: false,
description: copy_field_description(Types::Notes::DiffPositionType, :old_line)
end end
end end
end end
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