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

Fix lastModifiedBy on modification perfomed by the JpaRolloutExecutor #1748

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

avgustinmm
Copy link
Contributor

@avgustinmm avgustinmm commented Jun 19, 2024

Fix lastModifiedBy on modification perfomed by the JpaRolloutExecutor

  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)

@hawkbit-bot
Copy link

Can one of the admins verify this patch?

@avgustinmm avgustinmm force-pushed the fix/last_modified_by branch from a13eb41 to ff2673f Compare June 20, 2024 11:56
@avgustinmm avgustinmm changed the title Set lastModifiedBy as initiator for STOPED/DELETED Fix lastModifiedBy on modification perfomed by the JpaRolloutExecutor Jun 20, 2024
@avgustinmm avgustinmm force-pushed the fix/last_modified_by branch from ff2673f to 6f25522 Compare June 20, 2024 11:58
@avgustinmm avgustinmm requested a review from strailov June 20, 2024 11:58
@avgustinmm avgustinmm force-pushed the fix/last_modified_by branch 3 times, most recently from 20986cb to be942ff Compare June 20, 2024 12:34
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 <[email protected]>
@avgustinmm avgustinmm force-pushed the fix/last_modified_by branch from be942ff to 9b9a262 Compare June 20, 2024 12:38
@avgustinmm avgustinmm merged commit 6e6f96a into eclipse-hawkbit:master Jun 21, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants