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

Fix eager loading for DSL #1412

Merged
merged 1 commit into from
Feb 23, 2023
Merged

Conversation

jeffcarbs
Copy link
Contributor

Motivation

It appears that #1072 introduced a bug where the eager_load: option was not fully threaded through to the Tapioca::Loaders::Dsl.new so it was always falling back to the default value of true.

Implementation

Pass the given argument to Tapioca::Loaders::Dsl.new

Tests

There's no indication eager loading is/isn't used so there's not a straightforward way to test this specifically, but it's a one-line change that's pretty obvious.

@jeffcarbs jeffcarbs requested a review from a team as a code owner February 23, 2023 18:53
Copy link
Member

@paracycle paracycle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooops, thanks!

@paracycle paracycle merged commit 2e7d5eb into Shopify:main Feb 23, 2023
@jeffcarbs jeffcarbs deleted the fix-eager-loading branch February 24, 2023 02:59
@egiurleo egiurleo added the bugfix label Mar 9, 2023
@shopify-shipit shopify-shipit bot temporarily deployed to production March 10, 2023 16:06 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants