stable

Clone or download

Read-only

Burnup system events cache must generate a cache of subelements

This is part of story #13735 have burn-up based on item count The two system events related to burnup cache must compute cache for subelements. To test it, you can trigger by hand a "force cache regeneration" for a given burnup and verify that all count elements is correct in the plugin_agiledashboard_tracker_field_burnup_cache_subelements table. Elements and their children are added until the hierarchy is completed. Inconsistent items are not taken into account here. Change-Id: I4648d855a37f6c42a818781ad08028454e8d19d0

Modified Files

Name
M plugins/agiledashboard/db/install.sql +8 −0 Go to diff View file
A plugins/agiledashboard/db/mysql/updates/2019/201908081533_add_burnup_subelements_cache_table.php +56 −0 Go to diff View file
A plugins/agiledashboard/include/AgileDashboard/FormElement/Burnup/CountElementsCacheDao.php +45 −0 Go to diff View file
A plugins/agiledashboard/include/AgileDashboard/FormElement/Burnup/CountElementsCalculator.php +187 −0 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/FormElement/SystemEvent/SystemEvent_BURNUP_DAILY.php +38 −6 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/FormElement/SystemEvent/SystemEvent_BURNUP_GENERATE.php +40 −8 Go to diff View file
M plugins/agiledashboard/include/agiledashboardPlugin.class.php +22 −1 Go to diff View file
A plugins/agiledashboard/phpunit/AgileDashboard/FormElement/Burnup/CountElementsCalculatorTest.php +654 −0 Go to diff View file