Add the possibility to chart "time to merge" for MRs
Ideally, we should be able to show multiple percentile on the same charts, e.g.
- title: Cycle time of merge requests
type: line
query:
issuable_type: merge_request
issuable_state: merged
metric: time_to_merge # currently defaults to "self"
calculation: percentile # currently defaults to "count"
collection_percentiles:
- p50
- p95
group_by: week
period_limit: 104
Notes:
- Introduced
query.metric
which currently defaults toself
which means that we count the matching records, but would be set totime_to_merge
in this case, meaning that we would usemr.time_to_merge
to perform a calculation. - Introduced
query.calculation
which currently default tocount
, but would be set topercentile
in this case. - Reused the
collection_labels
concept and changed tocollection_percentiles
to keep changes minimal.