AshTrans update issue
This is for @Robert Timis.
I created a new project on ash HQ and added an attribute to user:
I followed the setup for translation and I have
I have
In actions I added update:
defaults [:read, update: [:about_me, :translations]]
but when I call it it doesn't behave as expected.
I get a user. Then I create an update changeset:
ch = Ash.Changeset.for_update user, :update, %{about_me: "Hello my name is Kenneth"}, translations: %{it: %{about_me: "Ciao mi chiamo Kenneth"}}
but user = Ash.update! ch, authorize?: false
returns
and the changeset also is missing the translation map:
Am I missing something? Is there a bug somwhere? 🐛
I can push this if you want but it's nothing special, I'm trying things out.Solution:Jump to solution
what the hell... now it works. 👺
sorry for bothering you. I don't understand what happened. 🙇
okay, maybe because I didn't create the user with embedded structs the update didn't work 🤔 might just be that.
again, sorry, my bad....
2 Replies
Update: I tried with create and that worked. 🤔
but update on that correct created didn't work, hmm
okay, I switched to the synced fork and it worked 🤔 I'll try again with
0.1.4
versionSolution
what the hell... now it works. 👺
sorry for bothering you. I don't understand what happened. 🙇
okay, maybe because I didn't create the user with embedded structs the update didn't work 🤔 might just be that.
again, sorry, my bad.