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.
Joinrelationship data
many to many relationships management.
Tips to speed up compile times?
Questions about Cinder
expired_at but we want a dropdown select the the options expired or active rather than a datetime range, is that possible? I couldn't quite figure out how to set the filter to say I want one to be the nil values and the other to be not is_nil(expired_at.
And with calculations, can we have them as one of the columns? Say we have a full_name calculation that combines first_name and last_name. Can we just do user.full_name or would we need to explicitly load it to get it to work?...Custom type not showing in Admin UI update form
Union queries that return union types
Bypassing multitenancy directly from code interfaces
multitenancy :bypass option for read actions but is it possible to pass it as an option in code interfaces as well?
Something like this or similar is what I'm looking for:
```elixir...Ash.page resulting in ** (EXIT) no process: the process is not alive or there's no process currently
Loading multitenant resources
How do I get `fragment` in scope in a `prepare` block?
How to get tenant in LiveView after setting it using `PlugHelpers.set_tenant`
conn
|> put_session(:tenant, tenant_id)
conn
|> put_session(:tenant, tenant_id)
install is not the latest version
Translating Ash Error messages
Is it possible to convert policies expression to Ecto expressions?
Wrapping external API - get one object
Stream.resource and Ash.Query.apply_to, so it's not clear to me how to proceed....Help with multi-step resource creation in Ash (Phoenix + React)
after_action was the right choice, you can't set a different tenant with manage_relationship AFAIK
2. all run in the same transaction, the first action call opens the transaction and all the after action starts the next action in the same transaction
3 . all accessing_from is checking is a certain value in the context, so you could just manually set the context when calling the other actions inside after_action...Using Pgvector and Ash.Vector
Pgvector.Ecto.Type. I've been attempting to slowly move them over to Ash resources using the Ash.Type.Vector but I've been unable to get both extensions to coexist.
I tried globally defining both: Pgvector.extensions() ++ [AshPostgres.Extensions.Vector] ++ Ecto.Adapters.Postgres.extensions() , but depending on that list order one or the other breaks.
I also tried matching on type to get around it in a custom extension, which works for encoding:
```...Version 3.5.25 generates wrong SQL
Query across many tenants
multitenancy :bypassAsh.Actions.Read.AsyncLimiter - Process is not alive or there`s no process .....
Ash.read, but as soon as I use Ash.page I get the following error....