how to config user_id inside PaperTrail
Hi, sorry. based on this doc https://hexdocs.pm/ash_paper_trail/getting-started-with-ash-paper-trail.html#associating-versions-with-actors
i configured my resource like these code, but when i see the
user_id
in Version with Ash.read
all of them is nil
and my mixin is
Update for Example:
It has extra config i did not inside my code?
Thank you in advance6 Replies
so what's
none_user
and what does the generated version look like when you read it?Hi @Rebecca
It is none user, i use simple get
Version output:
full output: https://gist.github.com/shahryarjb/0543de98c2c71f9b60ca61a05530f5a0
I'm wondering if its an authorization issue
it lets Record changed, but dose not allow it to put user id inside the field?
and even with authorize?: false ?
you're not using
authorize?: false
when creating the version record. I think I remember seeing something like this, where you need users to be able to read their own records to be able to relate themi tested with this too
but it is not diffrent, both of them user_id is nil inside Version!
I have no idea about it why! 🥲