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.
Joinspark warning on compilation
``
warning: Entity without __spark_metadata__ field is deprecated. Entity Reactor.Dsl.Middleware does not define a
spark_metadata field. This field is required to acces
s source annotations. Add
spark_metadata: nil` to the defstruct for Reactor.Dsl.Middleware.
(elixir 1.18.4) lib/enum.ex:987: Enum."-each/2-lists^foreach/1-0-"/2...usage rules req me to change igniter `only`
igniter
is not in prod but when i try to add usage rules via the expert LS it says that there's a version conflict.Composite primary keys vs through
destination/source_attribute_on_join_resource
both expect an atom. Is it possible to reference a composite key on a join table? I am trying to set up a many_to_many
relationship.Can I instruct Ash to force update a CiString value regardless of comparison result?
Ash.CiString
on a resource field (backed by postgres citext
) for all the uniqueness constraint validation goodness, but recently discovered that Ash is skipping updates to the field value when only the case has changed.
I know, I know: why am I using a CiString
if I don't want case-insensitive comparison? Because I don't want to clobber other records with the same case-insensitive name. But I do want to give the user control to update the casing of the value on an individual record. I have a NameCollissionPrevention
validation that ignores the current record in question when deciding if the record update is valid, so I don't think this is programmer error, it feels like Ash is ignoring the field in the update b/c it compares as equal.
Maybe CiString isn't the right tool for the job in this scenario. I'm curious if Ash provides a way to say "you can update this value to anything (and any case) you want". ...:name
arg isn't required:
```
change(fn changeset, _ctx ->
case changeset.arguments[:name] do...Ash Policy DSL Syntax Issues - Need Help with authorize_if and policy_group
undefined function authorize_if/1
errors.
Current Setup:
```ex...Where/How to deploy my ash project
Ash Union Calculations
%Ash.Union{}
?
E.g.
```...Ash for cli apps
When to use Ash.Oban vs Ash.StateMachine
I am not sure if I have to use Oban or StateMachine, when is each more suitable?...
ash_state_machine
and ash_oban
to trigger state transitions is one of my favorite combinations of Ash features out therePrimary key not guaranteed unique?
primary_key? true
and noticed that I can insert multiple records with the same key. Is that intended behavior? I figured for a primary key I should not need to set up a separate identity
.primary_key? true
on multiple attributes creates a composite primary keyAshAuthentication and UserIdentity for Oauth / Scopes
Is it possible to work around AshAuthentication tokens with read only connection?
how to config user_id inside PaperTrail
user_id
in Version with Ash.read
all of them is nil
```elixir
paper_trail do
primary_key_type :uuid_v7...Attempted to update stale record error update record in a loop
Error returned from: MishkaCms.Runtime.Layout.update...
Extending a spark extension?
graphql
queries
block that allows marking that query as intended to use the writer.
tl;dr, I'd like a way to add a new piece of config to the various queries
config objects that some custom plug would be able to hook into. I swear I've seen some way to do this in docs somewhere but it's eluding me now 😅...Load data works in terminal but in json api it returns empty
paper_trail_versions
has some records as a list but in api json call the paper_trail_versions
is []
empty
```elixir
action :list_versions_api, :struct do
constraints instance_of: MishkaCms.Runtime.Layout
argument :layout_id, :uuid, allow_nil?: false...sorted_versions
or somethingAre there special requirements for returns :map in RPC actions?
{}
to the frontend.
```ex
In Fmma.Inspections.Inspection resource...Form validation message missing field name
When trying to set password using my own update I get Postgres type error in AshAuthentication