stable

Clone or download

Read-only

refactor: Cache checker compare on timestamp instead of count

Part of request #37921 Burnup/Burndown cache generation fail You can have 50 days to cache and 50 days in cache, but not the same days. So by checking timestamps we are sure wa have not cached the wrong days *No functional changes expected* Change-Id: I5a7366d382610fb8008f4f1581621a801951df76

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/FormElement/Burnup.php +2 −1 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/FormElement/Burnup/CountElementsCacheDao.php +14 −3 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/FormElement/BurnupCacheChecker.php +19 −13 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/FormElement/BurnupCacheDao.php +14 −3 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/FormElement/BurnupDataBuilder.php +22 −19 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/FormElement/BurnupCacheCheckerTest.php +24 −34 Go to diff View file
M plugins/agiledashboard/tests/unit/AgileDashboard/FormElement/BurnupDataBuilderTest.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Artifact.php +3 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/ChartCachedDaysComparator.php +15 −41 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/Burndown/BurndownCacheGenerationChecker.php +27 −55 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/Computed/ComputedFieldDao.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Burndown.php +3 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/ChartCachedDaysComparatorTest.php +88 −19 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/Field/Burndown/BurndownCacheGenerationCheckerTest.php +18 −15 Go to diff View file
M plugins/tracker/tests/unit/Tracker/FormElement/Tracker_FormElement_Field_BurndownTest.php +3 −1 Go to diff View file
M tests/psalm/tuleap-baseline.xml +11 −27 Go to diff View file