Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: demonstrate error with bulk update on manual action (#1204)
The following error is produced 1) test manual updates are supported (Ash.Test.Actions.BulkUpdateTest) test/actions/bulk/bulk_update_test.exs:358 ** (CaseClauseError) no case clause matching: nil code: |> Ash.bulk_update!(:update_manual, %{}, stacktrace: (ash 3.0.7) lib/ash/actions/update/bulk.ex:2076: anonymous fn/11 in Ash.Actions.Update.Bulk.run_batch/10 (elixir 1.16.2) lib/enum.ex:1264: anonymous fn/3 in Enum.flat_map/2 (stdlib 5.0.2) maps.erl:416: :maps.fold_1/4 (elixir 1.16.2) lib/enum.ex:2540: Enum.flat_map/2 (ash 3.0.7) lib/ash/actions/update/bulk.ex:1966: Ash.Actions.Update.Bulk.run_batch/10 (ash 3.0.7) lib/ash/actions/update/bulk.ex:1505: Ash.Actions.Update.Bulk.do_handle_batch/13 (ash 3.0.7) lib/ash/actions/update/bulk.ex:1042: anonymous fn/12 in Ash.Actions.Update.Bulk.do_stream_batches/7 (elixir 1.16.2) lib/stream.ex:613: anonymous fn/4 in Stream.map/2 (elixir 1.16.2) lib/stream.ex:1816: anonymous fn/3 in Enumerable.Stream.reduce/3 (elixir 1.16.2) lib/stream.ex:273: anonymous fn/4 in Stream.chunk_while_fun/2 (elixir 1.16.2) lib/stream.ex:1159: anonymous fn/3 in Stream.with_index/2 (elixir 1.16.2) lib/stream.ex:1079: Stream.do_transform_each/3 (elixir 1.16.2) lib/stream.ex:1816: anonymous fn/3 in Enumerable.Stream.reduce/3 (elixir 1.16.2) lib/enum.ex:4839: Enumerable.List.reduce/3 (elixir 1.16.2) lib/stream.ex:1027: Stream.do_transform_inner_list/7 (elixir 1.16.2) lib/stream.ex:1828: Enumerable.Stream.do_each/4 (elixir 1.16.2) lib/stream.ex:1052: Stream.do_transform_inner_enum/7 (elixir 1.16.2) lib/stream.ex:1828: Enumerable.Stream.do_each/4 (elixir 1.16.2) lib/stream.ex:943: Stream.do_transform/5 (elixir 1.16.2) lib/enum.ex:4396: Enum.reverse/1 (elixir 1.16.2) lib/enum.ex:3728: Enum.to_list/1 (ash 3.0.7) lib/ash/actions/update/bulk.ex:1070: Ash.Actions.Update.Bulk.run_batches/3 (ash 3.0.7) lib/ash/actions/update/bulk.ex:386: Ash.Actions.Update.Bulk.run/6 (ash 3.0.7) lib/ash.ex:2209: Ash.bulk_update!/4 test/actions/bulk/bulk_update_test.exs:373: (test)
- Loading branch information