auditor-bundle icon indicating copy to clipboard operation
auditor-bundle copied to clipboard

No diffs in remove entries

Open Thomas-Philippot opened this issue 4 years ago • 6 comments

Hello, I wonder why I don't have any diff on remove entries. I have Diffs for insert and update but nothing but the entity id for remove entries.

Is that a choice ? Can I configure something to add the diff to the remove audit entry ?

Thomas-Philippot avatar May 18 '20 10:05 Thomas-Philippot

Hi @Thomas-Philippot you're right, remove operations do not show any diff data as long as this kind of operation is the result of a DELETE ... or UPDATE ... SET deleted_at = ... SQL query. What do you expect? Could you explain a bit more your use case?

DamienHarper avatar May 20 '20 16:05 DamienHarper

Hello, let's assum my Entity has two attribute id and name When you INSERT you can see in the diffs, the two attribute in the before and after.

With before null or empty values (as it was not existing before) and after with the values.

I Want to have the exact same behavior when performing a Delete (actually setting deleted_at), so I can see my attributes in before. Hop I made myself clear enough.

Thomas-Philippot avatar May 20 '20 17:05 Thomas-Philippot

@Thomas-Philippot Thanks for the explanation, right now this is not possible. If I understand right, you expect to have all properties and their values logged in the audit entry. I mark this issue as a feature request to keep track of it.

DamienHarper avatar May 20 '20 17:05 DamienHarper

I would as well appreciate that feature.

markus-fischbacher avatar Oct 30 '20 23:10 markus-fischbacher

Is there a development in the case?

test789t avatar Feb 16 '22 17:02 test789t

@test789t no, not that I know. BTW, I'd be glad to review a PR if you want to contribute.

DamienHarper avatar Feb 17 '22 09:02 DamienHarper