Moritz Schmale
Moritz Schmale
@fantypants Embeds are tracked as part of the diff of the enclosing schema, embeds_one and embeds_many both work.
The query has already been extracted into its own function by #65. Maybe the part that applies the diffs from the list of changes in the current history function should...
Yes, I'll get to that some time. For the meantime, these are the arguments you have to pass: `track_change(module, adapter, action, changeset, resulting_struct, opts)` * `module` is the repository module,...
Note that deep changes will not be tracked with this, because ex_audit is abusing the fact that ecto calls `repo.insert`/`repo.update` for those recursively
I think that's a great idea thanks. The code itself looks fine :)
Hey @yukster! Thanks for the PR. I'd rather support the `history_query` approach I discussed in #64, since that would be more powerful and keeps the API lean.
If this is a documentation issue, it can stay open until it's fixed :)
I've closed the PR, see the reason why: https://github.com/ZennerIoT/ex_audit/pull/63#issuecomment-1240690171
Thanks for this, I will review it later this week
Hello, I'm sorry I have put off reviewing this for so long. The truth is, I don't really like the _magic_ behaviour of the overridden insert/update/delete functions any more. I...