cvs: pearweb /public_html account-info.php package-info.php /public_html/bugs stats.php

From: Date: Sat, 16 Dec 2006 05:54:29 +0000
Subject: cvs: pearweb /public_html account-info.php package-info.php /public_html/bugs stats.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-5275@lists.php.net to get a copy of this message
cellog Sat Dec 16 05:54:29 2006 UTC Modified files: /pearweb/public_html account-info.php package-info.php /pearweb/public_html/bugs stats.php Log: * add statistics for developers' bug activity This new feature allows the most active developers who are closing bugs to get a special ranking based on closed bugs assigned to a developer. The idea is to encourage greater bug fixing and also accountability http://cvs.php.net/viewvc.cgi/pearweb/public_html/account-info.php?r1=1.43&r2=1.44&diff_format=u Index: pearweb/public_html/account-info.php diff -u pearweb/public_html/account-info.php:1.43 pearweb/public_html/account-info.php:1.44 --- pearweb/public_html/account-info.php:1.43 Tue Sep 26 09:31:40 2006 +++ pearweb/public_html/account-info.php Sat Dec 16 05:54:28 2006 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: account-info.php,v 1.43 2006/09/26 09:31:40 mj Exp $ + $Id: account-info.php,v 1.44 2006/12/16 05:54:28 cellog Exp $ */ /** @@ -148,6 +148,19 @@ print_link('http://' . htmlspecialchars($_SERVER['HTTP_HOST']) . '/feeds/user_' . $handle . '.rss'); echo '</li>'; +echo '<li>Bug Statistics: <br /><ul>'; + +require 'bugs/pear-bugs.php'; +$bugs = new PEAR_Bugs; +$info = $bugs->developerBugStats($handle); +echo '<li>Rank: <strong><a href="/bugs/stats.php#devs">#' . $info['rank'] . ' of ' . count($info['rankings']) . '</a></strong> developers who have fixed bugs <strong>(' . + $info['alltime'] . ' fixed bugs)</strong></li>'; +echo '<li>Average age of open bugs: <strong>' . $info['openage'] . ' days</strong></li>'; +echo '<li>Number of open bugs: <strong>' . $info['opencount'] . ' days</strong></li>'; +echo '<li>Assigned bugs relative to all maintained packages\' bugs: <strong>' . + round($info['assigned'] * 100) . '%</strong></li>'; +echo '</ul></li>'; + ?> </ul> http://cvs.php.net/viewvc.cgi/pearweb/public_html/package-info.php?r1=1.122&r2=1.123&diff_format=u Index: pearweb/public_html/package-info.php diff -u pearweb/public_html/package-info.php:1.122 pearweb/public_html/package-info.php:1.123 --- pearweb/public_html/package-info.php:1.122 Sun Dec 3 05:30:08 2006 +++ pearweb/public_html/package-info.php Sat Dec 16 05:54:28 2006 @@ -16,7 +16,7 @@ | Authors: Martin Jansen <mj@php.net> | | Tomas V.V.Cox <cox@idecnet.com> | +----------------------------------------------------------------------+ - $Id: package-info.php,v 1.122 2006/12/03 05:30:08 cellog Exp $ + $Id: package-info.php,v 1.123 2006/12/16 05:54:28 cellog Exp $ */ @@ -151,13 +151,16 @@ // Maintainer information $maintainers = maintainer::get($pacid); $accounts = '<ul>'; +$bugs = new PEAR_Bugs; foreach ($maintainers as $handle => $row) { + $buginfo = $bugs->getRank($handle); $accounts .= '<li>'; $accounts .= user_link($handle); $accounts .= '(' . $row['role'] . ($row['active'] == 0 ? ', inactive' : '') - . ')'; + . ')<br /> Bug fixer Rank: <strong>#' . $buginfo[0] . ' of ' . $buginfo[1] . + '</strong>'; $accounts .= '</li>'; } http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/stats.php?r1=1.48&r2=1.49&diff_format=u Index: pearweb/public_html/bugs/stats.php diff -u pearweb/public_html/bugs/stats.php:1.48 pearweb/public_html/bugs/stats.php:1.49 --- pearweb/public_html/bugs/stats.php:1.48 Mon Sep 18 16:08:38 2006 +++ pearweb/public_html/bugs/stats.php Sat Dec 16 05:54:28 2006 @@ -15,7 +15,7 @@ * @package Bugs * @copyright Copyright (c) 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: stats.php,v 1.48 2006/09/18 16:08:38 cellog Exp $ + * @version $Id: stats.php,v 1.49 2006/12/16 05:54:28 cellog Exp $ */ /** @@ -275,6 +275,26 @@ } echo "</table>\n"; +echo '<a name="devs">&nbsp;</a>'; +echo "<h1>Most Active Bug-fixing Developers</h1>"; +echo "<p>The following is a list of developers who have bugs marked <strong>Closed</strong> and assigned to them ranked by the number of closed bugs.</p>"; +require_once 'bugs/pear-bugs.php'; +$bugs = new PEAR_Bugs; +$develstats = $bugs->allDevelStats(); +echo '<table>'; ?> + <tr> + <th class="bug_head">Closed Bugs</th> + <th class="bug_head">Developer</th> + </tr> +<?php +foreach ($develstats as $stat) { + echo " <tr>\n"; + echo ' <td class="bug_bg0">' . $stat['c'] . "</td>\n"; + echo ' <td class="bug_bg0"><a href="/user/' . $stat['handle'] . '">' . + $stat['handle'] . "</a></td>\n"; + echo " </tr>\n"; +} +echo "</table>\n"; response_footer();

« previous php.pear.core (#5275) next »