Commit 5891d8c0 authored by Luke Duncalfe's avatar Luke Duncalfe

Merge branch 'msj-graphql-id' into 'master'

Format ID as uppercase in GraphQL descriptions

See merge request gitlab-org/gitlab!48992
parents 952080c7 5b6cb2ab
...@@ -11,7 +11,7 @@ module Mutations ...@@ -11,7 +11,7 @@ module Mutations
argument :iid, GraphQL::STRING_TYPE, argument :iid, GraphQL::STRING_TYPE,
required: true, required: true,
description: "The iid of the alert to mutate" description: "The IID of the alert to mutate"
field :alert, field :alert,
Types::AlertManagement::AlertType, Types::AlertManagement::AlertType,
......
...@@ -8,7 +8,7 @@ module Mutations ...@@ -8,7 +8,7 @@ module Mutations
argument :id, Types::GlobalIDType[::AlertManagement::HttpIntegration], argument :id, Types::GlobalIDType[::AlertManagement::HttpIntegration],
required: true, required: true,
description: "The id of the integration to remove" description: "The ID of the integration to remove"
def resolve(id:) def resolve(id:)
integration = authorized_find!(id: id) integration = authorized_find!(id: id)
......
...@@ -8,7 +8,7 @@ module Mutations ...@@ -8,7 +8,7 @@ module Mutations
argument :id, Types::GlobalIDType[::AlertManagement::HttpIntegration], argument :id, Types::GlobalIDType[::AlertManagement::HttpIntegration],
required: true, required: true,
description: "The id of the integration to mutate" description: "The ID of the integration to mutate"
def resolve(id:) def resolve(id:)
integration = authorized_find!(id: id) integration = authorized_find!(id: id)
......
...@@ -8,7 +8,7 @@ module Mutations ...@@ -8,7 +8,7 @@ module Mutations
argument :id, Types::GlobalIDType[::AlertManagement::HttpIntegration], argument :id, Types::GlobalIDType[::AlertManagement::HttpIntegration],
required: true, required: true,
description: "The id of the integration to mutate" description: "The ID of the integration to mutate"
argument :name, GraphQL::STRING_TYPE, argument :name, GraphQL::STRING_TYPE,
required: false, required: false,
......
...@@ -8,7 +8,7 @@ module Mutations ...@@ -8,7 +8,7 @@ module Mutations
argument :id, Types::GlobalIDType[::PrometheusService], argument :id, Types::GlobalIDType[::PrometheusService],
required: true, required: true,
description: "The id of the integration to mutate" description: "The ID of the integration to mutate"
def resolve(id:) def resolve(id:)
integration = authorized_find!(id: id) integration = authorized_find!(id: id)
......
...@@ -8,7 +8,7 @@ module Mutations ...@@ -8,7 +8,7 @@ module Mutations
argument :id, Types::GlobalIDType[::PrometheusService], argument :id, Types::GlobalIDType[::PrometheusService],
required: true, required: true,
description: "The id of the integration to mutate" description: "The ID of the integration to mutate"
argument :active, GraphQL::BOOLEAN_TYPE, argument :active, GraphQL::BOOLEAN_TYPE,
required: false, required: false,
......
...@@ -12,7 +12,7 @@ module Mutations ...@@ -12,7 +12,7 @@ module Mutations
argument :awardable_id, argument :awardable_id,
::Types::GlobalIDType[::Awardable], ::Types::GlobalIDType[::Awardable],
required: true, required: true,
description: 'The global id of the awardable resource' description: 'The global ID of the awardable resource'
argument :name, argument :name,
GraphQL::STRING_TYPE, GraphQL::STRING_TYPE,
......
...@@ -7,7 +7,7 @@ module Mutations ...@@ -7,7 +7,7 @@ module Mutations
argument :id, PipelineID, argument :id, PipelineID,
required: true, required: true,
description: 'The id of the pipeline to mutate' description: 'The ID of the pipeline to mutate'
private private
......
...@@ -11,7 +11,7 @@ module Mutations ...@@ -11,7 +11,7 @@ module Mutations
argument :iid, GraphQL::ID_TYPE, argument :iid, GraphQL::ID_TYPE,
required: true, required: true,
description: "The iid of the issue to modify designs for" description: "The IID of the issue to modify designs for"
private private
......
...@@ -10,7 +10,7 @@ module Mutations ...@@ -10,7 +10,7 @@ module Mutations
argument :id, argument :id,
Types::GlobalIDType[Discussion], Types::GlobalIDType[Discussion],
required: true, required: true,
description: 'The global id of the discussion' description: 'The global ID of the discussion'
argument :resolve, argument :resolve,
GraphQL::BOOLEAN_TYPE, GraphQL::BOOLEAN_TYPE,
......
...@@ -11,7 +11,7 @@ module Mutations ...@@ -11,7 +11,7 @@ module Mutations
argument :iid, GraphQL::STRING_TYPE, argument :iid, GraphQL::STRING_TYPE,
required: true, required: true,
description: "The iid of the merge request to mutate" description: "The IID of the merge request to mutate"
field :merge_request, field :merge_request,
Types::MergeRequestType, Types::MergeRequestType,
......
...@@ -20,12 +20,12 @@ module Mutations ...@@ -20,12 +20,12 @@ module Mutations
argument :environment_id, argument :environment_id,
::Types::GlobalIDType[::Environment], ::Types::GlobalIDType[::Environment],
required: false, required: false,
description: 'The global id of the environment to add an annotation to' description: 'The global ID of the environment to add an annotation to'
argument :cluster_id, argument :cluster_id,
::Types::GlobalIDType[::Clusters::Cluster], ::Types::GlobalIDType[::Clusters::Cluster],
required: false, required: false,
description: 'The global id of the cluster to add an annotation to' description: 'The global ID of the cluster to add an annotation to'
argument :starting_at, Types::TimeType, argument :starting_at, Types::TimeType,
required: true, required: true,
......
...@@ -11,7 +11,7 @@ module Mutations ...@@ -11,7 +11,7 @@ module Mutations
argument :noteable_id, argument :noteable_id,
::Types::GlobalIDType[::Noteable], ::Types::GlobalIDType[::Noteable],
required: true, required: true,
description: 'The global id of the resource to add a note to' description: 'The global ID of the resource to add a note to'
argument :body, argument :body,
GraphQL::STRING_TYPE, GraphQL::STRING_TYPE,
......
...@@ -9,7 +9,7 @@ module Mutations ...@@ -9,7 +9,7 @@ module Mutations
argument :discussion_id, argument :discussion_id,
::Types::GlobalIDType[::Discussion], ::Types::GlobalIDType[::Discussion],
required: false, required: false,
description: 'The global id of the discussion this note is in reply to' description: 'The global ID of the discussion this note is in reply to'
private private
......
...@@ -10,7 +10,7 @@ module Mutations ...@@ -10,7 +10,7 @@ module Mutations
argument :id, argument :id,
::Types::GlobalIDType[::Note], ::Types::GlobalIDType[::Note],
required: true, required: true,
description: 'The global id of the note to destroy' description: 'The global ID of the note to destroy'
def resolve(id:) def resolve(id:)
note = authorized_find!(id: id) note = authorized_find!(id: id)
......
...@@ -16,7 +16,7 @@ module Mutations ...@@ -16,7 +16,7 @@ module Mutations
loads: Types::Notes::NoteType, loads: Types::Notes::NoteType,
as: :note, as: :note,
required: true, required: true,
description: 'The global id of the DiffNote to update' description: 'The global ID of the DiffNote to update'
argument :position, argument :position,
Types::Notes::UpdateDiffImagePositionInputType, Types::Notes::UpdateDiffImagePositionInputType,
......
...@@ -11,7 +11,7 @@ module Mutations ...@@ -11,7 +11,7 @@ module Mutations
argument :id, argument :id,
::Types::GlobalIDType[::Note], ::Types::GlobalIDType[::Note],
required: true, required: true,
description: 'The global id of the note to update' description: 'The global ID of the note to update'
def resolve(args) def resolve(args)
note = authorized_find!(id: args[:id]) note = authorized_find!(id: args[:id])
......
...@@ -9,7 +9,7 @@ module Mutations ...@@ -9,7 +9,7 @@ module Mutations
argument :id, ::Types::GlobalIDType[::Snippet], argument :id, ::Types::GlobalIDType[::Snippet],
required: true, required: true,
description: 'The global id of the snippet to destroy' description: 'The global ID of the snippet to destroy'
def resolve(id:) def resolve(id:)
snippet = authorized_find!(id: id) snippet = authorized_find!(id: id)
......
...@@ -7,7 +7,7 @@ module Mutations ...@@ -7,7 +7,7 @@ module Mutations
argument :id, ::Types::GlobalIDType[::Snippet], argument :id, ::Types::GlobalIDType[::Snippet],
required: true, required: true,
description: 'The global id of the snippet to update' description: 'The global ID of the snippet to update'
def resolve(id:) def resolve(id:)
snippet = authorized_find!(id: id) snippet = authorized_find!(id: id)
......
...@@ -9,7 +9,7 @@ module Mutations ...@@ -9,7 +9,7 @@ module Mutations
argument :id, ::Types::GlobalIDType[::Snippet], argument :id, ::Types::GlobalIDType[::Snippet],
required: true, required: true,
description: 'The global id of the snippet to update' description: 'The global ID of the snippet to update'
argument :title, GraphQL::STRING_TYPE, argument :title, GraphQL::STRING_TYPE,
required: false, required: false,
......
...@@ -10,7 +10,7 @@ module Mutations ...@@ -10,7 +10,7 @@ module Mutations
argument :id, argument :id,
::Types::GlobalIDType[::Todo], ::Types::GlobalIDType[::Todo],
required: true, required: true,
description: 'The global id of the todo to mark as done' description: 'The global ID of the todo to mark as done'
field :todo, Types::TodoType, field :todo, Types::TodoType,
null: false, null: false,
......
...@@ -10,7 +10,7 @@ module Mutations ...@@ -10,7 +10,7 @@ module Mutations
argument :id, argument :id,
::Types::GlobalIDType[::Todo], ::Types::GlobalIDType[::Todo],
required: true, required: true,
description: 'The global id of the todo to restore' description: 'The global ID of the todo to restore'
field :todo, Types::TodoType, field :todo, Types::TodoType,
null: false, null: false,
......
...@@ -10,11 +10,11 @@ module Mutations ...@@ -10,11 +10,11 @@ module Mutations
argument :ids, argument :ids,
[::Types::GlobalIDType[::Todo]], [::Types::GlobalIDType[::Todo]],
required: true, required: true,
description: 'The global ids of the todos to restore (a maximum of 50 is supported at once)' description: 'The global IDs of the todos to restore (a maximum of 50 is supported at once)'
field :updated_ids, [::Types::GlobalIDType[Todo]], field :updated_ids, [::Types::GlobalIDType[Todo]],
null: false, null: false,
description: 'The ids of the updated todo items', description: 'The IDs of the updated todo items',
deprecated: { reason: 'Use todos', milestone: '13.2' } deprecated: { reason: 'Use todos', milestone: '13.2' }
field :todos, [::Types::TodoType], field :todos, [::Types::TodoType],
......
...@@ -8,7 +8,7 @@ module Types ...@@ -8,7 +8,7 @@ module Types
argument :jira_account_id, argument :jira_account_id,
GraphQL::STRING_TYPE, GraphQL::STRING_TYPE,
required: true, required: true,
description: 'Jira account id of the user' description: 'Jira account ID of the user'
argument :gitlab_id, argument :gitlab_id,
GraphQL::INT_TYPE, GraphQL::INT_TYPE,
required: false, required: false,
......
...@@ -29,12 +29,12 @@ module Mutations ...@@ -29,12 +29,12 @@ module Mutations
::Types::GlobalIDType[::User], ::Types::GlobalIDType[::User],
required: false, required: false,
loads: ::Types::UserType, loads: ::Types::UserType,
description: 'The id of user to be assigned to the board' description: 'The ID of user to be assigned to the board'
argument :milestone_id, argument :milestone_id,
::Types::GlobalIDType[::Milestone], ::Types::GlobalIDType[::Milestone],
required: false, required: false,
description: 'The id of milestone to be assigned to the board' description: 'The ID of milestone to be assigned to the board'
argument :weight, argument :weight,
GraphQL::INT_TYPE, GraphQL::INT_TYPE,
......
...@@ -12,7 +12,7 @@ module Mutations ...@@ -12,7 +12,7 @@ module Mutations
argument :id, AgentID, argument :id, AgentID,
required: true, required: true,
description: 'Global id of the cluster agent that will be deleted' description: 'Global ID of the cluster agent that will be deleted'
def resolve(id:) def resolve(id:)
cluster_agent = authorized_find!(id: id) cluster_agent = authorized_find!(id: id)
......
...@@ -10,7 +10,7 @@ module Mutations ...@@ -10,7 +10,7 @@ module Mutations
argument :base_epic_id, argument :base_epic_id,
::Types::GlobalIDType[::Epic], ::Types::GlobalIDType[::Epic],
required: true, required: true,
description: 'The id of the base epic of the tree' description: 'The ID of the base epic of the tree'
argument :moved, argument :moved,
Types::EpicTree::EpicTreeNodeInputType, Types::EpicTree::EpicTreeNodeInputType,
......
...@@ -15,7 +15,7 @@ module Mutations ...@@ -15,7 +15,7 @@ module Mutations
argument :issue_iid, GraphQL::STRING_TYPE, argument :issue_iid, GraphQL::STRING_TYPE,
required: true, required: true,
description: 'The iid of the issue to be added' description: 'The IID of the issue to be added'
field :epic_issue, field :epic_issue,
Types::EpicIssueType, Types::EpicIssueType,
......
...@@ -7,7 +7,7 @@ module Mutations ...@@ -7,7 +7,7 @@ module Mutations
argument :iid, GraphQL::ID_TYPE, argument :iid, GraphQL::ID_TYPE,
required: true, required: true,
description: "The iid of the epic to mutate" description: "The IID of the epic to mutate"
argument :group_path, GraphQL::ID_TYPE, argument :group_path, GraphQL::ID_TYPE,
required: true, required: true,
......
...@@ -5,7 +5,7 @@ module Mutations ...@@ -5,7 +5,7 @@ module Mutations
class Base < ::Mutations::BaseMutation class Base < ::Mutations::BaseMutation
argument :id, ::Types::GlobalIDType[::Namespace], argument :id, ::Types::GlobalIDType[::Namespace],
required: true, required: true,
description: 'The global id of the namespace to mutate' description: 'The global ID of the namespace to mutate'
field :namespace, field :namespace,
Types::NamespaceType, Types::NamespaceType,
......
...@@ -13,7 +13,7 @@ module Mutations ...@@ -13,7 +13,7 @@ module Mutations
argument :iid, GraphQL::STRING_TYPE, argument :iid, GraphQL::STRING_TYPE,
required: true, required: true,
description: 'The iid of the requirement to update' description: 'The IID of the requirement to update'
argument :last_test_report_state, Types::RequirementsManagement::TestReportStateEnum, argument :last_test_report_state, Types::RequirementsManagement::TestReportStateEnum,
required: false, required: false,
......
...@@ -39,7 +39,7 @@ module Resolvers ...@@ -39,7 +39,7 @@ module Resolvers
argument :iid_starts_with, GraphQL::STRING_TYPE, argument :iid_starts_with, GraphQL::STRING_TYPE,
required: false, required: false,
description: 'Filter epics by iid for autocomplete' description: 'Filter epics by IID for autocomplete'
argument :include_descendant_groups, GraphQL::BOOLEAN_TYPE, argument :include_descendant_groups, GraphQL::BOOLEAN_TYPE,
required: false, required: false,
......
...@@ -10,12 +10,12 @@ module Types ...@@ -10,12 +10,12 @@ module Types
argument :id, argument :id,
::Types::GlobalIDType[::EpicTreeSorting], ::Types::GlobalIDType[::EpicTreeSorting],
required: true, required: true,
description: 'The id of the epic_issue or epic that is being moved' description: 'The ID of the epic_issue or epic that is being moved'
argument :adjacent_reference_id, argument :adjacent_reference_id,
::Types::GlobalIDType[::EpicTreeSorting], ::Types::GlobalIDType[::EpicTreeSorting],
required: false, required: false,
description: 'The id of the epic_issue or issue that the actual epic or issue is switched with' description: 'The ID of the epic_issue or issue that the actual epic or issue is switched with'
argument :relative_position, argument :relative_position,
MoveTypeEnum, MoveTypeEnum,
......
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