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.
JoinRestricting aggregate calculations
Pagination of primary action breaks showing relationships
B to make it require pagination with required?: true. This is because I wanted to make it so that even if someone calls my API without a limit, the default limit per page is still applied.
But now, when I go to A in the Admin UI, click on a row, then click the button to load its related Bs, nothing happens. No SQL query is executed. When I un-require the pagination, then it works. Yet, when I click the second button that only shows the IDs of the rows of the "join_through" resource, that one works....Code interface vs domain resource block
AshAuthentication custom strategy UI
n8n cannot access mcp client in Phoenix
Can't disable derive_filter? in json API
Action-specific parameter sanitization
skip_unknown_inputs: :*AshJsonApi with InertiaJs
code_interface, compile time vs runtime
default_options: fn -> ... endMultitenancy 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