Closed haste closed 3 weeks ago
Describe the bug
After upgrading to Ash 3.4.29 one of our update actions have stopped updating.
To Reproduce
The relevant code is the logout action in lib/helpdesk/account/user_session.ex:
logout
lib/helpdesk/account/user_session.ex
update :logout do change filter expr(session_uid == ^actor(:session_uid)) accept [] change set_attribute(:user_id, nil) end
Full minimal reproduction project: https://github.com/haste/ash_filter_in_resourceless_update_bug Run mix test.
mix test
Downgrading Ash to 3.4.28 makes the test pass.
Expected behavior
Expected behavior is for the action to run a SQL UPDATE statement setting user_id to null.
UPDATE
user_id
null
Runtime
Additional context
This was initially reported on the Elixir slack
This appears to have already been fixed in latest main of ash and ash_postgres. As such, I will close this. Those will be released this week.
main
ash
ash_postgres
Describe the bug
After upgrading to Ash 3.4.29 one of our update actions have stopped updating.
To Reproduce
The relevant code is the
logout
action inlib/helpdesk/account/user_session.ex
:Full minimal reproduction project: https://github.com/haste/ash_filter_in_resourceless_update_bug Run
mix test
.Downgrading Ash to 3.4.28 makes the test pass.
Expected behavior
Expected behavior is for the action to run a SQL
UPDATE
statement settinguser_id
tonull
.Runtime
Additional context
This was initially reported on the Elixir slack