lib/gitlab/import_export/project_tree_restorer.rb
# Older, serialized CI pipeline exports may only have a
# merge_request_id and not the full hash of the merge request. To
# import these pipelines, we need to preserve the mapping between
# the old and new the merge request ID.
Older, serialized CI pipeline exports may only have a
merge_request_id and not the full hash of the merge request. To
import these pipelines, we need to preserve the mapping between
the old and new the merge request ID.
Older serialized CI pipeline exports may only have a merge_request_id and not the full hash of the merge request . To import these pipelines we need to preserve the mapping between the old and new the merge request ID .
def save_id_mapping(relation_key, data_hash, relation_object)
        return unless relation_key == 'merge_requests'
        merge_requests_mapping[data_hash['id']] = relation_object.id
      end
def save_id_mapping ( relation_key , data_hash , relation_object ) return unless relation_key == 'merge_requests' merge_requests_mapping [ data_hash [ 'id' ] ] = relation_object . id end
Older, serialized CI pipeline exports may only have a
merge_request_id and not the full hash of the merge request.
Older serialized CI pipeline exports may only have a merge_request_id and not the full hash of the merge request .
relation_key
<not_specific>
data_hash
<not_specific>
relation_object
<not_specific>