RSS

(root)/bugzilla/4.2 : 7271 : whineatnews.pl

To get this branch, use:
bzr branch /bugzilla/4.2

« back to all changes in this revision

Viewing changes to whineatnews.pl

Max Kanat-Alexander
2010-07-05 17:42:57
Revision ID: mkanat@bugzilla.org-20100706004257-9wg4e8f3s52lbqhi
Bug 486292: Change the default workflow to UNCONFIRMED, CONFIRMED,
IN_PROGRESS, RESOLVED, VERIFIED.
r=LpSolit, a=mkanat

Show diffs side-by-side

added added

removed removed

25
25
 
26
26
# This is a script suitable for running once a day from a cron job.  It 
27
27
# looks at all the bugs, and sends whiny mail to anyone who has a bug 
28
 
# assigned to them that has status NEW or REOPENED that has not been 
29
 
# touched for more than the number of days specified in the whinedays param.
 
28
# assigned to them that has status CONFIRMED, NEW, or REOPENED that has not
 
29
# been touched for more than the number of days specified in the whinedays
 
30
# param. (We have NEW and REOPENED in there to keep compatibility with old
 
31
# Bugzillas.)
30
32
 
31
33
use strict;
32
34
use lib qw(. lib);
44
46
                FROM bugs
45
47
          INNER JOIN profiles
46
48
                  ON userid = assigned_to
47
 
               WHERE (bug_status = ? OR bug_status = ?)
 
49
               WHERE bug_status IN (?,?,?)
48
50
                 AND disable_mail = 0
49
51
                 AND } . $dbh->sql_to_days('NOW()') . " - " .
50
52
                       $dbh->sql_to_days('delta_ts') . " > " .
54
56
my %bugs;
55
57
my %desc;
56
58
 
57
 
my $slt_bugs = $dbh->selectall_arrayref($query, undef, 'NEW', 'REOPENED');
 
59
my $slt_bugs = $dbh->selectall_arrayref($query, undef, 'CONFIRMED', 'NEW',
 
60
                                                       'REOPENED');
58
61
 
59
62
foreach my $bug (@$slt_bugs) {
60
63
    my ($id, $desc, $email) = @$bug;

Loggerhead 1.18.1 is a web-based interface for Bazaar branches