From 426f1c20b19e5bd98ee0ab8bd5f8851b683a79c6 Mon Sep 17 00:00:00 2001 From: charlieablett Date: Fri, 14 Jun 2019 10:20:03 +1200 Subject: Remove N+1 query for project and group boards - Add test for N+1 queries - Add destroyable lists scope to Board and List - Preload lists for both project and group boards --- lib/api/boards.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/api/boards.rb') diff --git a/lib/api/boards.rb b/lib/api/boards.rb index b7c77730afb..4e31f74f18a 100644 --- a/lib/api/boards.rb +++ b/lib/api/boards.rb @@ -27,7 +27,7 @@ module API end get '/' do authorize!(:read_board, user_project) - present paginate(board_parent.boards), with: Entities::Board + present paginate(board_parent.boards.with_associations), with: Entities::Board end desc 'Find a project board' do -- cgit v1.2.1