提交 c1667dea 编写于 作者: S 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.
上级 ae014e18
......@@ -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')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册