Update deployment.user properly when a manual job is played by a different user
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
Currently, deployment.user is set when a pipeline job is created, and it's not updated even if the job is played by a different user than the original pipeline executor. This causes a minor problem on the data integrity that has an inconsistency at database level.
This is a follow-up of the workaround we recently shipped at https://gitlab.com/gitlab-org/gitlab-ce/issues/66037.
Proposal
Update deployment.user properly when the manual job is played/retried/etc by a different user.
Edited by 🤖 GitLab Bot 🤖