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 6c624e4 to 58dd9d2 Compare October 2, 2025 14:37
@barnabasJ barnabasJ self-assigned this Oct 2, 2025
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