Tell Bullet to ignore unused distinct_reaction_categories (#19332)

This commit is contained in:
Joshua Wehner 2023-04-17 15:15:24 +02:00 committed by GitHub
parent bef1c4a1e0
commit bf7a406e2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 dont need the organization info vs external/community where we need the