* [bug#64333] fix the stage issues of metrics.

This commit is contained in:
wangzemei
2025-07-28 11:39:47 +08:00
parent 07059b9d0a
commit 2847a92ced
5 changed files with 5 additions and 5 deletions
@@ -39,7 +39,7 @@ class rate_of_developed_story_in_execution extends baseCalc
$this->result[$execution]['all'] = 0;
}
if(!in_array($stage, array('developed', 'testing', 'tested', 'verified', 'released')) && $closedReason == 'done') $this->result[$execution]['developed'] += 1;
if(!in_array($stage, array('developed', 'testing', 'tested', 'verified', 'delivering', 'delivered', 'released')) && $closedReason == 'done') $this->result[$execution]['developed'] += 1;
$this->result[$execution]['all'] += 1;
}
@@ -34,7 +34,7 @@ class count_of_developed_story_in_execution extends baseCalc
if(!isset($this->result[$execution])) $this->result[$execution] = 0;
if(in_array($stage, array('developed', 'testing', 'tested', 'verified', 'delivering', 'delivered', 'released'))) $this->result[$execution] += 1;
if(in_array($stage, array('developed', 'testing', 'tested', 'verified', 'rejected', 'delivering', 'delivered', 'released'))) $this->result[$execution] += 1;
if($closedReason == 'done') $this->result[$execution] += 1;
}
@@ -34,7 +34,7 @@ class count_of_verified_story_in_execution extends baseCalc
if(!isset($this->result[$execution])) $this->result[$execution] = 0;
if(in_array($stage, array('verified', 'delivering', 'delivered', 'released'))) $this->result[$execution] += 1;
if(in_array($stage, array('verified', 'rejected', 'delivering', 'delivered', 'released'))) $this->result[$execution] += 1;
if($closedReason == 'done') $this->result[$execution] += 1;
}
@@ -31,7 +31,7 @@ class scale_of_verified_story_in_execution extends baseCalc
if($row->isParent == '1') return false;
if(empty($row->estimate)) return null;
if(in_array($row->stage, array('verified', 'delivering', 'delivered', 'released'))) $this->result += $row->estimate;
if(in_array($row->stage, array('verified', 'rejected', 'delivering', 'delivered', 'released'))) $this->result += $row->estimate;
if($row->closedReason == 'done') $this->result += $row->estimate;
}
@@ -32,7 +32,7 @@ class count_of_developed_story_in_product extends baseCalc
$product = $row->product;
$closedReason = $row->closedReason;
if(!in_array($stage, array('developed', 'testing', 'tested', 'verified', 'delivering', 'delivered', 'released')) && $closedReason != 'done') return false;
if(!in_array($stage, array('developed', 'testing', 'tested', 'verified', 'rejected', 'delivering', 'delivered', 'released')) && $closedReason != 'done') return false;
if(!isset($this->result[$row->product])) $this->result[$row->product] = 0;
$this->result[$row->product] += 1;