https://www.mediawiki.org/wiki/Special:Code/MediaWiki/115673

Revision: 115673
Author:   reedy
Date:     2012-08-17 22:51:36 +0000 (Fri, 17 Aug 2012)
Log Message:
-----------
Seems we can't currently search by keyword (bah), or by last date changed...

So this script can't be much used for its intended purpose.... Mostly fleshed 
out for usage in the future if we get keyword and change boundary...

Modified Paths:
--------------
    trunk/tools/bugzilla/client/shell-requests.php

Modified: trunk/tools/bugzilla/client/shell-requests.php
===================================================================
--- trunk/tools/bugzilla/client/shell-requests.php      2012-08-17 22:19:16 UTC 
(rev 115672)
+++ trunk/tools/bugzilla/client/shell-requests.php      2012-08-17 22:51:36 UTC 
(rev 115673)
@@ -30,31 +30,34 @@
        array(
                'Query Title' => 'All currently open shell bugs',
                'status' => array( 'UNCONFIRMED', 'NEW', 'ASSIGNED', 'REOPENED' 
),
-               'keywords' => array( 'shell' ),
+               // 'keywords' => array( 'shell' ), // Currently no search by 
keyword support
        ),
        // 
https://bugzilla.wikimedia.org/buglist.cgi?keywords=shell&query_format=advanced&keywords_type=allwords&list_id=80453&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&known_name=Shell%3A%20All%20Open%20Requests
        array(
                'Query Title' => 'All closed/resolved/verified shell bugs',
                'status' => array( 'CLOSED', 'RESOLVED', 'VERIFIED' ),
-               'keywords' => array( 'shell' ),
+               // 'keywords' => array( 'shell' ), // Currently no search by 
keyword support
        ),
        // 
https://bugzilla.wikimedia.org/buglist.cgi?keywords=shell&query_format=advanced&keywords_type=allwords&list_id=80456&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&resolution=FIXED
        array(
-               'Query Title' => 'All closed/resolved/verified shell bugs',
+               'Query Title' => 'All closed/resolved/verified fixed shell 
bugs',
                'status' => array( 'CLOSED', 'RESOLVED', 'VERIFIED' ),
-               'keywords' => array( 'shell' ),
-       ),
-       // 
https://bugzilla.wikimedia.org/buglist.cgi?chfieldto=2012-07-30&keywords=shell&chfield=bug_status&query_format=advanced&keywords_type=allwords&chfieldfrom=2012-07-01&list_id=85568&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED
-       array(
-       'Query Title' => 'All closed/resolved/verified shell bugs from last 
month',
-               'status' => array( 'CLOSED', 'RESOLVED', 'VERIFIED' ),
                'resolution' => array( 'FIXED' ),
-               'keywords' => array( 'shell' ),
-               // 'changedafter' => '2012-07-01',
-               // 'changedbefore' => '2012-07-30',
+               // 'keywords' => array( 'shell' ), // Currently no search by 
keyword support
        ),
 );
 
+$now = new DateTime( 'now' );
+// 
https://bugzilla.wikimedia.org/buglist.cgi?chfieldto=2012-07-30&keywords=shell&chfield=bug_status&query_format=advanced&keywords_type=allwords&chfieldfrom=2012-07-01&list_id=85568&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED
+$queries[] = array(
+       'Query Title' => 'All closed/resolved/verified shell bugs from last 
month',
+       'status' => array( 'CLOSED', 'RESOLVED', 'VERIFIED' ),
+       'resolution' => array( 'FIXED' ),
+       // 'keywords' => array( 'shell' ), // Currently no search by keyword 
support
+       'last_change_time' => $now->modify( 'first day of last month' 
)->format( 'Y-m-d' ), // Searches for bugs that were modified at this time or 
later.
+       // 'chfieldto' => $now->modify( 'last day of this month' )->format( 
'Y-m-d' ),
+),
+
 # iterate over a list of patches
 foreach( $queries as $terms ) {
 


_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to