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.
JoinMultitenancy with code interface on the domain?
tenant
option to all code interfaces 🙂:datetime with constraints vs :utc_datetime_usec
:utc_datetime_usec
over the constraint.For update form with params?
for_update
on an existing resource, do I need to explicitly make a params map? I was expecting it'd be auto populated. Even when I did Map.take/2
on the resource and put that as params it didn't work because params expect string keys. Am I missing something or is this expected? 🤔after_action is not being triggered
after_action
callback is not being triggered. As a basic test, I added an IO.inspect
expecting to see output in my IEx session, but nothing gets logged.
Here's the code I'm using:
```elixir...AAP and Phoenix.LiveDashboard
live_dashboard
inside my ash_authentication_live_session :admin_required
router block, I get a compilation error about nested live sessions.
** (RuntimeError) attempting to define live_session :live_dashboard inside :admin_required.
live_session definitions cannot be nested.
** (RuntimeError) attempting to define live_session :live_dashboard inside :admin_required.
live_session definitions cannot be nested.
Unable to send a `Ash.Type.File` as argument to action using `AshPhoenix.Form`
Ash.Type.File
struct as an argument to an update
action, AshPhoenix.Form
is failing on validation.
Worth nothing that sending the file argument as :override_params
in AshPhoenix.Form.submit
does bypass this and work correctly, as does calling the action directly.
AshAdmin also exhibits this behaviour.
...Guidance on Generators
after_action
hooks (organization > establishment > establishment_user)
This is my chain of actions:
```elixir...Unable to get authenticated with google, after following google login flows
is there a way to perform a bulk update but for individual items?
[{store_id: 1, some_data: 2}, {store_id: 3, some_data: 9}]
, can I configure bulk_update to update store 1 with some_data 2, etc etcreactor_req - argument option in dsl is missing
wait_for
does work, which supposedly unsugars to argument :_, result(step_to_wait_for)
. Error:
Compiling 1 file (.ex)
error: undefined function argument/2 (there is no such import)
│
122 │ argument :agent_result, result(:generate)
Compiling 1 file (.ex)
error: undefined function argument/2 (there is no such import)
│
122 │ argument :agent_result, result(:generate)
relationship 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?