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.metricwhich currently defaults toselfwhich means that we count the matching records, but would be set totime_to_mergein this case, meaning that we would usemr.time_to_mergeto perform a calculation. - Introduced
query.calculationwhich currently default tocount, but would be set topercentilein this case. - Reused the
collection_labelsconcept and changed tocollection_percentilesto keep changes minimal.
