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!(relation_key, relation_definition)
        data_hashes = @tree_hash.delete(relation_key)
        return unless data_hashes
        data_hashes = [data_hashes] unless data_hashes.is_a?(Array)
        relation_index = 0
        while data_hash = data_hashes.shift
          process_project_relation_item!(relation_key, relation_definition, relation_index, data_hash)
          relation_index += 1
        end
      end
def process_project_relation! ( relation_key , relation_definition ) data_hashes = @tree_hash . delete ( relation_key ) return unless data_hashes data_hashes = [ data_hashes ] unless data_hashes . is_a? ( Array ) relation_index = 0 while data_hash = data_hashes . shift process_project_relation_item! ( relation_key , relation_definition , relation_index , data_hash ) relation_index += 1 end 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 )
# we do not care if we process array or hash # consume and remove objects from memory
relation_key
<not_specific>
relation_definition
<not_specific>