Module: Gitlab::GlobalId::Deprecations

Includes:
Gitlab::Graphql::DeprecationsBase
Defined in:
lib/gitlab/global_id/deprecations.rb

Constant Summary collapse

DEPRECATIONS =

Contains the deprecations in place. Example:

DEPRECATIONS = [
  Gitlab::Graphql::DeprecationsBase::NameDeprecation.new(old_name: 'PrometheusService', new_name: 'Integrations::Prometheus', milestone: '14.1')
].freeze
[
  # 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

Class Method Summary collapse

Methods included from Gitlab::Graphql::DeprecationsBase

included

Class Method Details

.map_graphql_name(model_name) ⇒ Object



22
23
24
# File 'lib/gitlab/global_id/deprecations.rb', line 22

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