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 process_project_relation_item!(relation_key, relation_definition, relation_index, data_hash)
        relation_object = build_relation(relation_key, relation_definition, data_hash)
        return unless relation_object
        return if group_model?(relation_object)
        relation_object.project = @project
        relation_object.save!
        save_id_mapping(relation_key, data_hash, relation_object)
      rescue => e
        raise e unless Feature.enabled?(:import_graceful_failures, @project.group, default_enabled: true)
        log_import_failure(relation_key, relation_index, e)
      end
def process_project_relation_item! ( relation_key , relation_definition , relation_index , data_hash ) relation_object = build_relation ( relation_key , relation_definition , data_hash ) return unless relation_object return if group_model? ( relation_object ) relation_object . project = @project relation_object . save! save_id_mapping ( relation_key , data_hash , relation_object ) rescue => e raise e unless Feature . enabled? ( :import_graceful_failures , @project . group , default_enabled : true ) log_import_failure ( relation_key , relation_index , e ) 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 )
# re-raise if not enabled
relation_key
<not_specific>
relation_definition
<not_specific>
relation_index
<not_specific>
data_hash
<not_specific>