gitlab-org--gitlab-foss/spec/lib/gitlab/gitaly_client
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
..
blob_service_spec.rb Incorporate Gitaly's RPCs for Gitlab::Git::LfsChanges 2018-03-02 17:12:08 -03:00
blobs_stitcher_spec.rb Migrate Git::Blob.batch to Gitaly 2018-02-08 00:26:45 +01:00
commit_service_spec.rb Fix MR diffs created with gitaly_diff_between enabled 2018-06-29 14:25:35 +01:00
conflict_files_stitcher_spec.rb Migrate Repository#can_be_merged? to Gitaly 2018-01-11 16:40:13 +01:00
conflicts_service_spec.rb Migrate Repository#can_be_merged? to Gitaly 2018-01-11 16:40:13 +01:00
diff_spec.rb Remove superfluous lib: true, type: redis, service: true, models: true, services: true, no_db: true, api: true 2017-07-27 14:31:53 +02:00
diff_stitcher_spec.rb Remove superfluous lib: true, type: redis, service: true, models: true, services: true, no_db: true, api: true 2017-07-27 14:31:53 +02:00
health_check_service_spec.rb Add a gRPC health check to ensure Gitaly is up 2018-01-24 15:47:27 -08:00
notification_service_spec.rb Change all `:empty_project` to `:project` 2017-08-02 17:47:31 -04:00
operation_service_spec.rb Don't use Gitlab::Utils.nlbr in Gitlab::Git 2018-06-11 10:42:09 +00:00
ref_service_spec.rb Migrate Git::Repository#delete_refs to Gitaly 2018-01-30 23:48:51 +01:00
remote_service_spec.rb Test if remote repository exists before cloning 2018-03-27 14:43:21 +02:00
repository_service_spec.rb Client implementation GetRawChanges 2018-05-07 15:37:49 +02:00
storage_settings_spec.rb Remove method call to deprecated method 2018-05-11 08:57:06 +02:00
util_spec.rb Remove support for absolute dirs from Git::Env 2018-03-30 09:19:46 +00:00
wiki_service_spec.rb Incorporate Gitaly's WikiService.WikiGetAllPages RPC 2017-11-13 16:54:50 -03:00