We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
I think the actor gets lost when calling a manual update action with a ash_graphql mutation
ash_graphql
To Reproduce
I have this action
update :update_recurring_this do accept [:amount, :date] argument :event_date, :date validate attribute_equals(:is_recurring, true) manual ManualUpdates.UpdateThis require_atomic? false end
This code interface
define :update_recurring_transaction_this do action :update_recurring_this args [:event_date] end
This graphql mutation
update :update_recurring_transaction_this, :update_recurring_this
The code interface works great and has the actor in the context of the manual update
%Ash.Resource.ManualUpdate.Context{ actor: #User<...>, select: nil, tenant: nil, tracer: nil, authorize?: true, domain: Transactions, return_records?: nil, batch_size: nil }
But when using the graphql mutation the actor is nil in the context of the manual update (I double checked that the auth is working correctly)
%Ash.Resource.ManualUpdate.Context{ actor: nil, select: nil, tenant: nil, tracer: nil, authorize?: nil, domain: Transactions, return_records?: nil, batch_size: nil }
Expected behavior
The context of the manual update action should have the actor set when called through a ash_graphql mutation
Runtime
Additional context
I checked the context in the manual action with a before_action change and the actor is set.
before_action
change before_action(fn changeset, context -> IO.inspect(context, label: "before") changeset end)
The text was updated successfully, but these errors were encountered:
a3e3e87
No branches or pull requests
Describe the bug
I think the actor gets lost when calling a manual update action with a
ash_graphql
mutationTo Reproduce
I have this action
This code interface
This graphql mutation
The code interface works great and has the actor in the context of the manual update
But when using the graphql mutation the actor is nil in the context of the manual update (I double checked that the auth is working correctly)
Expected behavior
The context of the manual update action should have the actor set when called through a ash_graphql mutation
Runtime
Additional context
I checked the context in the manual action with a
before_action
change and the actor is set.The text was updated successfully, but these errors were encountered: