From 14bd84b61276ef29b97d23642d698de769bacfd2 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 20 Mar 2023 15:19:03 +0000 Subject: Add latest changes from gitlab-org/gitlab@15-10-stable-ee --- app/graphql/types/board_list_type.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/graphql/types/board_list_type.rb') diff --git a/app/graphql/types/board_list_type.rb b/app/graphql/types/board_list_type.rb index 2352a21bd87..20661da8d94 100644 --- a/app/graphql/types/board_list_type.rb +++ b/app/graphql/types/board_list_type.rb @@ -55,7 +55,7 @@ module Types # board lists have a data dependency on label - so we batch load them here def title BatchLoader::GraphQL.for(object).batch do |lists, callback| - ActiveRecord::Associations::Preloader.new.preload(lists, :label) # rubocop: disable CodeReuse/ActiveRecord + ActiveRecord::Associations::Preloader.new(records: lists, associations: :label).call # rubocop: disable CodeReuse/ActiveRecord # all list titles are preloaded at this point lists.each { |list| callback.call(list, list.title) } -- cgit v1.2.1