gitlab-org--gitlab-foss/spec/controllers/projects
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
..
clusters Fix Projects::Clusters::ApplicationsController failures 2017-11-07 17:42:58 +01:00
merge_requests Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
registry Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
settings Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
artifacts_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
avatars_controller_spec.rb
badges_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
blame_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
blob_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
boards_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
branches_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
clusters_controller_spec.rb Merge remote-tracking branch 'origin/master' into 35616-move-gke-form-1st-iteration 2017-11-06 22:38:44 +01:00
commit_controller_spec.rb Batchload blobs for diff generation 2017-11-21 13:53:26 +01:00
commits_controller_spec.rb Renders 404 in commits controller if no commits are found 2017-10-18 23:41:00 -02:00
compare_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
cycle_analytics_controller_spec.rb
deploy_keys_controller_spec.rb
deployments_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
discussions_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
environments_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
find_file_controller_spec.rb
forks_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
graphs_controller_spec.rb
group_links_controller_spec.rb
hooks_controller_spec.rb
imports_controller_spec.rb
issues_controller_spec.rb Refactor issuable destroy action 2017-11-06 13:02:50 +01:00
jobs_controller_spec.rb Reduce changes 2017-11-07 22:57:58 +09:00
labels_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
mattermosts_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
merge_requests_controller_spec.rb Refactor issuable destroy action 2017-11-06 13:02:50 +01:00
milestones_controller_spec.rb Allow promoting project milestones to group milestones 2017-10-31 15:03:52 +00:00
notes_controller_spec.rb Make sure NotesActions#noteable returns a Noteable in the update action 2017-11-16 15:12:23 +01:00
pages_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
pages_domains_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
pipeline_schedules_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
pipelines_controller_spec.rb Cache commits on the repository model 2017-10-27 12:49:11 +02:00
pipelines_settings_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
project_members_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
prometheus_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
protected_branches_controller_spec.rb
protected_tags_controller_spec.rb
raw_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
refs_controller_spec.rb fixed specs 2017-11-06 10:52:03 +00:00
releases_controller_spec.rb
repositories_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
runners_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
services_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
snippets_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
tags_controller_spec.rb
templates_controller_spec.rb
todos_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
tree_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
uploads_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
variables_controller_spec.rb Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
wikis_controller_spec.rb