Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
printercu opened this issue Apr 27, 2018 · 0 comments
Open

Comments

@printercu
Copy link
Contributor

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 bcb7b69

What else can I provide to help investigate this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant