Skip to content

Error with missing changed? in context with bulk_update #66

@nallwhy

Description

@nallwhy

Describe the bug

Ash.bulk_update!(records, :update, %{field: value},
  strategy: [:stream, :atomic, :atomic_batches],
  return_errors?: true
)

** (KeyError) key :changed? not found in: %{private: %{authorize?: true}, bulk_update: %{index: 0}}

crashes on
https://github.com/nallwhy/ash_paper_trail/blob/cc5f2c4385f9120ef570b552da505dfd7df941fa/lib/resource/changes/create_new_version.ex#L21

To Reproduce

nallwhy@fbebbeb

Expected behavior

no error

** Runtime

  • Elixir version
  • Erlang version
  • OS
  • Ash version: 3.0.0-rc.46
  • any related extension versions
    • Ash PaperTrail: head

Additional context

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions