Symbian developer community

 
wiki

Quality Metrics/Defect Inflow

From Symbian Developer Community

Jump to: navigation, search

Defect Inflow

Description

Shows the incoming defects for each package. Defined as:

  • bugs created, or
  • bugs transitioning status from RESOLVED/VERIFIED/CLOSED to NEW/ASSIGNED/PROPOSED, or
  • enhancements changing to bugs.

How to implement?

Implemented in BugzillaMetrics (saved in My Queries as "SF Defect Inflow"). The XML for the query is defined as,

<metric>

<baseFilter>
 <or>
  <value field="severity">minor</value>
  <value field="severity">normal</value>
  <value field="severity">major</value>
  <value field="severity">critical</value>
 </or>
</baseFilter>
<groupingParameters>
 <none />
</groupingParameters>
<groupEvaluations>
 <calculation name="Inflow">
  <sum caseValueCalculator="Inflow" />
 </calculation>
 <details name="BugsList_Inflow" caseValueCalculator="Inflow" />
</groupEvaluations>
<caseValueCalculators>
 <countEvents id="Inflow">
  <event>
   <and>
    <or>
     <create />
     <enterBaseFilter />
     <transition field="status">
      <from>RESOLVED</from>
      <from>VERIFIED</from>
      <from>CLOSED</from>
      <to>NEW</to>
      <to>ASSIGNED</to>
      <to>PROPOSED</to>
     </transition>
    </or>
    <stateFilter>
     <or>
      <value field="classification">11</value>
      <value field="classification">2</value>
      <value field="classification">7</value>
      <value field="classification">4</value>
      <value field="classification">6</value>
      <value field="classification">8</value>
      <value field="classification">1</value>
     </or>
    </stateFilter>
   </and>
  </event>
  <weight>
   <default />
  </weight>
 </countEvents>
</caseValueCalculators>
<evaluationTimePeriod>
 <timePeriod>
  <start>2009-04-13</start>
  <end>today</end>
 </timePeriod>
</evaluationTimePeriod>
<timePeriodGranularity>
 <week />
</timePeriodGranularity>
<fixedFields />

</metric>

How to access?

Saved in Bug Tracker Metrics under the My Queries tab as a public query, with the name "SF Defect Inflow".

Sign in to comment…

Richard b said...

We have to make a couple of slight changes to the definition. 1. Unconfirmed status is not used by Symbian Foundation, so it should not appear in the query XML. 2. Using Bug Tracker screen transactions, Closed or Resolved bugs can only be re-opened by setting them back to New status. However, it is possible that package owners using an automatic cross-posting facility will be able to re-open such bugs by marking them as Assigned. The query XML for Defect inflow must take this into account.

--Richard b 11:02, 12 October 2009 (BST)

Richard b said…

As you can see, the changed definition is now in place.

--Richard b 09:57, 19 October 2009 (BST)