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:
parent
ae014e1897
commit
c1667dea04
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue