Skip to content

Not compatible with strict loading by default #122

Closed

Description

@joeldrapper

It looks like some of the queries aren't compatible with a strict_loading_by_default configuration.

With this configuration in application.rb, solid_queue doesn't work.

config.active_record.strict_loading_by_default = true

I will try to find some time to dig into his and open a fix.

Activity

  1. rosa commented on Jan 17, 2024

    @rosa
    Member

    Ooh, totally @joeldrapper! Thanks for pointing this out. I didn't think of strict_loading_by_default when I was working on this because we've never used that in our apps, so it didn't even cross my mind 😓 🤦‍♀️

    If you have time to contribute a fix, that'd be incredible, but if not, we'll definitely tackle this down the road.

    Thank you 🙏

  2. added a commit that references this issue on Oct 7, 2024
    eec6c23
  3. JoeDupuis commented on Oct 7, 2024

    @JoeDupuis
    Contributor

    I spent an absurd amount of time trying to strict load the gem's models. 🤦
    I don't think it's worth it. I opened a PR (#375) to turn strict loading off explicitly on the models. This will allow apps with strict_loading_by_default enabled to use the gem without crashing.

    Here's the (WIP) patch to enable strict loading inside of the gem just to give an idea: JoeDupuis#1

  4. gobijan commented on Jun 20, 2025

    @gobijan

    I also stumbled upon this. Turning strict_loading off for now at least in dev where I want to be able to check the jobs etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions