Ash Framework
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.
JoinAsh Framework
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.
JoinSet error message on attribute using AshAuthentication.Strategy.Password.PasswordValidation
:current_password
attribute?
```elixir
AshPhoenix.Form.submit(socket.assigns.password_form, params: params, actor: socket.assigns.current_user) ...undefined root_level_errors? true
If I set an argument default in a Flow I have it `nil` in a custom step
Testing with log_in_user
Limiting action sort and filter
filtering_on
policies, but I'd like to get it out of my GraphQL schema and JSON:API altogether. Is there a way to define at the action and/or resource level which attributes and relationships are allowed to be sorted and filtered on?
If there is a way to do this, is there also a flag that would set these to []
by default globally? I'd prefer to explicitly allow rather than deny.
This seems to be in-line with the planned changes for Ash 3.0, re: accept
defaulting to []
....function to_form/1 is undefined
Shorthand for code interface filters
Resolve notifications warning in when running tests
Nested form with filtered subform elements
``` def tweet_load(current_user) do...
Parse a new FilterForm from url params
What is the "Ash way" to auto update related resources ?
Not getting pub_sub notification
Singleton resources
Ash.Resource
with create
, read
and update
actions and:
- Does not allow anybody to call create
, and does not expose it via frontend channels;
- Automatically populates the record if it does not exist with the bare create
using authorize?: false
;...How to create has_one relationships in a nested form
Transaction
that has a has_one
relationship with a resource called RecurrencePattern
. When creating a new transaction (usually through a form in LV) I want to also create a matching recurrence_pattern. This works great when using the create
action directly, but I'm getting an error when using an AshPhoenix.Form
(I believe I got it to work at some point but don't know how to get back there again 😅 )
This works:
```elixir
Transaction.create!(%{...How to do polymorphic relationships, but with only 1 table?
transactions
with the following columns:
```...Nested form error - using create when I (think I) want update?
Load relationships on inserted ressource
for_create
form?
The goal here is to simply append that newly inserted ressource to a list afterwards, but I need some relationships to be loaded on that ressource. I know I can do it manually, but I was wondering if there was a way to define some defaults "load" somewhere?
Thanks a lot in advance 🙂...AshStateMachine transitions from/to multiple states and no default initial state
from:
and to:
? Right now for the latter case it only makes sense if I can explicitly pass the state to transition to in the change builtin.
Can I not specify a default initial state, and simply require that it be one of a set of initial states and not be nil
?
Tagging this Core
for now....ash_admin update to Surface 0.10.0
How to compare a seed and loaded resource?
strip_metadata()
would make the comparable
```elixir
user = Ash.Seed.seed!(%User{...})
loaded_user = User.get_by_id!(user.id) |> Ash.Test.strip_metadata()...