Fix lastModifiedBy on modification perfomed by the JpaRolloutExecutor (#1748)

1. The auditor is got on transaction commit - so haven't used the tenant & user context until now - write system
2. The start/stop/delete are called by the user (saved in lastModifiedBy) but then executed in JpaRolloutExecutor

So the change is:
1. Fix auditor for actions taken by JpaRolloutExecutor to be the createdBy
2. for start/stop/delete the auditor is set to the lastModifiedBy for the transaction (hence all action taken)

Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-06-21 08:27:24 +03:00
committed by GitHub
parent b42765b4eb
commit 6e6f96a0f4
4 changed files with 55 additions and 7 deletions

3
.gitignore vendored
View File

@@ -55,6 +55,9 @@ classpath-data.json
# Intellij
*.iml
# local Spring configs
application-local.properties
# Maven
maven.properties
.flattened-pom.xml