Fix showing Avg: NaN · Max: NaN in MR analytics
requested to merge 357633-missing-data-for-merge-requests-merged-showing-as-avg-nan-max-nan into master
What does this MR do and why?
Updates the MR analytics charts to correctly handle empty / no data.
- Updates the single stat to display
-
when there is no data and to use numeric values instead of strings - Updates the avg / max calculations to avoid
NaN
appearing
Screenshots or screen recordings
Before - No data | After - No data | Before - Data | After - Data |
---|---|---|---|
How to set up and validate locally
- Create a new project
- Navigate to merge request analytics
- Create some issues / MRs
- Return to the chart
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.
Related to #357633 (closed)
Edited by Ezekiel Kigbo