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()...Filter a change by action_type
create
, update
and destroy
.
Looking at the Ash.Resource.Validation.Builtins
I can only see the action_is/1
option which allows me to specific an action by name, but I can't find any action_type/1
options or something similar.
Is that not possible?...Use change manage_relationship without argument in create action.
User
which has a has_one
relationship with another resource called ImpersonatePermissions
. When I create a new user, I want to also create a new in the impersonate_permissions table. To do that, I believe that I need to use manager_relationship
.
I was able to make this work with a custom change function:
```elixir...Multi-Location + Multi-Tenant Read Replica

Multiple filters giving unexpected result
Create relationship with itself
User
resource and I add a feature that an user can create another user, meaning that I want to add a field called created_by
and created_by_id
which is also an User
...Migration generator splitting composite primary keys
many_to_many
relationships like so:
```elixir
relationships do
belongs_to :resource_a, App.ResourceA, primary_key?: true, allow_nil?: false
belongs_to :resource_b, App.ResourceB, primary_key?: true, allow_nil?: false...Reading Tenant ETS resources returns empty array
Ash-Postgres and uuidv7
no FunctionClause matching when loading calculation
guide for using Ash.Flow and multi step user flow with retries.
I was looking at Ash.Flow and the
step
DSL feels what i Might need.
Here is the Use case in detail: ...Resource's DSL "metric" actions
count/1
I've to call api module directly.
What about the idea of a new kind of action supported by ash resource's DSL for defining resource's metrics methods in a declarative way?
...Refresh "calculations" during form.validate
`mix ash_postgres.generate_migrations` key `:table` not found
Identity on two attributes causing errors