Commit 838c1076 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'backport-ce-to-ee-spec-fix' into 'master'

Fix issues controller N+1 failure

See merge request gitlab-org/gitlab-ce!22141
parents bdb7ebf8 c1667dea
...@@ -638,7 +638,7 @@ describe Projects::IssuesController do ...@@ -638,7 +638,7 @@ describe Projects::IssuesController do
id: id id: id
end end
it 'avoids (most) N+1s loading labels' do it 'avoids (most) N+1s loading labels', :request_store do
label = create(:label, project: project).to_reference label = create(:label, project: project).to_reference
labels = create_list(:label, 10, project: project).map(&:to_reference) labels = create_list(:label, 10, project: project).map(&:to_reference)
issue = create(:issue, project: project, description: 'Test issue') issue = create(:issue, project: project, description: 'Test issue')
......
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