-
Notifications
You must be signed in to change notification settings - Fork 3
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
[change] Drop support for depends_on ActiveRecord model #43
Conversation
Pull Request Branch: donaldong/change_drop_support_for2a4f3a8 Pull Request Link: #43
50d2aec
to
f0cfea3
Compare
Codecov Report
@@ Coverage Diff @@
## main #43 +/- ##
==========================================
- Coverage 97.10% 97.05% -0.06%
==========================================
Files 32 32
Lines 1934 1933 -1
==========================================
- Hits 1878 1876 -2
- Misses 56 57 +1
Continue to review full report at Codecov.
|
memo = model.redis_memo_class_memoizable | ||
nodes[memo.cache_key] = memo |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can move this out of the inner loop?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that is true!
Pull Request Branch: donaldong/change_drop_support_for2a4f3a8 Pull Request Link: #43
move class memo out of the inner loop |
Pull Request Branch: donaldong/change_drop_support_for2a4f3a8 Pull Request Link: #43
f0cfea3
to
8363bba
Compare
Pull Request Branch: donaldong/change_drop_support_for2a4f3a8 Pull Request Link: #43
8363bba
to
cd1f807
Compare
Summary
This marks
depends_on Model, **attrs
as a private API. Users can no longer set dependencies on some queries without callingextract_bind_params
.Test Plan