Prevent Iteration burndown charts trend line going backwards in time
requested to merge 383607-iteration-cadences-burnup-burndown-charts-show-trend-line-going-backwards-in-time into master
What does this MR do and why?
Fix iteration burndown lines sometimes going backwards.
The data we fetch is sparse, then we pad empty days with the values from the previous day (as no data means no events for that day).
If we were missing data from the second last day, and a timezone was pre-UTC, then we were incorrectly checking "has data for last day" for the wrong day.
Testing
- From the project sidebar, Manage > Iterations, then select an Iteration from the Done list (so due date is in the past)
- In devtools, click the 3 dots menu, More Tools > Sensors, and set a timezone that is before UTC
- Check that line doesn't go backwards. Or for iterations with no events, confirm the line goes all the way to the end
Screenshots or screen recordings
before | after |
---|---|
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 #383607 (closed)
Edited by Simon Knox