gitlab-org--gitlab-foss/spec
Zeger-Jan van de Weg f9565e3039
Batchload blobs for diff generation
After installing a new gem, batch-loader, a construct can be used to
queue data to be fetched in bulk. The gem was also introduced in both
gitlab-org/gitlab-ce!14680 and gitlab-org/gitlab-ce!14846, but those mrs
are not merged yet.

For the generation of diffs, both the old blob and the new blob need to
be loaded. This for every file in the diff, too. Now we collect all
these so we do 1 fetch. Three `.allow_n_plus_1_calls` have been removed,
which I expect to be valid, but this needs to be confirmed by a full CI
run.

Possibly closes:
- https://gitlab.com/gitlab-org/gitlab-ce/issues/37445
- https://gitlab.com/gitlab-org/gitlab-ce/issues/37599
- https://gitlab.com/gitlab-org/gitlab-ce/issues/37431
2017-11-21 13:53:26 +01:00
..
bin
config
controllers Batchload blobs for diff generation 2017-11-21 13:53:26 +01:00
db/production
factories Merge branch '18040-rubocop-line-break-after-guard-clause' into 'master' 2017-11-20 09:22:14 +00:00
features Merge branch '39821-fix-commits-list-with-multi-file-editor' into 'master' 2017-11-21 08:49:35 +00:00
finders Fix users autocomplete in a subgroup 2017-11-13 13:19:54 +00:00
fixtures Add issue sidebar and toggle_subscription endpoint in board issues data 2017-11-20 12:38:53 -02:00
helpers Truncate tree to max 1,000 items and display notice to users 2017-11-15 08:28:33 -06:00
initializers
javascripts Merge branch '38869-milestone' into 'master' 2017-11-21 10:45:23 +00:00
lib Batchload blobs for diff generation 2017-11-21 13:53:26 +01:00
mailers Fix image diff notes email 2017-11-13 12:39:01 -02:00
migrations Merge branch 'bvl-delete-empty-fork-networks' into 'master' 2017-11-17 14:21:36 +00:00
models Batchload blobs for diff generation 2017-11-21 13:53:26 +01:00
policies Improve spec 2017-11-07 22:45:55 +09:00
presenters
requests Merge branch '18040-rubocop-line-break-after-guard-clause' into 'master' 2017-11-20 09:22:14 +00:00
routing Don't add a trailing slash in group redirects 2017-11-16 17:13:40 +00:00
rubocop/cop Merge branch '18040-rubocop-line-break-after-guard-clause' into 'master' 2017-11-20 09:22:14 +00:00
serializers Merge branch 'master' into 38464-k8s-apps 2017-11-08 01:46:53 +09:00
services Clean up schema of the "merge_requests" table 2017-11-20 12:45:33 +01:00
sidekiq/cron
support Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
tasks Fix slow gitaly dev test bundle 2017-11-21 12:28:02 +00:00
unicorn Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
uploaders
validators
views Merge branch '37824-many-branches-lock-server' into 'master' 2017-11-07 21:49:27 +00:00
workers rework the logging to be simpler and add a threshold 2017-11-14 09:22:15 -05:00
factories_spec.rb
rails_helper.rb
rake_helper.rb
simplecov_env.rb
spec_helper.rb