Fix issues controller N+1 failure

EE needs :request_store to cache license queries - otherwise we will
blow past the query limit just with `SELECT * FROM licenses` over and
over.
This commit is contained in:
Sean McGivern 2018-10-05 11:35:20 +01:00
parent ae014e1897
commit c1667dea04

View file

@ -638,7 +638,7 @@ describe Projects::IssuesController do
id: id
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
labels = create_list(:label, 10, project: project).map(&:to_reference)
issue = create(:issue, project: project, description: 'Test issue')