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.
JoinLiveView interface for {:array, :string} type
relates_to_actor_attribute_via
Policy for explicitly setting relationship on create
is_a
other resources. That is:
```elixir
defmacro is_a(attr, type, opts \ []) do
quote do
relationships do...`form_for` deprecation warning when using FilterForm
FilterForm inspect strange behavior
Override resource field before validation
nil
values of fields before they get validated in create action. I've used change
but it is not called when slug is nil
. I don't want to do it before calling create action because it just doesn't feel right and dry. If I enable this action through an API and web interface than it will be 2 places to convert title to slug.
In case you don't know what slug is, here's wikipedia article. https://en.wikipedia.org/wiki/Slug_%28publishing%29 It is used in URL to uniquely identify a resource and this term comes from publishing. URL safe title is not fast to write is it? Django is my background where this term is frequently used....pub_sub event not being broadcasted
Are accept fields in an update action required by default?
Transaction between separated actions
User.add!()
and Marketing.add!()
and want to run them inside the same transaction, should I just do this?
```elixir...Help with manage_related
Returning success on failure as a security consideration
Custom made AshAuthentication LiveViews
AshAuthentication
allows in its LiveViews for sign-in/up, reset, etc.
Maybe someone else also needs the same thing, so I will show here all the steps I did to make that happen so others can use as reference.
Also, any suggestion on improvements are welcome....Errors with OpenAPI (not already existing atom)
Raw actions
Can't test authentication after configuring Ash AuthenticationPhoenix Tutorial

passing actor when using AshPhoenix.Form.submit
Improve compile times
--verbose
flag shows that all files in the the api of the modified resource are compiled (expected) however a number of resources from the other API are also recompiled. 23 files are recompiled in total.
So, is 8 seconds to recompile 23 files on an M1 Macbook pro normal? Could the fact that I have cross-api relationships be contributing to this? 8 seconds doesn't sound bad, however as the application grows it could become a barrier to doing test driven development....ashauthentication: possible bugs?
Incrementing an attribute
Does order matter in filtering resources?
user_id == user.id
.
```
Resource
|> Ash.Query.for_read(:buys)...