gitlab-org--gitlab-foss/lib
Sean McGivern 2c2422d54e Fix MR diffs created with gitaly_diff_between enabled
When we save merge request diffs to the database, we need to expand the diff
before doing so. That's so that we can expand diffs (within the normal limits)
without hitting the repository, but just by going to the database.

This is done implicitly - diffs are expanded unless we say otherwise. However,
we have another option we can pass, that lets us enforce diff size limits, that
defaults to true.

Prior to this commit:

- The Rugged code path defaulted to setting `expanded: true` and
  `enforce_limits: true`.
- The Gitaly code path defaulted to setting `expanded: false` and
  `enforce_limits: true`.

This was introduced by eb36fa17a6, which
implemented the initial feature. Since then, if the `gitaly_diff_between`
feature flag was enabled, MRs would have diffs that could not be expanded in
some cases, with no fix other than to disable the feature flag and force push to
the MR to refresh the diff in the database.
2018-06-29 14:25:35 +01:00
..
api Merge branch 'straight-comparision-mode' into 'master' 2018-06-28 09:04:18 +00:00
assets
backup Move repo backup RPC's to opt-out 2018-06-25 16:21:54 +02:00
banzai Remove unused asset host logic from GfmPipeline and EmojiFilter spec 2018-06-29 11:21:13 +02:00
bitbucket Import bitbucket issues that are reported by an anonymous user 2018-05-24 13:28:58 +02:00
constraints Initial setup GraphQL using graphql-ruby 1.8 2018-06-06 10:58:54 +02:00
container_registry
declarative_policy
generators/rails/post_deployment_migration
gitaly Gitaly metrics check for read/writeability 2018-06-27 08:56:19 +02:00
gitlab Fix MR diffs created with gitaly_diff_between enabled 2018-06-29 14:25:35 +01:00
google_api
haml_lint
json_web_token
mattermost Updated Mattermost integration to use Mattermost API v4 2018-05-28 09:18:43 -04:00
microsoft_teams Fixes Microsoft Teams notifications for pipeline events 2018-06-12 13:32:11 +02:00
object_storage Update validator 2018-06-04 22:31:01 +02:00
omni_auth/strategies Eliminate constants warnings by: 2018-06-01 13:46:46 +08:00
peek Resolve "Performance bar Gitaly modal is hard to read" 2018-06-14 16:34:58 +00:00
rouge
rspec_flaky Eliminate constants warnings by: 2018-06-01 13:46:46 +08:00
support Export assigned issues in iCalendar feed 2018-05-31 14:01:04 +00:00
system_check Deny repository disk access in development and test 2018-06-14 11:18:25 +00:00
tasks Fixes an issue where migrations instead of schema loading were run 2018-06-27 13:39:55 -07:00
additional_email_headers_interceptor.rb
after_commit_queue.rb
backup.rb Find and mark more Git disk access locations 2018-06-05 15:51:14 +00:00
banzai.rb
carrier_wave_string_file.rb
declarative_policy.rb
disable_email_interceptor.rb
email_template_interceptor.rb
event_filter.rb
expand_variables.rb
extracts_path.rb
feature.rb Use RequestStore to memoize Flipper features so that memoized values are cleared between requests 2018-06-01 17:51:40 +02:00
file_size_validator.rb
forever.rb
gitlab.rb Add installation type to usage ping data 2018-06-07 15:01:20 +00:00
gt_one_coercion.rb
milestone_array.rb
mysql_zero_date.rb Mysql fixes for Rails 5 2018-06-21 22:06:50 +02:00
static_model.rb
system_check.rb
unfold_form.rb
uploaded_file.rb
version_check.rb