Commit c1667dea authored by Sean McGivern's avatar Sean McGivern

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.
parent ae014e18
...@@ -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