[git] web/qa.git branch master updated. 50a0f6b
| From: | odoucet@php.net | Date: | Thu, 08 Mar 2012 10:07:48 +0000 |
| Subject: | [git] web/qa.git branch master updated. 50a0f6b | ||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-66135@lists.php.net to get a copy of this message | ||
The branch master on web/qa.git has been updated
via 50a0f6bb01a6e71d629c67848643f47ab69e9a79 (commit)
via ceb8fcc10860de51e8e146ea37b61275cf7ec32a (commit)
from 72f13d7bab5762d4c1e9b8d3fe46f15da9e66e35 (commit)
http://git.php.net/?p=web/qa.git;a=log;h=50a0f6bb01a6e71d629c67848643f47ab69e9a79;hp=72f13d7bab5762d4c1e9b8d3fe46f15da9e66e35
Summary of changes:
reports/reportsfunctions.php | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
-- Log ----------------------------------------
commit 50a0f6bb01a6e71d629c67848643f47ab69e9a79
Merge: ceb8fcc 72f13d7
Author: Olivier Doucet <odoucet@php.net>
Date: Thu Mar 8 10:57:19 2012 +0100
Merge branch 'master' of ssh://git.php.net:/web/qa
commit ceb8fcc10860de51e8e146ea37b61275cf7ec32a
Author: Olivier Doucet <odoucet@php.net>
Date: Thu Mar 8 10:56:46 2012 +0100
QA report feature request from Christopher Jones
diff --git a/reports/reportsfunctions.php b/reports/reportsfunctions.php
index ef9b65b..0290729 100644
--- a/reports/reportsfunctions.php
+++ b/reports/reportsfunctions.php
@@ -80,6 +80,25 @@ class devFilterIterator extends WhitelistedFilterIterator
}
}
+class specificVersionFilterIterator extends WhitelistedFilterIterator
+{
+ private $keyword;
+
+ public function __construct(Traversable $inner, $keyword)
+ {
+ parent::__construct($inner, array());
+ if (!is_array($keyword))
+ $this->keyword = array($keyword);
+ else
+ $this->keyword = $keyword;
+ }
+
+ public function accept()
+ {
+ return $this->inWhitelist() || !in_array($this->key(), $this->keyword);
+ }
+}
+
class minVersionFilterIterator extends FilterIterator
{
private $min;
@@ -103,7 +122,7 @@ const QA_REPORT_FILTER_RC = 4;
const QA_REPORT_FILTER_DEV = 8;
const QA_REPORT_FILTER_CURRENT_RELEASES = 16;
-define('QA_REPORT_FILTER_ALL',
QA_REPORT_FILTER_ALPHA|QA_REPORT_FILTER_BETA|QA_REPORT_FILTER_RC|QA_REPORT_FILTER_DEV|QA_REPORT_FILTER_CURRENT_RELEASES);
+define('QA_REPORT_FILTER_ALL',
QA_REPORT_FILTER_ALPHA|QA_REPORT_FILTER_BETA|QA_REPORT_FILTER_CURRENT_RELEASES);
/**
* Analyse sqlite files and retrieve data from it
@@ -115,7 +134,10 @@ function get_summary_data($mode = QA_REPORT_FILTER_ALL)
$data = array();
$it = new QaReportIterator(new DirectoryIterator(__DIR__.'/db/'));
-
+
+ // temp fix
+ $it = new specificVersionFilterIterator($it, array('5.3.99-dev',
'5.4.0-dev'));
+
if ($mode & QA_REPORT_FILTER_ALPHA) {
$it = new keywordFilterIterator($it, 'alpha',
$QA_RELEASES['reported']);
}
Thank you for your contribution.