Value Stream Analytics does not track time when label is added and removed multiple times correctly

Summary

Currently when a stage is set to a label addition and removal or a different label being added, if the label is added again, it will only take the final start and stop conditions into account.

Steps to reproduce

  1. add label and remove label after a set amount of time
  2. Create a VSA stage with a label addition and removal as start and stop
  3. repeat process
  4. only most recent cycle will be counted

Example Project

What is the current bug behavior?

Only the final label transition is captured

What is the expected correct behavior?

all label transitions are captured

Relevant logs and/or screenshots

Output of checks

This bug happens on GitLab.com

Edited by Jessie Lee