lib/gitlab/import_export/project_tree_restorer.rb
# Relations which cannot be saved at project level (and have a group assigned)
Relations which cannot be saved at project level (and have a group assigned)
Relations which cannot be saved at project level ( and have a group assigned )
def build_relation(relation_key, relation_definition, data_hash)
        return data_hash if relation_key == 'author'
        relation_definition.each do |sub_relation_key, sub_relation_definition|
          transform_sub_relations!(data_hash, sub_relation_key, sub_relation_definition)
        end
        Gitlab::ImportExport::RelationFactory.create(
          relation_sym: relation_key.to_sym,
          relation_hash: data_hash,
          members_mapper: members_mapper,
          merge_requests_mapping: merge_requests_mapping,
          user: @user,
          project: @project,
          excluded_keys: excluded_keys_for_relation(relation_key))
      end
def build_relation ( relation_key , relation_definition , data_hash ) return data_hash if relation_key == 'author' relation_definition . each do | sub_relation_key , sub_relation_definition | transform_sub_relations! ( data_hash , sub_relation_key , sub_relation_definition ) end Gitlab :: ImportExport :: RelationFactory . create ( relation_sym : relation_key . to_sym , relation_hash : data_hash , members_mapper : members_mapper , merge_requests_mapping : merge_requests_mapping , user : @user , project : @project , excluded_keys : excluded_keys_for_relation ( relation_key ) ) end
Relations which cannot be saved at project level (and have a group assigned)
Relations which cannot be saved at project level ( and have a group assigned )
# TODO: This is hack to not create relation for the author # Rather make `RelationFactory#set_note_author` to take care of that # create relation objects recursively for all sub-objects
relation_key
<not_specific>
relation_definition
<not_specific>
data_hash
<not_specific>