stable

Clone or download

Read-only

request #10681 Burndown report does not work when start date is before the first remaining effort

How to reproduce issue: - you should work on an old burndown (issue is due to sql TO_DAYS(FROM_UNIXTIME(0))), so if you try to tricks date, you won't be able to reproduce - last changeset date of artifact should be < to start date (given my last remaining effort for my artifact is 17-11-2016, then I will reproduce issue when my start date is > to 18-11-2016) - start_date + duration should be inferior to today This patch should not break - display of old burndown: (start date + duration should be < to today) - display of current burndown (today should be in start_date + duration times) - display of future burndown (start date > today) Change-Id: I5a4b7b910977e29e71c502e5384b9e86076016e6

Modified Files

Name
M plugins/graphontrackersv5/include/data-transformation/GraphOnTrackersV5_Burndown_Data.class.php +26 −24 Go to diff View file
M plugins/graphontrackersv5/include/data-transformation/GraphOnTrackersV5_Burndown_DataBuilder.class.php +21 −16 Go to diff View file
A plugins/graphontrackersv5/tests/GraphOnTrackersV5_BurndownDataTest.php +285 −0 Go to diff View file
M plugins/tracker/include/Tracker/Chart/Burndown.class.php +87 −72 Go to diff View file
D plugins/tracker/tests/Tracker/Chart/BurndownTest.php +0 −234 Go to diff View file