chore: update splode, handle new ets features

This commit is contained in:
Zach Daniel 2024-04-25 22:35:39 -04:00
parent e47eb38786
commit 0682d37391
3 changed files with 4 additions and 0 deletions

View file

@ -20,6 +20,7 @@ defmodule AshPhoenix.Test.Author do
defaults([:create, :read, :update])
update :update_with_embedded_argument do
require_atomic? false
# This an empty change, just so test how we handle errors on embedded arguments
accept []
argument :embedded_argument, AshPhoenix.Test.EmbeddedArgument, allow_nil?: false

View file

@ -38,6 +38,7 @@ defmodule AshPhoenix.Test.Comment do
update :update do
primary?(true)
require_atomic? false
argument(:post, :map)
change(manage_relationship(:post, type: :direct_control))
end

View file

@ -44,12 +44,14 @@ defmodule AshPhoenix.Test.Post do
end
update :update_with_replace do
require_atomic? false
argument(:comments, {:array, :map})
change(manage_relationship(:comments, type: :append_and_remove))
end
update :update do
primary?(true)
require_atomic? false
argument(:author, :map, allow_nil?: true)
argument(:comments, {:array, :map})
change(manage_relationship(:comments, type: :direct_control))