summaryrefslogtreecommitdiff
path: root/app/graphql/gitlab_schema.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/gitlab_schema.rb')
-rw-r--r--app/graphql/gitlab_schema.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/app/graphql/gitlab_schema.rb b/app/graphql/gitlab_schema.rb
index 84941fcde02..8e95bd501ff 100644
--- a/app/graphql/gitlab_schema.rb
+++ b/app/graphql/gitlab_schema.rb
@@ -51,9 +51,8 @@ class GitlabSchema < GraphQL::Schema
end
def get_type(type_name)
- # This is a backwards compatibility hack to work around an accidentally
- # released argument typed as EEIterationID
- type_name = type_name.gsub(/^EE/, '') if type_name.end_with?('ID')
+ type_name = Gitlab::GlobalId::Deprecations.apply_to_graphql_name(type_name)
+
super(type_name)
end
@@ -162,10 +161,9 @@ class GitlabSchema < GraphQL::Schema
end
end
- # This is a backwards compatibility hack to work around an accidentally
- # released argument typed as EE{Type}ID
def get_type(type_name)
- type_name = type_name.gsub(/^EE/, '') if type_name.end_with?('ID')
+ type_name = Gitlab::GlobalId::Deprecations.apply_to_graphql_name(type_name)
+
super(type_name)
end
end