* Fix metric of product.

This commit is contained in:
qixinzhi
2023-11-27 13:47:00 +08:00
parent 3d02e6f1ca
commit c931f50ef2
3 changed files with 3 additions and 17 deletions
@@ -44,21 +44,7 @@ class count_of_daily_created_bug_in_product extends baseCalc
public function getResult($options = array())
{
$records = array();
foreach($this->result as $product => $years)
{
foreach($years as $year => $months)
{
foreach($months as $month => $days)
{
foreach($days as $day => $value)
{
$records[] = array('product' => $product, 'year' => $year, 'month' => $month, 'day' => $day, 'value' => $value);
}
}
}
}
$records = $this->getRecords(array('product', 'year', 'month', 'day', 'value'));
return $this->filterByOptions($records, $options);
}
}
@@ -44,7 +44,7 @@ class count_of_delivered_story_in_product extends baseCalc
public function getResult($options = array())
{
$records = $this->getRecords(array('value'));
$records = $this->result;
return $this->filterByOptions($records, $options);
}
}
@@ -43,7 +43,7 @@ class count_of_invalid_story_in_product extends baseCalc
public function getResult($options = array())
{
$records = $this->getRecords(array('value'));
$records = $this->result;
return $this->filterByOptions($records, $options);
}
}