summaryrefslogtreecommitdiff
path: root/app/graphql/types/issue_type.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/issue_type.rb')
-rw-r--r--app/graphql/types/issue_type.rb106
1 files changed, 53 insertions, 53 deletions
diff --git a/app/graphql/types/issue_type.rb b/app/graphql/types/issue_type.rb
index 58729b34fc7..d897f3cde48 100644
--- a/app/graphql/types/issue_type.rb
+++ b/app/graphql/types/issue_type.rb
@@ -17,101 +17,101 @@ module Types
present_using IssuePresenter
field :description, GraphQL::Types::String, null: true,
- description: 'Description of the issue.'
+ description: 'Description of the issue.'
field :id, GraphQL::Types::ID, null: false,
- description: "ID of the issue."
+ description: "ID of the issue."
field :iid, GraphQL::Types::ID, null: false,
- description: "Internal ID of the issue."
+ description: "Internal ID of the issue."
field :state, IssueStateEnum, null: false,
- description: 'State of the issue.'
+ description: 'State of the issue.'
field :title, GraphQL::Types::String, null: false,
- description: 'Title of the issue.'
+ description: 'Title of the issue.'
field :reference, GraphQL::Types::String, null: false,
- description: 'Internal reference of the issue. Returned in shortened format by default.',
- method: :to_reference do
+ description: 'Internal reference of the issue. Returned in shortened format by default.',
+ method: :to_reference do
argument :full, GraphQL::Types::Boolean, required: false, default_value: false,
- description: 'Boolean option specifying whether the reference should be returned in full.'
+ description: 'Boolean option specifying whether the reference should be returned in full.'
end
field :author, Types::UserType, null: false,
- description: 'User that created the issue.'
+ description: 'User that created the issue.'
field :assignees, Types::UserType.connection_type, null: true,
- description: 'Assignees of the issue.'
+ description: 'Assignees of the issue.'
field :updated_by, Types::UserType, null: true,
- description: 'User that last updated the issue.'
+ description: 'User that last updated the issue.'
field :labels, Types::LabelType.connection_type, null: true,
- description: 'Labels of the issue.'
+ description: 'Labels of the issue.'
field :milestone, Types::MilestoneType, null: true,
- description: 'Milestone of the issue.'
+ description: 'Milestone of the issue.'
field :confidential, GraphQL::Types::Boolean, null: false,
- description: 'Indicates the issue is confidential.'
+ description: 'Indicates the issue is confidential.'
field :discussion_locked, GraphQL::Types::Boolean, null: false,
- description: 'Indicates discussion is locked on the issue.'
+ description: 'Indicates discussion is locked on the issue.'
field :due_date, Types::TimeType, null: true,
- description: 'Due date of the issue.'
+ description: 'Due date of the issue.'
field :hidden, GraphQL::Types::Boolean, null: true, resolver_method: :hidden?,
- description: 'Indicates the issue is hidden because the author has been banned. ' \
+ description: 'Indicates the issue is hidden because the author has been banned. ' \
'Will always return `null` if `ban_user_feature_flag` feature flag is disabled.'
field :downvotes, GraphQL::Types::Int, null: false,
- description: 'Number of downvotes the issue has received.'
+ description: 'Number of downvotes the issue has received.'
field :merge_requests_count, GraphQL::Types::Int, null: false,
- description: 'Number of merge requests that close the issue on merge.',
- resolver: Resolvers::MergeRequestsCountResolver
+ description: 'Number of merge requests that close the issue on merge.',
+ resolver: Resolvers::MergeRequestsCountResolver
field :relative_position, GraphQL::Types::Int, null: true,
- description: 'Relative position of the issue (used for positioning in epic tree and issue boards).'
+ description: 'Relative position of the issue (used for positioning in epic tree and issue boards).'
field :upvotes, GraphQL::Types::Int, null: false,
- description: 'Number of upvotes the issue has received.'
+ description: 'Number of upvotes the issue has received.'
field :user_discussions_count, GraphQL::Types::Int, null: false,
- description: 'Number of user discussions in the issue.',
- resolver: Resolvers::UserDiscussionsCountResolver
+ description: 'Number of user discussions in the issue.',
+ resolver: Resolvers::UserDiscussionsCountResolver
field :user_notes_count, GraphQL::Types::Int, null: false,
- description: 'Number of user notes of the issue.',
- resolver: Resolvers::UserNotesCountResolver
+ description: 'Number of user notes of the issue.',
+ resolver: Resolvers::UserNotesCountResolver
field :web_path, GraphQL::Types::String, null: false, method: :issue_path,
- description: 'Web path of the issue.'
+ description: 'Web path of the issue.'
field :web_url, GraphQL::Types::String, null: false,
- description: 'Web URL of the issue.'
+ description: 'Web URL of the issue.'
field :emails_disabled, GraphQL::Types::Boolean, null: false,
- method: :project_emails_disabled?,
- description: 'Indicates if a project has email notifications disabled: `true` if email notifications are disabled.'
+ method: :project_emails_disabled?,
+ description: 'Indicates if a project has email notifications disabled: `true` if email notifications are disabled.'
field :human_time_estimate, GraphQL::Types::String, null: true,
- description: 'Human-readable time estimate of the issue.'
+ description: 'Human-readable time estimate of the issue.'
field :human_total_time_spent, GraphQL::Types::String, null: true,
- description: 'Human-readable total time reported as spent on the issue.'
+ description: 'Human-readable total time reported as spent on the issue.'
field :participants, Types::UserType.connection_type, null: true, complexity: 5,
- description: 'List of participants in the issue.',
- resolver: Resolvers::Users::ParticipantsResolver
+ description: 'List of participants in the issue.',
+ resolver: Resolvers::Users::ParticipantsResolver
field :subscribed, GraphQL::Types::Boolean, method: :subscribed?, null: false, complexity: 5,
- description: 'Indicates the currently logged in user is subscribed to the issue.'
+ description: 'Indicates the currently logged in user is subscribed to the issue.'
field :time_estimate, GraphQL::Types::Int, null: false,
- description: 'Time estimate of the issue.'
+ description: 'Time estimate of the issue.'
field :total_time_spent, GraphQL::Types::Int, null: false,
- description: 'Total time reported as spent on the issue.'
+ description: 'Total time reported as spent on the issue.'
field :closed_at, Types::TimeType, null: true,
- description: 'Timestamp of when the issue was closed.'
+ description: 'Timestamp of when the issue was closed.'
field :created_at, Types::TimeType, null: false,
- description: 'Timestamp of when the issue was created.'
+ description: 'Timestamp of when the issue was created.'
field :updated_at, Types::TimeType, null: false,
- description: 'Timestamp of when the issue was last updated.'
+ description: 'Timestamp of when the issue was last updated.'
field :task_completion_status, Types::TaskCompletionStatus, null: false,
- description: 'Task completion status of the issue.'
+ description: 'Task completion status of the issue.'
field :design_collection, Types::DesignManagement::DesignCollectionType, null: true,
- description: 'Collection of design images associated with this issue.'
+ description: 'Collection of design images associated with this issue.'
field :type, Types::IssueTypeEnum, null: true,
- method: :issue_type,
- description: 'Type of the issue.'
+ method: :issue_type,
+ description: 'Type of the issue.'
field :alert_management_alert,
Types::AlertManagement::AlertType,
@@ -119,31 +119,31 @@ module Types
description: 'Alert associated to this issue.'
field :severity, Types::IssuableSeverityEnum, null: true,
- description: 'Severity level of the incident.'
+ description: 'Severity level of the incident.'
field :moved, GraphQL::Types::Boolean, method: :moved?, null: true,
- description: 'Indicates if issue got moved from other project.'
+ description: 'Indicates if issue got moved from other project.'
field :moved_to, Types::IssueType, null: true,
- description: 'Updated Issue after it got moved to another project.'
+ description: 'Updated Issue after it got moved to another project.'
field :closed_as_duplicate_of, Types::IssueType, null: true,
- description: 'Issue this issue was closed as a duplicate of.'
+ description: 'Issue this issue was closed as a duplicate of.'
field :create_note_email, GraphQL::Types::String, null: true,
- description: 'User specific email address for the issue.'
+ description: 'User specific email address for the issue.'
field :timelogs, Types::TimelogType.connection_type, null: false,
- description: 'Timelogs on the issue.'
+ description: 'Timelogs on the issue.'
field :project_id, GraphQL::Types::Int, null: false, method: :project_id,
- description: 'ID of the issue project.'
+ description: 'ID of the issue project.'
field :customer_relations_contacts, Types::CustomerRelations::ContactType.connection_type, null: true,
- description: 'Customer relations contacts of the issue.'
+ description: 'Customer relations contacts of the issue.'
field :escalation_status, Types::IncidentManagement::EscalationStatusEnum, null: true,
- description: 'Escalation status of the issue.'
+ description: 'Escalation status of the issue.'
markdown_field :title_html, null: true
markdown_field :description_html, null: true