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

@barnabasJ barnabasJ self-assigned this Oct 1, 2025
@barnabasJ barnabasJ added the bug Something isn't working label Oct 1, 2025
Add a new capability value for the can? callback in datalayers.
If the data-layer doesn't support the option it falls back to
regular upserts.
not Ash.DataLayer.data_layer_can?(resource, :bulk_upsert_return_skipped) do
false
else
Ash.DataLayer.data_layer_can?(resource, :bulk_create)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets check this first, and then check the other stuff.

@barnabasJ barnabasJ changed the title WIP: handle return_skipped_upsert? in bulk creates handle return_skipped_upsert? in bulk creates Oct 2, 2025
@barnabasJ barnabasJ marked this pull request as ready for review October 2, 2025 16:02
@zachdaniel
Copy link
Contributor

Looks good but one question.

@zachdaniel
Copy link
Contributor

Feel free to merge once resolved ❤️

@barnabasJ
Copy link
Contributor Author

Feel free to merge once resolved ❤️

I would but I can't ;) merging is blocked without 1 approval and I don't have the rights to skip that

@zachdaniel zachdaniel merged commit 1b14b9f into main Oct 3, 2025
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants