cvs: pearweb / package.xml /include/bugs pear-bugs.php
| From: | Greg Beaver | Date: | Sat, 16 Dec 2006 23:07:43 +0000 |
| Subject: | cvs: pearweb / package.xml /include/bugs pear-bugs.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-5277@lists.php.net to get a copy of this message | ||
cellog Sat Dec 16 23:07:43 2006 UTC
Modified files:
/pearweb/include/bugs pear-bugs.php
/pearweb package.xml
Log:
fix bug stats
- open bugs per dev now includes unassigned open bugs in packages the user maintains
- fix spurious "days"
- fix 0/missing stuff
http://cvs.php.net/viewvc.cgi/pearweb/include/bugs/pear-bugs.php?r1=1.2&r2=1.3&diff_format=u
Index: pearweb/include/bugs/pear-bugs.php
diff -u pearweb/include/bugs/pear-bugs.php:1.2 pearweb/include/bugs/pear-bugs.php:1.3
--- pearweb/include/bugs/pear-bugs.php:1.2 Sat Dec 16 05:54:26 2006
+++ pearweb/include/bugs/pear-bugs.php Sat Dec 16 23:07:42 2006
@@ -77,7 +77,7 @@
b.package_name = p.name AND
b.bug_type \!= "Feature/Change Request" AND
b.status IN ("Assigned", "Analyzed", "Feedback",
"Open", "Critical", "Verified") AND
- b.assign = ?', array($handle, $handle));
+ (b.assign = ? OR b.assign IS NULL OR b.assign="")', array($handle,
$handle));
$opencount = $this->_dbh->getOne('SELECT COUNT(*)
FROM bugdb b, maintains m, packages p
WHERE
@@ -86,7 +86,7 @@
b.package_name = p.name AND
b.bug_type \!= "Feature/Change Request" AND
b.status IN ("Assigned", "Analyzed", "Feedback",
"Open", "Critical", "Verified") AND
- b.assign = ?', array($handle, $handle));
+ (b.assign = ? OR b.assign IS NULL OR b.assign="")', array($handle,
$handle));
$bugrank = $this->_dbh->getAll('SELECT COUNT(*) as c, m.handle
FROM bugdb b, maintains m, packages p
WHERE
@@ -97,7 +97,7 @@
b.status = "Closed"
GROUP BY m.handle
ORDER BY c DESC, b.ts1 DESC', array(), DB_FETCHMODE_ASSOC);
- $rank = count($bugrank) + 1;
+ $rank = count($bugrank);
$alltimecount = 0;
foreach ($bugrank as $i => $inf) {
if ($inf['handle'] == $handle) {
@@ -108,9 +108,9 @@
}
return array(
'total' => $total,
- 'assigned' => $assigned / $total,
- 'openage' => $openage,
- 'opencount' => $opencount,
+ 'assigned' => $total ? $assigned / $total : 0,
+ 'openage' => $openage ? $openage : 0,
+ 'opencount' => $opencount ? $opencount : 0,
'info' => $allbugs,
'rankings' => $bugrank,
'rank' => $rank,
http://cvs.php.net/viewvc.cgi/pearweb/package.xml?r1=1.73&r2=1.74&diff_format=u
Index: pearweb/package.xml
diff -u pearweb/package.xml:1.73 pearweb/package.xml:1.74
--- pearweb/package.xml:1.73 Sat Dec 16 05:54:26 2006
+++ pearweb/package.xml Sat Dec 16 23:07:43 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<package packagerversion="1.5.0RC1" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0"
xmlns:tasks="http://pear.php.net/dtd/tasks-1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0
http://pear.php.net/dtd/tasks-1.0.xsd
http://pear.php.net/dtd/package-2.0
http://pear.php.net/dtd/package-2.0.xsd">
+<package packagerversion="1.5.0RC2" version="2.0" xmlns="http://pear.php.net/dtd/package-2.0"
xmlns:tasks="http://pear.php.net/dtd/tasks-1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pear.php.net/dtd/tasks-1.0
http://pear.php.net/dtd/tasks-1.0.xsd
http://pear.php.net/dtd/package-2.0
http://pear.php.net/dtd/package-2.0.xsd">
<name>pearweb</name>
<channel>pear.php.net</channel>
<summary>The source code for the PEAR website</summary>
@@ -52,8 +52,8 @@
<email>dufuz@php.net</email>
<active>no</active>
</developer>
- <date>2006-12-15</date>
- <time>23:53:01</time>
+ <date>2006-12-16</date>
+ <time>17:05:27</time>
<version>
<release>1.1.0</release>
<api>0.1.1</api>
@@ -971,7 +971,7 @@
<release>stable</release>
<api>stable</api>
</stability>
- <date>2006-12-15</date>
+ <date>2006-12-16</date>
<license uri="http://www.php.net/license">PHP
License</license>
<notes>
* add statistics for developers' bug activity