summaryrefslogtreecommitdiff
path: root/lib/gitlab/graphql/type_name_deprecations.rb
blob: 1ec6fd1c09fa3660e8dbc1444259b62c2211f1cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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'
        ),
        Gitlab::Graphql::DeprecationsBase::NameDeprecation.new(
          old_name: 'RunnerMembershipFilter', new_name: 'CiRunnerMembershipFilter', milestone: '15.4'
        )
      ].freeze

      def self.map_graphql_name(name)
        name
      end

      include Gitlab::Graphql::DeprecationsBase
    end
  end
end