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

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

# DO NOT use this ENUM with issues. We need to define a new enum in places where we
# need to filter by state. locked is not a valid state filter for issues. More info in
# https://gitlab.com/gitlab-org/gitlab/-/issues/420667#note_1605900474
module Types
  class IssuableStateEnum < BaseEnum
    graphql_name 'IssuableState'
    description 'State of a GitLab issue or merge request'

    INVALID_LOCKED_MESSAGE = 'locked is not a valid state filter for issues.'

    value 'opened', description: 'In open state.'
    value 'closed', description: 'In closed state.'
    value 'locked', description: 'Discussion has been locked.'
    value 'all', description: 'All available.'
  end
end