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 'lib/gitlab/graphql/type_name_deprecations.rb')
-rw-r--r--lib/gitlab/graphql/type_name_deprecations.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/gitlab/graphql/type_name_deprecations.rb b/lib/gitlab/graphql/type_name_deprecations.rb
new file mode 100644
index 00000000000..c27ad1d54f5
--- /dev/null
+++ b/lib/gitlab/graphql/type_name_deprecations.rb
@@ -0,0 +1,27 @@
+# frozen_string_literal: true
+
+module Gitlab
+ module Graphql
+ module TypeNameDeprecations
+ # Contains the deprecations in place.
+ # Example:
+ #
+ # DEPRECATIONS = [
+ # Gitlab::Graphql::DeprecationsBase::NameDeprecation.new(
+ # old_name: 'CiRunnerUpgradeStatusType', new_name: 'CiRunnerUpgradeStatus', milestone: '15.3'
+ # )
+ # ].freeze
+ DEPRECATIONS = [
+ Gitlab::Graphql::DeprecationsBase::NameDeprecation.new(
+ old_name: 'CiRunnerUpgradeStatusType', new_name: 'CiRunnerUpgradeStatus', milestone: '15.3'
+ )
+ ].freeze
+
+ def self.map_graphql_name(name)
+ name
+ end
+
+ include Gitlab::Graphql::DeprecationsBase
+ end
+ end
+end