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/global_id_type.rb')
-rw-r--r--app/graphql/types/global_id_type.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/graphql/types/global_id_type.rb b/app/graphql/types/global_id_type.rb
index c44c268b43f..4f92b5e8cc2 100644
--- a/app/graphql/types/global_id_type.rb
+++ b/app/graphql/types/global_id_type.rb
@@ -49,7 +49,11 @@ module Types
# Construct a restricted type, that can only be inhabited by an ID of
# a given model class.
def self.[](model_class)
- @id_types ||= {}
+ @id_types ||= {
+ # WorkItem has a special class as we want to allow IssueID
+ # on WorkItemID while we transition into work items
+ ::WorkItem => ::Types::WorkItemIdType
+ }
@id_types[model_class] ||= Class.new(self) do
model_name = model_class.name