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:
- :b_mode
- :too_large
- :binary
- :diff
metrics:
- :created_at
- :updated_at
......@@ -797,6 +796,7 @@ excluded_attributes:
- :verification_checksum
- :verification_failure
merge_request_diff_files:
- :diff
- :external_diff_offset
- :external_diff_size
- :merge_request_diff_id
......
......@@ -131,7 +131,9 @@ module Gitlab
end
def setup_diff
@relation_hash['diff'] = @relation_hash.delete('utf8_diff')
diff = @relation_hash.delete('utf8_diff')
parsed_relation_hash['diff'] = diff
end
def setup_pipeline
......
......@@ -253,7 +253,6 @@ MergeRequestDiffFile:
- b_mode
- too_large
- binary
- diff
MergeRequestContextCommit:
- id
- 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