1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-02 01:48:23 +01:00

Make the top-level burndown chart in "Maniphest > Reports" show open tasks, not total tasks

Summary:
Ref T13279. See PHI1491. Currently, the top-level "Burnup Rate" chart in Maniphest shows total created tasks above the X-axis, without adjusting for closures.

This is unintended and not very useful. The filtered-by-project charts show the right value (cumulative open tasks, i.e. open minus close). Change the value to aggregate creation events and status change events.

Test Plan: Viewed top-level chart, saw the value no longer monotonically increasing.

Maniphest Tasks: T13279

Differential Revision: https://secure.phabricator.com/D20879
This commit is contained in:
epriestley 2019-10-29 13:43:57 -07:00
parent 114166dd32
commit 9d8cdce8e1

View file

@ -53,7 +53,11 @@ final class PhabricatorProjectBurndownChartEngine
$open_function = $this->newFunction(
array(
'accumulate',
array('fact', 'tasks.open-count.create'),
array(
'sum',
array('fact', 'tasks.open-count.create'),
array('fact', 'tasks.open-count.status'),
),
));
$closed_function = $this->newFunction(