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.
JoinError when using before_action hook to set required relationship attribute
:state_id by the state's name or code.
However, the change doesn't seem to be running as I never see the Logger.debugs and I get changeset errors that :state_id is required.
Have I misconfigured this hook?...`change manage_relationship(...type: :remove)` not working
many_to_many relationship between Organization and SubscriptionPlan. The Organization has the following two actions:
```elixir
update :subscribe do
argument :plan, :struct, constraints: [instance_of: SubscriptionPlan]...accessing_through policy:
```elixir
policy accessing_from(MyApp.Accounts.Organization, :subscribers) do
authorize_if always()...ash_sqlite: Error when querying on an inline code calculation
Counting Related Records with a Virtual Field in a Multi-Tenant app
Error using AshArchival
** (UndefinedFunctionError) function AshArchival.Resource.initial_state/4 is undefined or private
** (UndefinedFunctionError) function AshArchival.Resource.initial_state/4 is undefined or private
Use arguments in Relationship
Bind variables in queries
`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