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.
JoinTesting with AshAuthentication after upgrade
ash_authentication_phoenix
and ash_authentication
to 2.10.0
and 2.9.2
, this test helper function raises an error.
``elixir
@doc """
Logs in a user with
AshAuthentication` as the current user.
"""...__metadata__
Is there anyway to return a changeset from validation module?
Trickle down multitenancy :bypass
Is there a way to detect running in "seed data" mode?
mix run priv/repo/seeds.exs
How might an Ash application know that it was invoked in a utility mode and not completely start itself?...AshGraphql unknown error
before_action
hook and use that to update the recordOptimistic updates / syncing with AshEvents
Ash Authentication `no case clause matching: "TOKEN_SIGNING_SECRET"`
mix igniter.install ash_authentication
mix igniter.install ash_authentication
Ash Oban trigger after action
session_identifier compilation on AshAuthentication update
``console
** (Spark.Error.DslError) authentication -> session_identifier:
Must set
authentication.session_identifier to either
:jti or
:unsafe`.
...require_token_presence_for_authentication? true
Custom payload body for post endpoint
Error 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 block