* Merge metric code from master.

This commit is contained in:
qixinzhi
2023-11-28 14:53:01 +08:00
parent b21682e65d
commit b2d7763e65
543 changed files with 2410 additions and 976 deletions
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
+1 -15
View File
@@ -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);
}
}
+2 -1
View File
@@ -44,6 +44,7 @@ class count_of_delivered_story_in_product extends baseCalc
public function getResult($options = array())
{
return $this->filterByOptions($this->result, $options);
$records = $this->result;
return $this->filterByOptions($records, $options);
}
}
View File
View File
View File
+2 -1
View File
@@ -43,6 +43,7 @@ class count_of_invalid_story_in_product extends baseCalc
public function getResult($options = array())
{
return $this->filterByOptions($this->result, $options);
$records = $this->result;
return $this->filterByOptions($records, $options);
}
}
+1 -12
View File
@@ -47,18 +47,7 @@ class count_of_monthly_created_story_in_product extends baseCalc
public function getResult($options = null)
{
$records = array();
foreach($this->result as $product => $years)
{
foreach($years as $year => $months)
{
foreach($months as $month => $value)
{
$records[] = array('product' => $product, 'year' => $year, 'month' => $month, 'value' => $value);
}
}
}
$records = $this->getRecords(array('product', 'year', 'month', 'value'));
return $this->filterByOptions($records, $options);
}
}
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File

Some files were not shown because too many files have changed in this diff Show More