stable
Clone or download
Read-only
Part of request #37921 Burnup/Burndown cache generation fail Burnup can be generated from effort or count of subelement. But when we check if cache is valid, we only check effort cache (which is generated even if not needed) *Testing:* You will need to hack the database Have a burnup based on count of subelement. Generate its cache. It should have filled table plugin_agiledashboard_tracker_field_burnup_cache_subelements. Remove one (or more) entry of the table: before the patch the cache is still considered valid. With the patch the cache is considered invalid and generated again Change-Id: Ibdc4ab30e98e5d9104b267a4e3eaff3f9e6740e1
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/agiledashboard/include/AgileDashboard/FormElement/Burnup.php | +8 | −5 | Go to diff View file |
M | plugins/agiledashboard/include/AgileDashboard/FormElement/Burnup/CountElementsCacheDao.php | +15 | −0 | Go to diff View file |
M | plugins/agiledashboard/include/AgileDashboard/FormElement/BurnupCacheChecker.php | +30 | −38 | Go to diff View file |
M | plugins/agiledashboard/include/AgileDashboard/FormElement/SystemEvent/SystemEvent_BURNUP_GENERATE.php | +2 | −3 | Go to diff View file |
M | plugins/agiledashboard/tests/unit/AgileDashboard/FormElement/BurnupCacheCheckerTest.php | +57 | −9 | Go to diff View file |