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

AR default scopes: only include all_queries default scopes on reload #46742

Merged
merged 1 commit into from
Dec 16, 2022

Conversation

ghiculescu
Copy link
Member

@ghiculescu ghiculescu commented Dec 15, 2022

Fixes #46731

The current behaviour on reload is to apply all the default scopes, if any are marked as all_queries: true. The correct behaviour is to only apply all_queries: true default scopes on reload.

@ghiculescu
Copy link
Member Author

The CI issue seems unrelated, and @gustavompo has confirmed this resolves the reported issue.

@eileencodes eileencodes merged commit d2391f3 into rails:main Dec 16, 2022
@eileencodes
Copy link
Member

Thank you!

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

Successfully merging this pull request may close these issues.

default_scope side effect when using all_queries: true
2 participants