grails-audit-logging-plugin icon indicating copy to clipboard operation
grails-audit-logging-plugin copied to clipboard

GPAUDITLOGGING-22: Making verbose configurable per domain object - Allowing to choose what events to audit per domain obj - Issue/conflict with Shiro plugin when retrieving URI to store in the audit table

Open robertoschwald opened this issue 14 years ago • 6 comments

Original Reporter: amalbet Environment: Not Specified Version: Not Specified Migrated From: http://jira.grails.org/browse/GPAUDITLOGGING-22

I would like to propose these enhancements for next release:

  • Making verbose configurable per domain object
  • Allowing to choose what events to audit per domain obj
  • Issue/conflict with Shiro plugin when retrieving URI to store in the audit table

robertoschwald avatar Sep 07 '10 08:09 robertoschwald

amalbet said: Fix for a bug my changes introduced around loading empty ignore list. A unit test has been included too.

robertoschwald avatar Sep 09 '10 11:09 robertoschwald

aeischeid said: I would be happy to see these changes made to the plugin.

In addition I would find it useful to be able to not do audit logging in dev environment or at least not have it run during bootstrap as it causes run-app to take many minutes to complete on one of my apps.

maybe similar to verbose setting, like:

auditLog.environment.dev = false

robertoschwald avatar Sep 28 '10 13:09 robertoschwald

hartsock said: I like this suggestion. I have been racking my brains how to solve the JIRA regarding unit testing transactions. The short of it is I have to create independent transactions to get audit logging to work at all. This setting as a default would mean we could explain that the audit log behavior in test is going to be a little different (due to that separate audit log transaction business).

I am going to try and get a release out in early October I will put this feature in the new release if I can work it in.

robertoschwald avatar Sep 29 '10 05:09 robertoschwald

amalbet said: I have some integration tests I made to proof that this works... I can share it with you and may provide some help...

robertoschwald avatar Sep 29 '10 06:09 robertoschwald

hartsock said: Please do.

robertoschwald avatar Sep 29 '10 06:09 robertoschwald

amalbet said: Here is the integration test I created for an GORM obj (Evisit). It basically tests that the available configurations for the auditable setting on the domain object work in different combinations. Let me know if you have any questions.

robertoschwald avatar Oct 08 '10 13:10 robertoschwald