Skip to content

Conversation

barnabasJ
Copy link
Contributor

@barnabasJ barnabasJ commented Oct 1, 2025

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

extra context

Requires an Ash version upgrade to make the test pass.

@barnabasJ barnabasJ changed the title return skipped upserts in bulk_create fix: return skipped upserts in bulk_create Oct 1, 2025
else
# TODO: what if there are less results than changesets because of upsert conditions?
{:ok,
Stream.zip_with(results, changesets, fn result, changeset ->
Copy link
Contributor

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.

@barnabasJ barnabasJ force-pushed the fix/return-skipped-records-bulk-create branch from ae0e811 to 0c80433 Compare October 11, 2025 11:51
@zachdaniel
Copy link
Contributor

LMK when this is ready for re-review 🙇

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.

2 participants