public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo commit in src/gwn: gmn_bugzie.py
@ 2013-10-13 10:33 Markos Chandras (hwoarang)
  0 siblings, 0 replies; 12+ messages in thread
From: Markos Chandras (hwoarang) @ 2013-10-13 10:33 UTC (permalink / raw
  To: gentoo-commits

hwoarang    13/10/13 10:33:02

  Modified:             gmn_bugzie.py
  Log:
  Typo

Revision  Changes    Path
1.7                  src/gwn/gmn_bugzie.py

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.7&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.7&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?r1=1.6&r2=1.7

Index: gmn_bugzie.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/gmn_bugzie.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- gmn_bugzie.py	13 Oct 2013 09:50:22 -0000	1.6
+++ gmn_bugzie.py	13 Oct 2013 10:33:02 -0000	1.7
@@ -163,7 +163,7 @@
 for i in range(0,9):
 	print "%d, %s, %d" % (i+1, strip(groups_that_closed_most[i][2][0]), int(groups_that_closed_most[i][1]))
 	cleft += groups_that_closed_most[i][1]
-print "10, Others:, %s" % (total_closed - cleft)
+print "10, Others, %s" % (total_closed - cleft)
 print "[/table]"
 
 #9. Open Bugs
@@ -176,5 +176,5 @@
 for i in range(0,9):
 	print "%d, %s, %s" % (i+1, strip(groups_that_opened_most[i][2][0]), str(groups_that_opened_most[i][1]))
 	oleft += groups_that_opened_most[i][1]
-print "10, Others:, %s" % (total_opened - oleft)
+print "10, Others, %s" % (total_opened - oleft)
 print "[/table]"





^ permalink raw reply	[flat|nested] 12+ messages in thread
* [gentoo-commits] gentoo commit in src/gwn: gmn_bugzie.py
@ 2014-09-01 20:02 Markos Chandras (hwoarang)
  0 siblings, 0 replies; 12+ messages in thread
From: Markos Chandras (hwoarang) @ 2014-09-01 20:02 UTC (permalink / raw
  To: gentoo-commits

hwoarang    14/09/01 20:02:04

  Modified:             gmn_bugzie.py
  Log:
  gmn_bugzie.py: Argument handling fix up

Revision  Changes    Path
1.15                 src/gwn/gmn_bugzie.py

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.15&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.15&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?r1=1.14&r2=1.15

Index: gmn_bugzie.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/gmn_bugzie.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- gmn_bugzie.py	1 Sep 2014 19:48:14 -0000	1.14
+++ gmn_bugzie.py	1 Sep 2014 20:02:04 -0000	1.15
@@ -83,11 +83,10 @@
 
 if len(sys.argv) > 1:
   if len(sys.argv) >= 2:
-    starttime = time.strptime(str(int(sys.argv[1])-1), "%Y%m%d")
-
-  if len(sys.argv) == 3:
-    endtime = time.strptime(str(int(sys.argv[2])-1), "%Y%m%d")
-  else:
+    starttime = time.strptime(str(int(sys.argv[1])), "%Y%m%d")
+    if len(sys.argv) == 3:
+        endtime = time.strptime(str(int(sys.argv[2])), "%Y%m%d")
+else:
     print "Usage: " + os.path.basename(sys.argv[0]) +  " [start-date] [end-date]"
     print "dates must be passed in 'yyyymmdd' format"
     print "if no dates are specified then it defaults to a date range of the last 30 days"





^ permalink raw reply	[flat|nested] 12+ messages in thread
* [gentoo-commits] gentoo commit in src/gwn: gmn_bugzie.py
@ 2014-09-01 19:48 Markos Chandras (hwoarang)
  0 siblings, 0 replies; 12+ messages in thread
From: Markos Chandras (hwoarang) @ 2014-09-01 19:48 UTC (permalink / raw
  To: gentoo-commits

hwoarang    14/09/01 19:48:14

  Modified:             gmn_bugzie.py
  Log:
  gmn_bugzie.py: Use cmd arguments if necessary

Revision  Changes    Path
1.14                 src/gwn/gmn_bugzie.py

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.14&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.14&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?r1=1.13&r2=1.14

Index: gmn_bugzie.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/gmn_bugzie.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- gmn_bugzie.py	4 May 2014 11:23:36 -0000	1.13
+++ gmn_bugzie.py	1 Sep 2014 19:48:14 -0000	1.14
@@ -80,8 +80,6 @@
 # get dates from command line, else use now (time.time())
 starttime = time.gmtime(time.time() - (60 * 60 * 24 * 31))
 endtime = time.gmtime(time.time() - (60 * 60 * 24 * 1))
-dateimg = time.strftime("%Y-%m",endtime)
-datefor = time.strftime("%Y/%m",endtime)
 
 if len(sys.argv) > 1:
   if len(sys.argv) >= 2:
@@ -94,6 +92,9 @@
     print "dates must be passed in 'yyyymmdd' format"
     print "if no dates are specified then it defaults to a date range of the last 30 days"
 
+dateimg = time.strftime("%Y-%m",endtime)
+datefor = time.strftime("%Y/%m",endtime)
+
 #1.  Set up the dates we care about...a 30 day window that ends yesterday
 date_to = time.strftime("%Y-%m-%d", endtime)
 date_to_display = time.strftime("%d %B %Y", endtime)





^ permalink raw reply	[flat|nested] 12+ messages in thread
* [gentoo-commits] gentoo commit in src/gwn: gmn_bugzie.py
@ 2014-05-04 11:23 Markos Chandras (hwoarang)
  0 siblings, 0 replies; 12+ messages in thread
From: Markos Chandras (hwoarang) @ 2014-05-04 11:23 UTC (permalink / raw
  To: gentoo-commits

hwoarang    14/05/04 11:23:36

  Modified:             gmn_bugzie.py
  Log:
  Improve wording

Revision  Changes    Path
1.13                 src/gwn/gmn_bugzie.py

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.13&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.13&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?r1=1.12&r2=1.13

Index: gmn_bugzie.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/gmn_bugzie.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- gmn_bugzie.py	29 Apr 2014 21:11:41 -0000	1.12
+++ gmn_bugzie.py	4 May 2014 11:23:36 -0000	1.13
@@ -169,7 +169,7 @@
 cleft = 0
 #8. Closed Bugs
 print "\n<h2>Closed bug ranking</h2>\n"
-print "The developers and teams who have closed the most bugs during this period are as follows.\n"
+print "The following table outlines the teams and developers with the most bugs resolved during this period"
 print "[table]"
 print "Rank, Team/Developer, Bug Count"
 for i in range(0,9):





^ permalink raw reply	[flat|nested] 12+ messages in thread
* [gentoo-commits] gentoo commit in src/gwn: gmn_bugzie.py
@ 2014-04-29 21:11 Markos Chandras (hwoarang)
  0 siblings, 0 replies; 12+ messages in thread
From: Markos Chandras (hwoarang) @ 2014-04-29 21:11 UTC (permalink / raw
  To: gentoo-commits

hwoarang    14/04/29 21:11:41

  Modified:             gmn_bugzie.py
  Log:
  gmn_bugzie: Add initial html code for bugzilla charts

Revision  Changes    Path
1.12                 src/gwn/gmn_bugzie.py

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.12&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.12&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?r1=1.11&r2=1.12

Index: gmn_bugzie.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/gmn_bugzie.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- gmn_bugzie.py	30 Nov 2013 10:56:29 -0000	1.11
+++ gmn_bugzie.py	29 Apr 2014 21:11:41 -0000	1.12
@@ -80,6 +80,8 @@
 # get dates from command line, else use now (time.time())
 starttime = time.gmtime(time.time() - (60 * 60 * 24 * 31))
 endtime = time.gmtime(time.time() - (60 * 60 * 24 * 1))
+dateimg = time.strftime("%Y-%m",endtime)
+datefor = time.strftime("%Y/%m",endtime)
 
 if len(sys.argv) > 1:
   if len(sys.argv) >= 2:
@@ -147,6 +149,11 @@
 "activity on Bugzilla between <strong>%s</strong> and <strong>%s</strong>. Not fixed means bugs that were " % (date_from_display, date_to_display) + \
 "resolved as NEEDINFO, WONTFIX, CANTFIX, INVALID or UPSTREAM. "
 
+print """<a
+href="http://blogs.gentoo.org/news/files/%s/gmn-activity-%s.png"><img
+class="size-full wp-image-219 aligncenter" alt="gmn-activity-%s"
+src="http://blogs.gentoo.org/news/files/%s/gmn-activity-%s.png"
+width="500" height="300" /></a>""" % (datefor,dateimg,dateimg,datefor,dateimg)
 print "[table]"
 print "Bug Activity, Number"
 print "New, %d" % new_bug_count
@@ -171,6 +178,11 @@
 print "10, Others, %s" % (total_closed - cleft)
 print "[/table]"
 
+print """<a
+href="http://blogs.gentoo.org/news/files/%s/gmn-closed-%s.png"><img
+class="aligncenter size-full wp-image-220" alt="gmn-closed-%s"
+src="http://blogs.gentoo.org/news/files/%s/gmn-closed-%s.png"
+width="500" height="250" /></a>""" % (datefor,dateimg,dateimg,datefor,dateimg)
 #9. Open Bugs
 #print "\n\n==Open Bugs==\n"
 oleft = 0
@@ -183,3 +195,8 @@
 	oleft += groups_that_opened_most[i][1]
 print "10, Others, %s" % (total_opened - oleft)
 print "[/table]"
+print """<a
+href="http://blogs.gentoo.org/news/files/%s/gmn-opened-%s.png"><img
+class="aligncenter size-full wp-image-220" alt="gmn-opened-%s"
+src="http://blogs.gentoo.org/news/files/%s/gmn-opened-%s.png" width="500"
+height="250" /></a> """ % (datefor,dateimg,dateimg,datefor,dateimg)





^ permalink raw reply	[flat|nested] 12+ messages in thread
* [gentoo-commits] gentoo commit in src/gwn: gmn_bugzie.py
@ 2013-11-30 10:56 Markos Chandras (hwoarang)
  0 siblings, 0 replies; 12+ messages in thread
From: Markos Chandras (hwoarang) @ 2013-11-30 10:56 UTC (permalink / raw
  To: gentoo-commits

hwoarang    13/11/30 10:56:29

  Modified:             gmn_bugzie.py
  Log:
  gmn_bugzie.py: bold for dates

Revision  Changes    Path
1.11                 src/gwn/gmn_bugzie.py

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.11&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.11&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?r1=1.10&r2=1.11

Index: gmn_bugzie.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/gmn_bugzie.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- gmn_bugzie.py	30 Nov 2013 10:49:15 -0000	1.10
+++ gmn_bugzie.py	30 Nov 2013 10:56:29 -0000	1.11
@@ -144,7 +144,7 @@
 
 print "<h2>Activity</h2>"
 print"The following tables and charts summarize the " + \
-"activity on Bugzilla between %s and %s. Not fixed means bugs that were " % (date_from_display, date_to_display) + \
+"activity on Bugzilla between <strong>%s</strong> and <strong>%s</strong>. Not fixed means bugs that were " % (date_from_display, date_to_display) + \
 "resolved as NEEDINFO, WONTFIX, CANTFIX, INVALID or UPSTREAM. "
 
 print "[table]"





^ permalink raw reply	[flat|nested] 12+ messages in thread
* [gentoo-commits] gentoo commit in src/gwn: gmn_bugzie.py
@ 2013-11-30 10:49 Markos Chandras (hwoarang)
  0 siblings, 0 replies; 12+ messages in thread
From: Markos Chandras (hwoarang) @ 2013-11-30 10:49 UTC (permalink / raw
  To: gentoo-commits

hwoarang    13/11/30 10:49:15

  Modified:             gmn_bugzie.py
  Log:
  gmn_bugzie.py: Print section title

Revision  Changes    Path
1.10                 src/gwn/gmn_bugzie.py

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.10&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.10&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?r1=1.9&r2=1.10

Index: gmn_bugzie.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/gmn_bugzie.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- gmn_bugzie.py	1 Nov 2013 17:09:06 -0000	1.9
+++ gmn_bugzie.py	30 Nov 2013 10:49:15 -0000	1.10
@@ -136,6 +136,8 @@
 
 #7.  We have every value we need, now build the report
 
+print "<h1>Bugzilla</h1>"
+
 print "The Gentoo community uses <a href=\"https://bugs.gentoo.org\">Bugzilla</a> to record and " + \
 "track bugs, notifications, suggestions and other interactions with the " + \
 "development team."





^ permalink raw reply	[flat|nested] 12+ messages in thread
* [gentoo-commits] gentoo commit in src/gwn: gmn_bugzie.py
@ 2013-11-01 17:09 Markos Chandras (hwoarang)
  0 siblings, 0 replies; 12+ messages in thread
From: Markos Chandras (hwoarang) @ 2013-11-01 17:09 UTC (permalink / raw
  To: gentoo-commits

hwoarang    13/11/01 17:09:06

  Modified:             gmn_bugzie.py
  Log:
  typo

Revision  Changes    Path
1.9                  src/gwn/gmn_bugzie.py

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.9&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.9&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?r1=1.8&r2=1.9

Index: gmn_bugzie.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/gmn_bugzie.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- gmn_bugzie.py	31 Oct 2013 19:07:33 -0000	1.8
+++ gmn_bugzie.py	1 Nov 2013 17:09:06 -0000	1.9
@@ -175,7 +175,7 @@
 print "\n<h2>Assigned bug ranking</h2>\n"
 print "The developers and teams who have been assigned the most bugs during this period are as follows.\n"
 print "[table]"
-print "Rank, Team/Developer/, Bug Count"
+print "Rank, Team/Developer, Bug Count"
 for i in range(0,9):
 	print "%d, %s, %s" % (i+1, strip(groups_that_opened_most[i][2][0]), str(groups_that_opened_most[i][1]))
 	oleft += groups_that_opened_most[i][1]





^ permalink raw reply	[flat|nested] 12+ messages in thread
* [gentoo-commits] gentoo commit in src/gwn: gmn_bugzie.py
@ 2013-10-31 19:07 Markos Chandras (hwoarang)
  0 siblings, 0 replies; 12+ messages in thread
From: Markos Chandras (hwoarang) @ 2013-10-31 19:07 UTC (permalink / raw
  To: gentoo-commits

hwoarang    13/10/31 19:07:33

  Modified:             gmn_bugzie.py
  Log:
  gmn_bugzie.py: Add activity title

Revision  Changes    Path
1.8                  src/gwn/gmn_bugzie.py

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.8&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.8&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?r1=1.7&r2=1.8

Index: gmn_bugzie.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/gmn_bugzie.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- gmn_bugzie.py	13 Oct 2013 10:33:02 -0000	1.7
+++ gmn_bugzie.py	31 Oct 2013 19:07:33 -0000	1.8
@@ -138,7 +138,10 @@
 
 print "The Gentoo community uses <a href=\"https://bugs.gentoo.org\">Bugzilla</a> to record and " + \
 "track bugs, notifications, suggestions and other interactions with the " + \
-"development team. The following tables and charts summarize the " + \
+"development team."
+
+print "<h2>Activity</h2>"
+print"The following tables and charts summarize the " + \
 "activity on Bugzilla between %s and %s. Not fixed means bugs that were " % (date_from_display, date_to_display) + \
 "resolved as NEEDINFO, WONTFIX, CANTFIX, INVALID or UPSTREAM. "
 





^ permalink raw reply	[flat|nested] 12+ messages in thread
* [gentoo-commits] gentoo commit in src/gwn: gmn_bugzie.py
@ 2013-10-13  9:50 Markos Chandras (hwoarang)
  0 siblings, 0 replies; 12+ messages in thread
From: Markos Chandras (hwoarang) @ 2013-10-13  9:50 UTC (permalink / raw
  To: gentoo-commits

hwoarang    13/10/13 09:50:22

  Modified:             gmn_bugzie.py
  Log:
  gmn_bugzie.py: More formatting fixes

Revision  Changes    Path
1.6                  src/gwn/gmn_bugzie.py

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.6&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.6&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?r1=1.5&r2=1.6

Index: gmn_bugzie.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/gmn_bugzie.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- gmn_bugzie.py	13 Oct 2013 09:33:56 -0000	1.5
+++ gmn_bugzie.py	13 Oct 2013 09:50:22 -0000	1.6
@@ -136,14 +136,11 @@
 
 #7.  We have every value we need, now build the report
 
-print """
-
-The Gentoo community uses Bugzilla (bugs.gentoo.org) to record and
-track bugs, notifications, suggestions and other interactions with the
-development team. The following tables and charts summarize the
-activity on Bugzilla between %s and %s. Not fixed means bugs that were
-resolved as NEEDINFO, WONTFIX, CANTFIX, INVALID or UPSTREAM.
-""" % (date_from_display, date_to_display)
+print "The Gentoo community uses <a href=\"https://bugs.gentoo.org\">Bugzilla</a> to record and " + \
+"track bugs, notifications, suggestions and other interactions with the " + \
+"development team. The following tables and charts summarize the " + \
+"activity on Bugzilla between %s and %s. Not fixed means bugs that were " % (date_from_display, date_to_display) + \
+"resolved as NEEDINFO, WONTFIX, CANTFIX, INVALID or UPSTREAM. "
 
 print "[table]"
 print "Bug Activity, Number"
@@ -159,7 +156,8 @@
 
 cleft = 0
 #8. Closed Bugs
-print "\nThe following teams/developers closed the most bugs during this month :)\n"
+print "\n<h2>Closed bug ranking</h2>\n"
+print "The developers and teams who have closed the most bugs during this period are as follows.\n"
 print "[table]"
 print "Rank, Team/Developer, Bug Count"
 for i in range(0,9):
@@ -171,7 +169,8 @@
 #9. Open Bugs
 #print "\n\n==Open Bugs==\n"
 oleft = 0
-print "\nThe following teams/developers have the most unresolved bugs :(\n"
+print "\n<h2>Assigned bug ranking</h2>\n"
+print "The developers and teams who have been assigned the most bugs during this period are as follows.\n"
 print "[table]"
 print "Rank, Team/Developer/, Bug Count"
 for i in range(0,9):





^ permalink raw reply	[flat|nested] 12+ messages in thread
* [gentoo-commits] gentoo commit in src/gwn: gmn_bugzie.py
@ 2013-10-13  9:33 Markos Chandras (hwoarang)
  0 siblings, 0 replies; 12+ messages in thread
From: Markos Chandras (hwoarang) @ 2013-10-13  9:33 UTC (permalink / raw
  To: gentoo-commits

hwoarang    13/10/13 09:33:56

  Modified:             gmn_bugzie.py
  Log:
  gmn_bugzie.py: Make output compatible with WP tables

Revision  Changes    Path
1.5                  src/gwn/gmn_bugzie.py

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?r1=1.4&r2=1.5

Index: gmn_bugzie.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/gmn_bugzie.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- gmn_bugzie.py	5 Oct 2013 15:45:09 -0000	1.4
+++ gmn_bugzie.py	13 Oct 2013 09:33:56 -0000	1.5
@@ -136,29 +136,46 @@
 
 #7.  We have every value we need, now build the report
 
-print "Bugzilla statistics from %s to %s\n" % (date_from_display, date_to_display)
-print "New:%d" % new_bug_count
-print "Closed:%d" % closed_bug_count
-print "Not fixed:%d" % closed_nofix_bug_count
-print "Duplicates:%d" % duplicate_bug_count
-print "Total:%d" % total_open_bug_count
-print "Blocker:%d" % severities.get('"blocker"',0)
-print "Critical:%d" % severities.get('"critical"',0)
-print "Major:%d" % severities.get('"major"',0)
+print """
+
+The Gentoo community uses Bugzilla (bugs.gentoo.org) to record and
+track bugs, notifications, suggestions and other interactions with the
+development team. The following tables and charts summarize the
+activity on Bugzilla between %s and %s. Not fixed means bugs that were
+resolved as NEEDINFO, WONTFIX, CANTFIX, INVALID or UPSTREAM.
+""" % (date_from_display, date_to_display)
+
+print "[table]"
+print "Bug Activity, Number"
+print "New, %d" % new_bug_count
+print "Closed, %d" % closed_bug_count
+print "Not fixed, %d" % closed_nofix_bug_count
+print "Duplicates, %d" % duplicate_bug_count
+print "Total, %d" % total_open_bug_count
+print "Blocker, %d" % severities.get('"blocker"',0)
+print "Critical, %d" % severities.get('"critical"',0)
+print "Major, %d" % severities.get('"major"',0)
+print "[/table]"
 
 cleft = 0
-print "\nTeam Statistics\n"
 #8. Closed Bugs
-print "==Closed Bugs==\n"
+print "\nThe following teams/developers closed the most bugs during this month :)\n"
+print "[table]"
+print "Rank, Team/Developer, Bug Count"
 for i in range(0,9):
-	print "%s:%d" % (strip(groups_that_closed_most[i][2][0]), groups_that_closed_most[i][1])
+	print "%d, %s, %d" % (i+1, strip(groups_that_closed_most[i][2][0]), int(groups_that_closed_most[i][1]))
 	cleft += groups_that_closed_most[i][1]
-print "Others:%d" % (total_closed - cleft)
+print "10, Others:, %s" % (total_closed - cleft)
+print "[/table]"
 
 #9. Open Bugs
-print "\n\n==Open Bugs==\n"
+#print "\n\n==Open Bugs==\n"
 oleft = 0
+print "\nThe following teams/developers have the most unresolved bugs :(\n"
+print "[table]"
+print "Rank, Team/Developer/, Bug Count"
 for i in range(0,9):
-	print "%s:%d" % (strip(groups_that_opened_most[i][2][0]), groups_that_opened_most[i][1])
+	print "%d, %s, %s" % (i+1, strip(groups_that_opened_most[i][2][0]), str(groups_that_opened_most[i][1]))
 	oleft += groups_that_opened_most[i][1]
-print "Others:%d" % (total_opened - oleft)
+print "10, Others:, %s" % (total_opened - oleft)
+print "[/table]"





^ permalink raw reply	[flat|nested] 12+ messages in thread
* [gentoo-commits] gentoo commit in src/gwn: gmn_bugzie.py
@ 2013-10-05 15:45 Markos Chandras (hwoarang)
  0 siblings, 0 replies; 12+ messages in thread
From: Markos Chandras (hwoarang) @ 2013-10-05 15:45 UTC (permalink / raw
  To: gentoo-commits

hwoarang    13/10/05 15:45:09

  Modified:             gmn_bugzie.py
  Log:
  gmn_bugzie.py: Reword output

Revision  Changes    Path
1.4                  src/gwn/gmn_bugzie.py

file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/gwn/gmn_bugzie.py?r1=1.3&r2=1.4

Index: gmn_bugzie.py
===================================================================
RCS file: /var/cvsroot/gentoo/src/gwn/gmn_bugzie.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- gmn_bugzie.py	29 Sep 2013 14:39:26 -0000	1.3
+++ gmn_bugzie.py	5 Oct 2013 15:45:09 -0000	1.4
@@ -136,7 +136,7 @@
 
 #7.  We have every value we need, now build the report
 
-print "%s:%s" % (date_from_display, date_to_display)
+print "Bugzilla statistics from %s to %s\n" % (date_from_display, date_to_display)
 print "New:%d" % new_bug_count
 print "Closed:%d" % closed_bug_count
 print "Not fixed:%d" % closed_nofix_bug_count
@@ -147,13 +147,16 @@
 print "Major:%d" % severities.get('"major"',0)
 
 cleft = 0
+print "\nTeam Statistics\n"
 #8. Closed Bugs
+print "==Closed Bugs==\n"
 for i in range(0,9):
 	print "%s:%d" % (strip(groups_that_closed_most[i][2][0]), groups_that_closed_most[i][1])
 	cleft += groups_that_closed_most[i][1]
 print "Others:%d" % (total_closed - cleft)
 
 #9. Open Bugs
+print "\n\n==Open Bugs==\n"
 oleft = 0
 for i in range(0,9):
 	print "%s:%d" % (strip(groups_that_opened_most[i][2][0]), groups_that_opened_most[i][1])





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-09-01 20:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-13 10:33 [gentoo-commits] gentoo commit in src/gwn: gmn_bugzie.py Markos Chandras (hwoarang)
  -- strict thread matches above, loose matches on Subject: below --
2014-09-01 20:02 Markos Chandras (hwoarang)
2014-09-01 19:48 Markos Chandras (hwoarang)
2014-05-04 11:23 Markos Chandras (hwoarang)
2014-04-29 21:11 Markos Chandras (hwoarang)
2013-11-30 10:56 Markos Chandras (hwoarang)
2013-11-30 10:49 Markos Chandras (hwoarang)
2013-11-01 17:09 Markos Chandras (hwoarang)
2013-10-31 19:07 Markos Chandras (hwoarang)
2013-10-13  9:50 Markos Chandras (hwoarang)
2013-10-13  9:33 Markos Chandras (hwoarang)
2013-10-05 15:45 Markos Chandras (hwoarang)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox