1 |
hwoarang 13/09/29 14:39:26 |
2 |
|
3 |
Modified: gmn_bugzie.py gmn_bugzie_aggregate.py |
4 |
Log: |
5 |
gmn_bugzie{,_aggregate}.py: Status REOPENED removed from Bugzilla |
6 |
|
7 |
Revision Changes Path |
8 |
1.3 src/gwn/gmn_bugzie.py |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.3&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.3&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?r1=1.2&r2=1.3 |
13 |
|
14 |
Index: gmn_bugzie.py |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo/src/gwn/gmn_bugzie.py,v |
17 |
retrieving revision 1.2 |
18 |
retrieving revision 1.3 |
19 |
diff -u -r1.2 -r1.3 |
20 |
--- gmn_bugzie.py 29 Sep 2013 14:22:30 -0000 1.2 |
21 |
+++ gmn_bugzie.py 29 Sep 2013 14:39:26 -0000 1.3 |
22 |
@@ -107,7 +107,6 @@ |
23 |
duplicate_report = get_page("bugs.gentoo.org", "/buglist.cgi?bug_status=RESOLVED&bug_status=CLOSED&chfield=bug_status&resolution=DUPLICATE&ctype=csv&chfieldfrom=%s&chfieldto=%s" % (date_from, date_to), header) |
24 |
opened_report = get_page("bugs.gentoo.org", "/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&chfield=[Bug+creation]&ctype=csv&chfieldfrom=%s&chfieldto=%s" % (date_from, date_to), header) |
25 |
new_report = get_page("bugs.gentoo.org", "/buglist.cgi?chfield=[Bug+creation]&chfieldfrom=%s&chfieldto=%s&ctype=csv" % (date_from, date_to), header) |
26 |
-reopened_report = get_page("bugs.gentoo.org", "/buglist.cgi?bug_status=REOPENED&chfield=bug_status&chfieldfrom=%s&chfieldto=%s&ctype=csv" % (date_from, date_to), header) |
27 |
total_opened_report = get_page("bugs.gentoo.org", "/report.cgi?x_axis_field=bug_status&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&format=table&action=wrap&ctype=csv", header) |
28 |
severities_report = get_page("bugs.gentoo.org", "/report.cgi?x_axis_field=bug_status&y_axis_field=bug_severity&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_severity=blocker&bug_severity=critical&bug_severity=major&format=table&action=wrap&ctype=csv", header) |
29 |
|
30 |
@@ -119,7 +118,6 @@ |
31 |
#5. For bug counts, just counting the lines that were returned is sufficient |
32 |
new_bug_count = len(new_report.split("\n")) - 1 |
33 |
closed_bug_count = len(closed_report.split("\n")) - 1 |
34 |
-reopened_bug_count = len(reopened_report.split("\n")) - 1 |
35 |
duplicate_bug_count = len(duplicate_report.split("\n")) - 1 |
36 |
closed_nofix_bug_count = len(closed_nofix_report.split("\n")) - 1 |
37 |
|
38 |
@@ -141,7 +139,6 @@ |
39 |
print "%s:%s" % (date_from_display, date_to_display) |
40 |
print "New:%d" % new_bug_count |
41 |
print "Closed:%d" % closed_bug_count |
42 |
-print "Reopened:%d" % reopened_bug_count |
43 |
print "Not fixed:%d" % closed_nofix_bug_count |
44 |
print "Duplicates:%d" % duplicate_bug_count |
45 |
print "Total:%d" % total_open_bug_count |
46 |
|
47 |
|
48 |
|
49 |
1.2 src/gwn/gmn_bugzie_aggregate.py |
50 |
|
51 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie_aggregate.py?rev=1.2&view=markup |
52 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie_aggregate.py?rev=1.2&content-type=text/plain |
53 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie_aggregate.py?r1=1.1&r2=1.2 |
54 |
|
55 |
Index: gmn_bugzie_aggregate.py |
56 |
=================================================================== |
57 |
RCS file: /var/cvsroot/gentoo/src/gwn/gmn_bugzie_aggregate.py,v |
58 |
retrieving revision 1.1 |
59 |
retrieving revision 1.2 |
60 |
diff -u -r1.1 -r1.2 |
61 |
--- gmn_bugzie_aggregate.py 21 May 2008 00:34:05 -0000 1.1 |
62 |
+++ gmn_bugzie_aggregate.py 29 Sep 2013 14:39:26 -0000 1.2 |
63 |
@@ -1,3 +1,5 @@ |
64 |
+#!/usr/bin/env python |
65 |
+ |
66 |
from pygooglechart import * |
67 |
data = open('breport') |
68 |
|
69 |
@@ -14,21 +16,28 @@ |
70 |
j = 0 |
71 |
for i in data: |
72 |
values = i.strip('\n').split(':') |
73 |
+ # j == 0 -> New, Closed, Not Fixed, Duplicates, Total |
74 |
if j == 0: |
75 |
+ # Dates |
76 |
dfrom = values[0] |
77 |
dnext = values[1] |
78 |
- elif j > 0 and j <= 5: |
79 |
+ elif j > 0 and j <= 4: |
80 |
+ # Populate list of New, Closed, Not Fixed and Duplicates Bugs |
81 |
budata.append(int(values[1])) |
82 |
bukeys.append(values[0] + ' (' + str(budata[-1]) + ')') |
83 |
- elif j > 5 and j <= 9: |
84 |
+ elif j > 4 and j <= 8: |
85 |
+ # Total bugs |
86 |
butota.append(int(values[1])) |
87 |
- elif j > 9 and j <= 18: |
88 |
+ elif j > 8 and j <= 17: |
89 |
+ # Bugs per team |
90 |
cldata.append(int(values[1])) |
91 |
clkraw.append(values[0]); |
92 |
clkeys.append(values[0] + ' (' + str(cldata[-1]) + ')') |
93 |
- elif j == 19: |
94 |
+ elif j == 18: |
95 |
+ # Bugs for others |
96 |
clothers = int(values[1]) |
97 |
- elif j <= 28: |
98 |
+ elif j <= 27: |
99 |
+ # Bugs for others |
100 |
opdata.append(int(values[1])) |
101 |
opkraw.append(values[0]) |
102 |
opkeys.append(values[0] + ' (' + str(opdata[-1]) + ')') |