Ignore legacy artifact columns in Project Import/Export

Ignore some columns
This commit is contained in:
Shinya Maeda 2019-06-10 21:34:21 +07:00
parent a0af34582c
commit c5c41ae065
4 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
title: Ignore legacy artifact columns in Project Import/Export
merge_request: 29427
author:
type: fixed

View File

@ -156,6 +156,9 @@ excluded_attributes:
- :when - :when
- :artifacts_file - :artifacts_file
- :artifacts_metadata - :artifacts_metadata
- :artifacts_file_store
- :artifacts_metadata_store
- :artifacts_size
- :commands - :commands
push_event_payload: push_event_payload:
- :event_id - :event_id

View File

@ -153,6 +153,9 @@ module Gitlab
@relation_hash.delete('trace') # old export files have trace @relation_hash.delete('trace') # old export files have trace
@relation_hash.delete('token') @relation_hash.delete('token')
@relation_hash.delete('commands') @relation_hash.delete('commands')
@relation_hash.delete('artifacts_file_store')
@relation_hash.delete('artifacts_metadata_store')
@relation_hash.delete('artifacts_size')
imported_object imported_object
elsif @relation_name == :merge_requests elsif @relation_name == :merge_requests

View File

@ -6223,7 +6223,10 @@
"erased_by_id": null, "erased_by_id": null,
"erased_at": null, "erased_at": null,
"type": "Ci::Build", "type": "Ci::Build",
"token": "abcd" "token": "abcd",
"artifacts_file_store": 1,
"artifacts_metadata_store": 1,
"artifacts_size": 10
}, },
{ {
"id": 72, "id": 72,