Failz
AEAsh Elixir
•Created by Failz on 5/25/2025 in #support
ash_double_entry and updating transfers
looks happy!
40 replies
AEAsh Elixir
•Created by Failz on 5/25/2025 in #support
ash_double_entry and updating transfers
you're a step ahead of me, I was trying to think through what gets broken if I set atomic to false. thank you for the help here!
40 replies
AEAsh Elixir
•Created by Failz on 5/25/2025 in #support
ash_double_entry and updating transfers
why doesn't the unit test have that defined?
https://github.com/ash-project/ash_double_entry/blob/main/test/support/transfer.ex
40 replies
AEAsh Elixir
•Created by Failz on 5/25/2025 in #support
ash_double_entry and updating transfers
correct:
and
40 replies
AEAsh Elixir
•Created by Failz on 5/25/2025 in #support
ash_double_entry and updating transfers
I added back in the inspects
40 replies
AEAsh Elixir
•Created by Failz on 5/25/2025 in #support
ash_double_entry and updating transfers
now seeing the
:not_atomic
coming back
40 replies
AEAsh Elixir
•Created by Failz on 5/25/2025 in #support
ash_double_entry and updating transfers
do I need to set either of these?
40 replies
AEAsh Elixir
•Created by Failz on 5/25/2025 in #support
ash_double_entry and updating transfers
40 replies
AEAsh Elixir
•Created by Failz on 5/25/2025 in #support
ash_double_entry and updating transfers
40 replies
AEAsh Elixir
•Created by Failz on 5/25/2025 in #support
ash_double_entry and updating transfers
40 replies
AEAsh Elixir
•Created by Failz on 5/21/2025 in #support
enabling multi tenant for graphql
To help my understanding of the differences between
set_tenant
I need to write my own plug that leverages Ash.PlugHelpers.set_tenant
; something to this effect:
And then plug AshGraphql.Plug
will take the tenant that I've set in my custom plug and place it in the appropriate place when the resource action/code_interface is called?19 replies
AEAsh Elixir
•Created by Failz on 5/21/2025 in #support
enabling multi tenant for graphql
thank you for the quick responses
19 replies
AEAsh Elixir
•Created by Failz on 5/21/2025 in #support
enabling multi tenant for graphql
🤦♂️
19 replies
AEAsh Elixir
•Created by Failz on 5/21/2025 in #support
enabling multi tenant for graphql
I'm an idiot in the highest sense. None of my crap was working because my header name that contained the token was
Bearer
helps if you get the right header name
Authorization
19 replies
AEAsh Elixir
•Created by Failz on 5/21/2025 in #support
enabling multi tenant for graphql
sorry I linked the wrong function
https://hexdocs.pm/ash/3.5.9/Ash.PlugHelpers.html#set_tenant/2
I was importing Ash.PlugHelpers to set the tenant, so
plug AshGraphql.Plug
would then get the tenant
but that's where the original question came in about does it matter which set_actor
is used since import AshAuthentication.Plug.Helpers
and import Ash.PlugHelpers
both have set_actor
19 replies