Welcome to mirror list, hosted at ThFree Co, Russian Federation.

extended_issue_type.rb « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e007c1109a388da95879009b1db637f5260c9a8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Types
  class ExtendedIssueType < IssueType
    graphql_name 'ExtendedIssue'

    authorize :read_issue
    expose_permissions Types::PermissionTypes::Issue
    present_using IssuePresenter

    field :subscribed, GraphQL::BOOLEAN_TYPE, method: :subscribed?, null: false, complexity: 5,
          description: 'Boolean flag for whether the currently logged in user is subscribed to this issue'
  end
end