Add total flow items for groups VSD
What does this MR do and why?
Backend part to include total flow items metrics for groups value streams dashboard.
The metric is the sum of:
total open issues
total issues closed
total open mrs
count total mrs merged
More details at #396963
How to set up and validate locally
The metric is not present in the UI yet, but it is possible to verify it by opening a group VSD page and checking the browser API calls responses.
- Make sure to have an ultimate license
- Create a group with a project
- Open some issues and MRs within the project
- Close some of the opened issues and merge some of the MRs and run
Analytics::CycleAnalytics::ReaggregationWorker.new.perform
on rails console - Execute the following query at GraphiQL explorer:
query groupTotalFlow{
group(fullPath: "GROUP_PATH") {
flowMetrics {
totalFlow(from: "2023-03-1", to: "2023-06-1") { // make sure dates match issuables creation/closing
value
identifier
title
unit
}
}
}
}
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Felipe Cardozo