Skip to content

Add merge and closed user ids to MR metrics

Carla Drago requested to merge fix-merged-by into master

What does this MR do and why?

This adds a merged_by_id or the latest_closed_by_id to a MergeRequestMetrics record when importing pull requests from bitbucket cloud. It assigns either the mapped BitBucket User if one can be found, or the merge request author.

Updating these DB columns ensures the MRs have a user assigned as the Merged by or Closed by user.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

rec1

Related to #468852 (closed)

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
before-merged after-merged
before-closed after-closed
Edited by Carla Drago

Merge request reports