Commit 680679f6 authored by Douglas Barbosa Alexandre's avatar Douglas Barbosa Alexandre

Merge branch 'georgekoltsov/add-diff-back-to-excluded-attributes' into 'master'

Add diff attribute back to excluded list for Import/Export

See merge request gitlab-org/gitlab!76763
parents 998bffc4 59e912c5
...@@ -413,7 +413,6 @@ included_attributes: ...@@ -413,7 +413,6 @@ included_attributes:
- :b_mode - :b_mode
- :too_large - :too_large
- :binary - :binary
- :diff
metrics: metrics:
- :created_at - :created_at
- :updated_at - :updated_at
...@@ -797,6 +796,7 @@ excluded_attributes: ...@@ -797,6 +796,7 @@ excluded_attributes:
- :verification_checksum - :verification_checksum
- :verification_failure - :verification_failure
merge_request_diff_files: merge_request_diff_files:
- :diff
- :external_diff_offset - :external_diff_offset
- :external_diff_size - :external_diff_size
- :merge_request_diff_id - :merge_request_diff_id
......
...@@ -131,7 +131,9 @@ module Gitlab ...@@ -131,7 +131,9 @@ module Gitlab
end end
def setup_diff def setup_diff
@relation_hash['diff'] = @relation_hash.delete('utf8_diff') diff = @relation_hash.delete('utf8_diff')
parsed_relation_hash['diff'] = diff
end end
def setup_pipeline def setup_pipeline
......
...@@ -253,7 +253,6 @@ MergeRequestDiffFile: ...@@ -253,7 +253,6 @@ MergeRequestDiffFile:
- b_mode - b_mode
- too_large - too_large
- binary - binary
- diff
MergeRequestContextCommit: MergeRequestContextCommit:
- id - id
- authored_date - authored_date
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment