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

Eager loading in ActiveRecord::refresh() (without breaking BC) #20290

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

chriscpty
Copy link
Contributor

Q A
Is bugfix?
New feature? ✔️
Breaks BC?
Fixed issues #20277

I'll post a breaking but prettier implementation (for 2.2.x) in a separate pull request.

chriscpty and others added 10 commits October 17, 2024 14:49
+ use array_column for faster mapping if no callbacks or grouping are required
+ also test with callbacks
! don't use array_column if ArrayHelper strings are paths
+ add according tests
+ add BaseStringHelper::contains() helper function and according tests
! use strpos rather than polyfill
- remove BaseStringHelper::contains
+ implementation with BC break
+ BC safe implementation
Copy link

codecov bot commented Dec 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.85%. Comparing base (65e3369) to head (c887d4e).

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #20290   +/-   ##
=========================================
  Coverage     64.85%   64.85%           
- Complexity    11409    11411    +2     
=========================================
  Files           431      431           
  Lines         37142    37145    +3     
=========================================
+ Hits          24087    24090    +3     
  Misses        13055    13055           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Successfully merging this pull request may close these issues.

1 participant