Skip to content

False positives #467

@aximuseng

Description

@aximuseng

Bullet is reporting this on my index page:

USE eager loading detected
  Budget => [:client]
  Add to your finder: :includes => [:client]

USE eager loading detected
  Expenditure => [:project]
  Add to your finder: :includes => [:project]
USE eager loading detected
  Expenditure => [:vendor]
  Add to your finder: :includes => [:vendor]
USE eager loading detected
  Expenditure => [:budget]
  Add to your finder: :includes => [:budget]

The thing is I have all these includes already added:

Expenditure.includes(:vendor, :budget)
Expenditure.includes(:budget, :vendor, :project)
Budget.includes(:client)

The if I add :projects to the first include I then get:

AVOID eager loading detected
  Budget => [:project]
  Remove from your finder: :includes => [:project]

For some background Expenditures belong to Budget and can have a vendor. Budget belongs to Project and Projects belong to Client.

I am either missing some nested includes here of these are false positives.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions