How to prevent running underlying datalayer behaviour on delete? `set_result/2` isn't working.

What is the equivalent of Changeset.set_results/2 for destroy actions? The set_result is runing the underlying datalayer behavior on delete, but according to the documentation, it should not happen. https://hexdocs.pm/ash/Ash.Changeset.html#set_result/2 What am I missing?
# Default: mimic :ok
Ash.Changeset.set_result(changeset, {:ok, :ok})
# Default: mimic :ok
Ash.Changeset.set_result(changeset, {:ok, :ok})
Solution:
I pull the latest version, removed _build and tests started passing. https://github.com/ash-project/ash/issues/2424...
GitHub
set_result doesn't prevent running underlying datalayer behaviour...
Code of Conduct I agree to follow this project's Code of Conduct AI Policy I agree to follow this project's AI Policy, or I agree that AI was not used while creating this issue. Versions 3....
Jump to solution
2 Replies
ZachDaniel
ZachDaniel4w ago
@Kamaro sounds like a bug Please PR a failing test open an issue with a reproduction
Solution
Kamaro
Kamaro4w ago
I pull the latest version, removed _build and tests started passing. https://github.com/ash-project/ash/issues/2424
GitHub
set_result doesn't prevent running underlying datalayer behaviour...
Code of Conduct I agree to follow this project's Code of Conduct AI Policy I agree to follow this project's AI Policy, or I agree that AI was not used while creating this issue. Versions 3....

Did you find this page helpful?