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.
Joinselect relationship
Mix ash_postgres.create problem
Users getting logged out every few hours
phx.gen.auth
to AshAuthentication.
The switch was very smooth and users didn't notice anything except for one detail: they're now getting logged out every few hours (exact time seems to vary).
I've been going through all documentation and the Discord but haven't found anything related. The only thing I found was this option token_lifetime
, changing the value hasn't helped so far, though....Show calculations in Ash Admin
Multiple checkbox group with Ash Forms
Best way to skip tenant check on a query
AshAdmin.PageLive.__live__/0 is undefined

Union relationships
Use API access token to login into LiveView
_marketplace_key
.
What I want to do is to make both system login process seamless, meaning that if the user is logged from the frontend (which uses the GraphQL api), it will also automatically be logged when the user go to the LiveView part of the system....No Such Relationship
`many_to_many` error
``
** (RuntimeError) Resource
SwiftEco.Resources.Accounts.UsersCompanies is not in registry
SwiftEco.Resources.Companies for autogenerated join relationship:
:users_join_assoc
Relationship was generated by the
many_to_many relationship
:users`
...After spark major update, deep preload not working.
Splitting resource using AshStateMachine using `Spark.Dsl.Fragment`
state_machine
block from the rest of the resource using Spark.Dsl.Fragment
. Bit of a catch-22 though, because without using the AshStateMachine extension there's notransition_state
to use in actions, but with it there's no definition for initial_states
. This hasn't been an issue for anything else, because for other extensions like AshGraphql, AshJsonApi, etc. there aren't the same kind of interdependencies and the rest of the stuff doesn't seem to get hung up because it's all in core.
Is this a case worth addressing somehow? I can see there being more extensions in future that would, e.g. similarly provide additional changes
builtins, but also have their own DSL section large enough to want to split it....Filtering relationships in `relates_to_actor_via` etc.
Create action with multiple nested resources
Implementating auto-incrementing/sequence fields in Ash Resources
issue_number
counts, invoice_number
counts, service_number
counts, etc.
I want to make sure that the implementation is consistent and that the sequence table will not leave gaps, as some database implementations leave gaps when a transaction fails....All extensions list.
Publish :create, ["created", deeply_nested_item_id]
chat_room
has many post
s which then has many comment
s.
and I want to have this pub_sub
definedin comment.ex.
```...Nested embedded Resource Form
AshPhoenix.Form.for_update
with forms: [auto?: true]
, the form created does not contain information about any of the embedded resources other than the first key.
Right now I am adding the missing data like so
``` update_form =
AshPhoenix.Form.for_update(styles, :update,...Set error message on attribute using AshAuthentication.Strategy.Password.PasswordValidation
:current_password
attribute?
```elixir
AshPhoenix.Form.submit(socket.assigns.password_form, params: params, actor: socket.assigns.current_user) ...