Describe the bug
bulk_create does not respect multitenancy
To Reproduce
Resource needs to have
multitenancy do
strategy :attribute
attribute :organization_id
end
Try to bulk create Ash.bulk_create!(entries, MODULE, :action, return_errors?: true) If other rules are ok, it will create entries, without organization_id field value.
Expected behavior
Throw error, if no tenant is provided.
Runtime
Elixir version
Erlang version
OS
Ash version
any related extension versions
Additional context
Add any other context about the problem here.
Describe the bug bulk_create does not respect multitenancy
To Reproduce Resource needs to have
multitenancy do strategy :attribute attribute :organization_id end
Try to bulk create Ash.bulk_create!(entries, MODULE, :action, return_errors?: true) If other rules are ok, it will create entries, without organization_id field value.
Expected behavior Throw error, if no tenant is provided.
Runtime
Additional context Add any other context about the problem here.