Ash Paper Trail, changes
Hi,
I am currently useing ash_paper_trail on a ressource that have an attribute define as :map.
inside this map there is nested maps too.
Despite the attribute ("accounting" in the following example) does not change, when I load my data from DB and get the last paper_trail_versions
Example:
We can see that "changes" have many data such as "accounting", "adult_count" ....
The thing that bothers me is that only "notes" have been modified. Why do I see the others too ?
If you have an idea, please let me know.
Regards,
Angy
2 Replies
https://hexdocs.pm/ash_paper_trail/dsl-ashpapertrail-resource.html#paper_trail-change_tracking_mode the default change tracking mode is
snapshot
, meaning it will take a full copy of the resource as it exists
https://hexdocs.pm/ash_paper_trail/getting-started-with-ash-paper-trail.html#change-tracking-modesOh true, I did snapshot! I See. thanks.