mirror of
https://github.com/ash-project/ash_phoenix.git
synced 2024-09-19 23:02:48 +12:00
chore: update splode, handle new ets features
This commit is contained in:
parent
e47eb38786
commit
0682d37391
3 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue