+ [task#144627] add the getResult for count_of_resolved_bug_in_user metrics.

This commit is contained in:
wangzemei
2025-06-09 09:26:02 +08:00
committed by 曹延义
parent 06a51b5d63
commit a6802d6442
@@ -12,4 +12,17 @@ class count_of_resolved_bug_in_user extends baseCalc
if(!isset($this->result[$row->resolvedBy])) $this->result[$row->resolvedBy] = array();
$this->result[$row->resolvedBy][$row->id] = $row->id;
}
public function getResult($options = array())
{
foreach($this->result as $resolvedBy => $bugs)
{
if(!is_array($bugs)) continue;
$this->result[$resolvedBy] = count($bugs);
}
$records = $this->getRecords(array('user', 'value'));
return $this->filterByOptions($records, $options);
}
}