[go: up one dir, main page]

Skip to content

VSA: Adding a new event "MR first reviewer assigned"

Release note

New stage events for custom Value Stream Analytics

To improve the tracking of development workflows in GitLab, we added the Value Stream Analytics has been extended with a new stage event: "MR first reviewer assigned".

This event can be used to identify where delays occur in the review process. Encourages a culture of responsiveness and accountability among team members, fostering a collaborative environment. Reducing the review time directly impacts the overall cycle time of development, leading to faster software delivery. For example, you can now add a "Review Time to Merge (RTTM)" stage that starts when "MR first reviewer assigned" and ends when "MR merged".

Problem

VSA currently can't measure automatically the MR review time.

Related to this Dogfooding feedback, and this Customer feedback .

Proposal

  1. Store the event timestamp in the database. In this case maybe store one timestamp: reviewer_first_assigned_at
  2. Create the VSA event on reviewer_first_assigned_at

Implementation

  1. Add the nullable reviewer_first_assigned_at timestamp column to the merge_request_metrics table.
  2. Add a new hook/callback that sets the reviewer_first_assigned_at timestamp (Time.current) when the reviewer is first assigned. (use a feature flag)
  3. Create a new stage event for merge request:
Edited by Haim Snir