You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2022. It is now read-only.
#2604)
The new `DatastoreTemplate` instance should have the same
`ApplicationEventPublisher` as the original one, so that `AuditingHandler`
can be called.
Fixes: #2603.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When using
DatastoreTemplate.performTransaction()
withspring-cloud-gcp-data-datastore
1.2.6.RELEASE
, auditing doesn't work for entities.That's because the new
DatastoreTemplate
instance created inperformTransaction()
does not have theApplicationEventPublisher
of the original one, which is the mechanism by which theAuditingHandler
eventually gets called to set the auditing properties.I've added a test to
DatastoreTemplateAuditingTests
in my fork which demonstrates the problem.I also have a simple fix ready, if it's actually a bug and you want a PR.
The text was updated successfully, but these errors were encountered: