Class: Gitlab::ImportExport::Group::RelationFactory

Inherits:
Base::RelationFactory show all
Defined in:
lib/gitlab/import_export/group/relation_factory.rb

Constant Summary collapse

OVERRIDES =
{
  labels: :group_labels,
  label: :group_label,
  parent: :epic,
  iterations_cadences: 'Iterations::Cadence',
  user_contributions: :user,
  epic_lists: 'Boards::EpicList',
  epic_boards: 'Boards::EpicBoard'
}.freeze
EXISTING_OBJECT_RELATIONS =
%i[
  epic
  epics
  milestone
  milestones
  label
  labels
  group_label
  group_labels
  iteration
  iterations
].freeze
RELATIONS_WITH_REWRITABLE_USERNAMES =
%i[
  milestone
  milestones
  epic
  epics
  release
  releases
  note
  notes
].freeze

Constants inherited from Base::RelationFactory

Base::RelationFactory::IMPORTED_OBJECT_MAX_RETRIES, Base::RelationFactory::TOKEN_RESET_MODELS, Base::RelationFactory::UNIQUE_RELATIONS, Base::RelationFactory::USER_REFERENCES

Constants included from Gitlab::Import::UsernameMentionRewriter

Gitlab::Import::UsernameMentionRewriter::MENTION_REGEX

Instance Attribute Summary

Attributes inherited from Base::RelationFactory

#importable, #relation_hash, #relation_name

Method Summary

Methods inherited from Base::RelationFactory

create, #create, existing_object_relations, #initialize, overrides, relation_class

Methods included from Gitlab::Import::UsernameMentionRewriter

#update_username_mentions, #wrap_mentions_in_backticks

Constructor Details

This class inherits a constructor from Gitlab::ImportExport::Base::RelationFactory