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

Update IdentityCache compiler to generate correct multi methods #1758

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

bitwise-aiden
Copy link
Contributor

Motivation

Closes: #1754

Implementation

While researching this, I noticed that there were some missing methods for the default cache_index case as well. So as @KaanOzkan suggested in the issue, removing the length check fixed both issues.

Tests

I've added some new tests and fixed old ones to illustrate the cases we are now expecting.

@bitwise-aiden bitwise-aiden requested a review from a team as a code owner January 11, 2024 17:39
@bitwise-aiden bitwise-aiden changed the title Ba identity cache multi Update IdentityCache compiler to generate correct multi methods Jan 11, 2024
lib/tapioca/dsl/compilers/identity_cache.rb Outdated Show resolved Hide resolved
Co-authored-by: Emily Samp <emily.samp@shopify.com>
@vinistock vinistock merged commit 9d243f5 into main Jan 15, 2024
33 checks passed
@vinistock vinistock deleted the ba-identity-cache-multi branch January 15, 2024 18:15
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.

IdentityCache compiler misses a fetch_multi_*
4 participants