From bf7a406e2b218867cd130afd4a6ea0b0f1b31379 Mon Sep 17 00:00:00 2001 From: Joshua Wehner Date: Mon, 17 Apr 2023 15:15:24 +0200 Subject: [PATCH] Tell Bullet to ignore unused distinct_reaction_categories (#19332) --- config/environments/development.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index 039d0c7cd..a3177e59a 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -138,6 +138,7 @@ Rails.application.configure do # Suppress incorrect warnings from Bullet due to included columns: https://github.com/flyerhzm/bullet/issues/147 Bullet.add_safelist(type: :unused_eager_loading, class_name: "Article", association: :top_comments) Bullet.add_safelist(type: :unused_eager_loading, class_name: "Article", association: :collection) + Bullet.add_safelist(type: :unused_eager_loading, class_name: "Article", association: :distinct_reaction_categories) Bullet.add_safelist(type: :unused_eager_loading, class_name: "Comment", association: :user) # There were some warnings about eager loading the organization for a display ad, however since the code goes down # different paths (in_house where we don’t need the organization info vs external/community where we need the