implementing state_timeout in AshStateMachine
Deleting resources that have existing relationships
* ash 2.9.11 4baa454f
* ash_postgres 1.3.28 aa32bf2b
* ash 2.9.11 4baa454f
* ash_postgres 1.3.28 aa32bf2b
Aggregates with resource relationships
Few Ash.Flow questions
expr(Money.positive(^arg(:amount)))
, I've tried and get a Spark DSL error.
2) Is there a neater way to get_by
a resource (similar to how we do it for code_interface) than having to define a separate action? - or does this go against the ethos of Ash.Flow
, currently it seems slightly disjointed, with one part of the API encouraging one way and providing nice helpers, but another part not being really integrated, I'm assuming this is just me wanting to use it wrong and carry over certain bad habits / not knowing the magic helpers that do exist...
3) Are there plans to have a flow be able to be invoked via a code_interface?...Tenant not being recognised in load after upgrading to Ash 2.9.21
Run an create/update action without persisting the data
Any way to validate a condition from a read actions instead of policies or filters?
Can't get policies to work with AshGraphql
update_customer_registration
, which requires a Customer
actor.
My Customer
policy looks like this:
```elixir...Querying JSON fields
get selected fields in create/update action
mutations
```elixir
defmodule Demo.Policies.SelectsAllowedFields do
@moduledoc """...Test coverage for actions
Possibility to have prepare statement for create, update, delete actions
Possible to add notifier to a resource from an extension on another resource?
Migration not keeping varchar size information
What is the equivalent of Ecto's Repo.exists? in Ash?
Post
resource, and I want to create a read
action that instead of returning a specific Post
, I want it just to check if the post exists and return only true/false just like Ecto's Repo.exists?
does.
Is that possible with Ash?...migration_defaults being "rewritten" by another resource
User
resource inside the Accounts
api:
```elixir...Intergrating Gaurdian Plugs into AshGraphql
AshGraphQL
and I want the check done only when certain actions are called not all.
eg I have
elixir ```
update :update_customer_registration do
accept [...Authentication.Plug - What to do as an API? I use Phoenix, but not with views. What is provided?
AshAuthentication
I ended up using use AshAuthentication.Plug
for a plug, thinking this would provide the same set of routes as the Phoenix view version would, but it doesn't seem like it. I'm not even sure, as the docs aren't clear on this and I'm at this point digging in the code itself.
Do I have to implement my own plug and controller(s) for this? I have an Angular frontend, and will maybe consume the same API from native apps later on.
And also, does this mean that some features aren't available unless I use Phoenix?...Auth0 confusion