You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is. If you are not sure if the bug is related to ash or an extension, log it with ash and we will move it.
This may be a user error rather than a bug, but I'm porting an issue here per Zach's guidance.
The user info set into the process with Ash.set_actor is only accessible from the main form's (create/update) actions, but not from its sub-forms'. In the sub-forms' action, actor returns nil.
To Reproduce
A minimal set of resource definitions and calls that can reproduce the bug.
Run Ash.set_actor(current_user) in a liveview's mount function and check the value of actor in the create action of a sub-form to observe its value being nil.
Expected behavior
A clear and concise description of what you expected to happen.
actor should return the user info set by Ash.set_actor across different nested forms.
** Runtime
Elixir version 1.14.1
Erlang version Erlang/OTP 25
OS Windows 11
Ash version 2.13.3
any related extension versions
Additional context
Add any other context about the problem here.
Setting actor as follows, without using Ash.set_actor in the mount function, causes a nil actor value in every form's action including the main form's. Again, this may be a user error, but mentioning it here in case this problem is somehow related to the main issue reported above.
Describe the bug
A clear and concise description of what the bug is. If you are not sure if the bug is related to
ash
or an extension, log it with ash and we will move it.This may be a user error rather than a bug, but I'm porting an issue here per Zach's guidance.
The user info set into the process with
Ash.set_actor
is only accessible from the main form's (create/update) actions, but not from its sub-forms'. In the sub-forms' action,actor
returns nil.To Reproduce
A minimal set of resource definitions and calls that can reproduce the bug.
Run
Ash.set_actor(current_user)
in a liveview's mount function and check the value ofactor
in the create action of a sub-form to observe its value being nil.Expected behavior
A clear and concise description of what you expected to happen.
actor
should return the user info set by Ash.set_actor across different nested forms.** Runtime
Additional context
Add any other context about the problem here.
Setting actor as follows, without using Ash.set_actor in the mount function, causes a nil actor value in every form's action including the main form's. Again, this may be a user error, but mentioning it here in case this problem is somehow related to the main issue reported above.
The text was updated successfully, but these errors were encountered: