improvement: support {:ignore, changeset} from error handlers

improvement: add read action metadata
This commit is contained in:
Zach Daniel 2023-01-28 09:02:21 -05:00
parent 306ecd01e4
commit 7dfcd2d3dd
3 changed files with 7 additions and 0 deletions

View file

@ -3237,6 +3237,9 @@ defmodule Ash.Changeset do
:ignore ->
changeset
{:ignore, changeset} ->
changeset
%__MODULE__{} = changeset ->
%{changeset | valid?: false}

View file

@ -14,6 +14,7 @@ defmodule Ash.Resource.Actions.Read do
arguments: [],
preparations: [],
touches_resources: [],
metadata: [],
type: :read
]

View file

@ -479,6 +479,9 @@ defmodule Ash.Resource.Dsl do
],
pagination: [
@pagination
],
metadata: [
@metadata
]
],
args: [:name]