Add MR meta to merge_request_compliance_violations table
requested to merge 385499_add_merge_request_meta_to_merge_requests_compliance_violations into master
What does this MR do and why?
- Added columns
merged_at
(frommerge_request_metrics
table),target_project_id
,title
,target_branch
(frommerge_requests
table) tomerge_requests_compliance_violations
. - Update the
execute
method of all the modules insideGitlab::ComplianceManagement::Violations
to populate the new columns for new violations. - Whenever the
title
of a merge request is updated, update thetitle
inmerge_requests_compliance_violations
table as well to prevent any data inconsistency.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #385499 (closed)