ex_audit icon indicating copy to clipboard operation
ex_audit copied to clipboard

Tracking non persistent events

Open aerosol opened this issue 5 years ago • 1 comments

Hello,

What would be the suggested way of (ab)using this library so that events that don't persist changes in the database are tracked along with those that do?

For example, track every "show" action for certain entities.

If this is a feature that could be scoped within this library I'd appreciate any pointers so I can submit a patch for review.

The simplest approach I can think of would be to record an empty Version.patch with a new (custom?) ExAudit.Type.Action. Would that make any sense?

aerosol avatar May 21 '19 09:05 aerosol

Yes it would definitely fit into the concept when you have an empty patch and a custom action type.

The custom action types could also be used for actual patches that convey a different meaning than just "updated".

narrowtux avatar May 21 '19 09:05 narrowtux