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

deprecations.rb « global_id « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b68aac8f8624f8195ce62fd14051c10cd99a9571 (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
# frozen_string_literal: true

module Gitlab
  module GlobalId
    module Deprecations
      # Contains the deprecations in place.
      # Example:
      #
      #   DEPRECATIONS = [
      #     Gitlab::Graphql::DeprecationsBase::NameDeprecation.new(old_name: 'PrometheusService', new_name: 'Integrations::Prometheus', milestone: '14.1')
      #   ].freeze
      DEPRECATIONS = [
        # This works around an accidentally released argument named as `"EEIterationID"` in 7000489db.
        Gitlab::Graphql::DeprecationsBase::NameDeprecation.new(
          old_name: 'EEIteration', new_name: 'Iteration', milestone: '13.3'
        ),
        Gitlab::Graphql::DeprecationsBase::NameDeprecation.new(
          old_name: 'PrometheusService', new_name: 'Integrations::Prometheus', milestone: '14.1'
        )
      ].freeze

      def self.map_graphql_name(model_name)
        Types::GlobalIDType.model_name_to_graphql_name(model_name)
      end

      include Gitlab::Graphql::DeprecationsBase
    end
  end
end