You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need a way to configure other actions than defaults. Users should be able to configure the Ash action being used for destroying, reading and updating items. We also need a way of passing additional inputs as well as options to Ash functions, e.g., to provide the actor of the action.
We might create additional adapter options for the ash adapter that can be configured by users to return the action, input, and a list of options.
adapter_config: [resource: Demo.Helpdesk.Ticket,# returns a tuple with action name, inputs and options passed to the `update` actiondelete_all: fnassigns->{:mydestroy,%{foo: "bar"},actor: assigns.current_user}end],
The text was updated successfully, but these errors were encountered:
Flo0807
changed the title
Create additional adapter options for Ash to support other actions than defaults
Ash: Support other actions than defaults
Jan 31, 2025
We need a way to configure other actions than defaults. Users should be able to configure the Ash action being used for destroying, reading and updating items. We also need a way of passing additional inputs as well as options to Ash functions, e.g., to provide the actor of the action.
We might create additional adapter options for the ash adapter that can be configured by users to return the action, input, and a list of options.
The text was updated successfully, but these errors were encountered: