-
-
Notifications
You must be signed in to change notification settings - Fork 118
fix: return skipped upserts in bulk_create #626
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
Conversation
lib/data_layer.ex
Outdated
else | ||
# TODO: what if there are less results than changesets because of upsert conditions? | ||
{:ok, | ||
Stream.zip_with(results, changesets, fn result, changeset -> |
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.
Your comment here is interesting. Yeah I think we may need to get the appropriate changeset by looking at the identity values from the changesets similarly to what you're doing above.
6c624e4
to
58dd9d2
Compare
ae0e811
to
0c80433
Compare
LMK when this is ready for re-review 🙇 |
Should be ready. The failing test is from main |
🚀 Thank you for your contribution! 🚀 |
Contributor checklist
Leave anything that you believe does not apply unchecked.
extra context
Requires an Ash version upgrade to make the test pass.