Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tracking non persistent events #15

Open
aerosol opened this issue May 21, 2019 · 1 comment
Open

Tracking non persistent events #15

aerosol opened this issue May 21, 2019 · 1 comment

Comments

@aerosol
Copy link

aerosol commented May 21, 2019

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?

@narrowtux
Copy link
Contributor

narrowtux commented May 21, 2019

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".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants