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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/issue_type.rb')
-rw-r--r--app/graphql/types/issue_type.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/app/graphql/types/issue_type.rb b/app/graphql/types/issue_type.rb
index 1e5833a5cf0..488e4d10cbc 100644
--- a/app/graphql/types/issue_type.rb
+++ b/app/graphql/types/issue_type.rb
@@ -122,6 +122,7 @@ module Types
description: 'Collection of design images associated with this issue.'
field :type, Types::IssueTypeEnum, null: true,
+ method: :issue_type,
description: 'Type of the issue.'
field :alert_management_alert,
@@ -209,14 +210,6 @@ module Types
def escalation_status
object.supports_escalation? ? object.escalation_status&.status_name : nil
end
-
- def type
- if Feature.enabled?(:issue_type_uses_work_item_types_table)
- object.work_item_type.base_type
- else
- object.issue_type
- end
- end
end
end