Differential D20506 Diff 49005 src/applications/project/chart/PhabricatorProjectBurndownChartEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/chart/PhabricatorProjectBurndownChartEngine.php
Show All 26 Lines | protected function newChart(PhabricatorFactChart $chart, array $map) { | ||||
} else { | } else { | ||||
$project_phids = array(); | $project_phids = array(); | ||||
} | } | ||||
$functions = array(); | $functions = array(); | ||||
if ($project_phids) { | if ($project_phids) { | ||||
foreach ($project_phids as $project_phid) { | foreach ($project_phids as $project_phid) { | ||||
$function = $this->newFunction( | $function = $this->newFunction( | ||||
'min', | |||||
array( | |||||
'accumulate', | 'accumulate', | ||||
array('fact', 'tasks.open-count.create.project', $project_phid)); | array('fact', 'tasks.open-count.assign.project', $project_phid), | ||||
), | |||||
0); | |||||
$function->getFunctionLabel() | $function->getFunctionLabel() | ||||
->setName(pht('Tasks Created')) | ->setName(pht('Tasks Moved Into Project')) | ||||
->setColor('rgba(0, 0, 200, 1)') | ->setColor('rgba(0, 200, 200, 1)') | ||||
->setFillColor('rgba(0, 0, 200, 0.15)'); | ->setFillColor('rgba(0, 200, 200, 0.15)'); | ||||
$functions[] = $function; | $functions[] = $function; | ||||
$function = $this->newFunction( | $function = $this->newFunction( | ||||
'min', | |||||
array( | |||||
'accumulate', | 'accumulate', | ||||
array('fact', 'tasks.open-count.status.project', $project_phid)); | array('fact', 'tasks.open-count.status.project', $project_phid), | ||||
), | |||||
0); | |||||
$function->getFunctionLabel() | $function->getFunctionLabel() | ||||
->setName(pht('Tasks Closed / Reopened')) | ->setName(pht('Tasks Reopened')) | ||||
->setColor('rgba(200, 0, 200, 1)') | ->setColor('rgba(200, 0, 200, 1)') | ||||
->setFillColor('rgba(200, 0, 200, 0.15)'); | ->setFillColor('rgba(200, 0, 200, 0.15)'); | ||||
$functions[] = $function; | $functions[] = $function; | ||||
$function = $this->newFunction( | $function = $this->newFunction( | ||||
'sum', | |||||
array( | |||||
'accumulate', | 'accumulate', | ||||
array('fact', 'tasks.open-count.assign.project', $project_phid)); | array('fact', 'tasks.open-count.create.project', $project_phid), | ||||
), | |||||
array( | |||||
'max', | |||||
array( | |||||
'accumulate', | |||||
array('fact', 'tasks.open-count.status.project', $project_phid), | |||||
), | |||||
0, | |||||
), | |||||
array( | |||||
'max', | |||||
array( | |||||
'accumulate', | |||||
array('fact', 'tasks.open-count.assign.project', $project_phid), | |||||
), | |||||
0, | |||||
)); | |||||
$function->getFunctionLabel() | $function->getFunctionLabel() | ||||
->setName(pht('Tasks Rescoped')) | ->setName(pht('Tasks Created')) | ||||
->setColor('rgba(0, 200, 200, 1)') | ->setColor('rgba(0, 0, 200, 1)') | ||||
->setFillColor('rgba(0, 200, 200, 0.15)'); | ->setFillColor('rgba(0, 0, 200, 0.15)'); | ||||
$functions[] = $function; | $functions[] = $function; | ||||
} | } | ||||
} else { | } else { | ||||
$function = $this->newFunction( | $function = $this->newFunction( | ||||
'accumulate', | 'accumulate', | ||||
array('fact', 'tasks.open-count.create')); | array('fact', 'tasks.open-count.create')); | ||||
Show All 28 Lines |