bullet icon indicating copy to clipboard operation
bullet copied to clipboard

False positive "Add to your finder" suggestion after updating to 5.6.0

Open printercu opened this issue 7 years ago • 0 comments

Hi!

I had rails 5.1.2 with bullet 5.5.1. I've tried to update rails to 5.1.6 and found that it's incompatible with old bullet version. I've updated bullet to the latest 5.7.5 and got an error:

     Bullet::Notification::UnoptimizedQueryError:
       user: max
       POST /buildings/5904/snapshot
       USE eager loading detected
         Building => [:details]
         Add to your finder: :includes => [:details]

In this place I don't have any collections finder, the simplified code is like:

resource = Building.find(id)
copy = resource.dup
copy.details = resource.details.dup
copy.save # bullet points here

I've tried different versions of bullet & rails and found, that this error appears in 5.6.0 with rails 5.1.2 (5.1.6 works only with bullet >= 5.6.1).

I've checked commits in 5.6.0, maybe the most related is https://github.com/flyerhzm/bullet/commit/bcb7b69b004f44da706cb953587297a9d4fb6357

What else can I provide to help investigate this issue?

printercu avatar Apr 27 '18 08:04 printercu