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.
Join`on_match: :error` should error on unique key violation?
member
which is a belongs_to from Member, it has user_id, entity_id, which is a unique pair, I want to make accept create a :member relationship, so if a user accepts an invitation that is already in entity, it will throw unique identity violation
This is what I have
```ex...Thoughts on updating `ash_geo` to follow current ash extension patterns?
ash_geo
, but noticed it doesn't use the same patterns extensions like ash_money
for installing postgres extensions and types. I know it's not owned by the ash-project
org, but wanted to see what people thing about giving it an overhaul to have a nicer installation experience and follow current extension patterns.How do cleanly do action accepts for resources with a lot of attributes without `:*`?
:*
being deprecated in the future major version of Ash. Will you have to put all attributes in the accepts for the actions need to support all attributes?
The answer very well may be you just have to list all the attributes in the action. But wanted to check....default_accept
in the top level actions blockIs there a way to not sign in users automatically after they register ?
Change in how `Ash.Changeset.force_change_attributes` handles `nil` values?
Ash.Changeset.force_change_attributes
handles nil values?
at least, that what i seem to be observing.
here's a simple example:...
How do I use a Union type as an action argument?
Adding a custom sort
Return a single record from a manual read
get? true
only applies to the data layre, how can I instruct the action to return a single record?Create a ressource with multiple relationships
has_many
relationship
But I couldn't find how to create a ressource that has multiple belongs_to
With the post -> comments example,...argument
+ manage_relationship
pattern which you can see in the relationships guideExUnit async: true {:error, :table_not_found} with Ash.DataLayer.Ets
:table_not_found
errors thrown on the actions of an Ets backed resource. It's almost guaranteed to happen when the whole suite (200+ tests) runs asynchronously. Is this expected? Meaning Ash.DataLayer.Ets
isn't ready/meant to be used with asynchronous tests or am I missing some proper setup?
For reference, these Ets backed resources serve as an in-memory cache to avoid hitting the DB constantly. The main use-case is to cache actor/account permissions to be used by policies....Trouble with relationships and form
With AshPostgres, what is the proper way to create a exclusion constraint in a ash resource?
Trouble Understanding Reactor
How to restore LiveView state when using infinite scroll when browser back button is clicked?
Getting Started with API Extension Building
AshJsonApi
pretty much since I started with Ash. My goal was to make some improvements to it and continue on.
Long story short, I'm integrating with a... let's just call it "legacy" system and for a number of reasons—some sensible, some not—I'm going to need APIs that better resemble the existing infrastructure. I can't even really call these a "standard" so much as... I don't even know.
Additionally, there's a team here looking to standardize internal service communication using gRPC....Custom auth pages
trigger_submit

Ash query with 1 filter performs worse than the same Ecto query
Can reads return anything?
AshAuthentication with an already existing auth flow
Weird policy behavior