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.
JoinRedirect on successful authentication
/sign-in.
3. They log in successfully....How to implement Authentication with Multiple OAuth2 Providers?
Is It Possible to Track Create and Update Operations at the Domain Level for AshOban?
create and update operations at the domain level of all resources under this domain, so that whenever such actions occur, their information is sent to AshOban for further processing?
Something like
```elixir...Upsert with ON CONFLICT DO NOTHING
Ash update action inside Ecto transaction, trying to not rollback if transaction is rolled back
Ash.DataLayer.transaction. Any ideas how I could have it not be rolled back?How can I show all validation errors (including nested) at once?
Do you have special settings for Credo for Ash projects?
Losing entries for nested forms on validate
manage_relationship(:resource, type: :direct_control).
- Have a button to add new form:
```
def handle_event("add-form", %{"path" => path}, socket) do...AshAuthentication with non-Postgres Data Layers?
AshJsonAPI - How to pass a tenant?
curl -XPOST -H 'Content-Type: application/vnd.api+json' localhost:4000/api/json/items -d '{"data": {"type": "item", "attributes": {"name": "test", "provider_id": "01985d4d-f0c4-73b5-8919-29946afeb08c", "deploys": []}}}'
curl -XPOST -H 'Content-Type: application/vnd.api+json' localhost:4000/api/json/items -d '{"data": {"type": "item", "attributes": {"name": "test", "provider_id": "01985d4d-f0c4-73b5-8919-29946afeb08c", "deploys": []}}}'
How to use Heroicons?
mix.exs:
```
{:heroicons,
github: "tailwindlabs/heroicons",...Error tenant required in calculation on tenant resource
Convenience functions for many_to_many relationships?
many_to_many relationships. Given the resources below, what I'd like to do is have an add_to_hub action in the User module that takes in a Hub record and creates a corresponding UsersToHubs record.
How would I go about setting up that action, and is placing a function like this inside of my User resource module at all idiomatic for Ash?
I cut off the TestApp.Hubs.Hub module due to character limit, but I set it up the same way as my User module...many_to_many example when I was reading the docs earlier.
So it's basically just:
```elixir
update :assign_to_hub do...Is it possible to prevent any direct use of Ash resource?
Form vs simple_form
simple_form but when using Ash phoenix liveview generators, the regular form is used by default. Is there a reason to use one vs the other? I incline to follow what the book does but I want to make sure this is the right decision.Global hooks
Using add_form with a many_to_many relationship
add_form on a many_to_many relationship. Here is my action and relationship.
```elixir
create :create_campaign_target_list do
primary? true...🔹 How to Regenerate a Specific Resource Using `ash.codegen` Without Affecting Others?
ash.codegen (https://hexdocs.pm/ash/Mix.Tasks.Ash.Codegen.html) documentation but couldn't find an option related to this. I'm still in the early stages of development and sometimes make mistakes while defining resources (e.g. when generating multiple tables). When that happens, I want to regenerate just a specific resource from scratch, not create a new migration to fix it.
However, ash.codegen seems to regenerate all active resources at once. To avoid that, I have to manually remove the files of the resource I want to regenerate and then run the generator again.
...Subscription to automated resource creation
Message Resource and an Alert Resource. We have a Ash.Notifier that on create checks if the message has the keyword "foo". If it is, we create an Alert . If I have a subscription to the Alert resource, should I expect that subscription to work even though it wasn't created from the frontend? I would assume yes but that is not what I'm experiencing....mark Ash.Resource extension attributes as public
extensions: [AshDoubleEntry.Transfer, AshGraphql.Resource]
extensions: [AshDoubleEntry.Transfer, AshGraphql.Resource]
AshDoubleEntry.Transfer creates it