Bug#431299: Patches to add different timescales for RC bugs status graph

2014-01-21 Thread Don Armstrong
On Tue, 21 Jan 2014, Nicolas Dandrimont wrote:
 Since the patch from lucas has disappeared, please find attached another take
 on this issue.
 
 The first patch adds two new graphs: graph-month.png graphs the last month in
 RC bugs, and graph-release graphs the RC bugs since the last release.
 
 The second patch replaces the default graph with the -release one, and adds a
 link to the two other graphs to the page.

Thanks for this patch; I'll apply it shortly.

-- 
Don Armstrong  http://www.donarmstrong.com

Something the junk advertisers don't seem to understand: we live in an
information super-saturated world. If I don't want to buy something,
no amount of shouting or propagandizing will budge me; all it will do
is get me annoyed. On the other hand, if I have a need for your
product, I can seek it out in an eyeblink.
 -- Charles Stross Toast: A Con Report in _Toast_ p136


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#431299: Patches to add different timescales for RC bugs status graph

2014-01-20 Thread Nicolas Dandrimont
Hi,

Since the patch from lucas has disappeared, please find attached another take
on this issue.

The first patch adds two new graphs: graph-month.png graphs the last month in
RC bugs, and graph-release graphs the RC bugs since the last release.

The second patch replaces the default graph with the -release one, and adds a
link to the two other graphs to the page.

Cheers,
-- 
Nicolas Dandrimont
From 2334c705c94b22a902f1729803bacdc541aea598 Mon Sep 17 00:00:00 2001
From: Nicolas Dandrimont nicolas.dandrim...@crans.org
Date: Tue, 21 Jan 2014 01:34:21 +0100
Subject: [PATCH 1/2] Make RC bug graphs for the last month and since the last
 release

Closes: #431299
---
 dograph | 13 +
 1 file changed, 13 insertions(+)

diff --git a/dograph b/dograph
index 0ce2fb9..ba6b822 100755
--- a/dograph
+++ b/dograph
@@ -21,6 +21,12 @@ find counts -type f -not -iname '*.bad'| sort | xargs egrep '^(.* ){7}' /dev/nul
 #	echo $date $count  ${tmp}2
 #done
 
+# This is the date of the wheezy release
+previous_release=201305040600
+
+# And this is a month ago
+previous_month=`date +%Y%m%d%H%M --date=1 month ago`
+
 cat EOF | gnuplot
 set xdata time
 set timefmt %Y%m%d%H%M
@@ -33,6 +39,13 @@ set yrange [0:]
 #set nomxtics
 set output /org/bugs.debian.org/www/bugscan/graph.png
 plot $tmp using 1:2 with lines, $tmp2 using 1:2 with lines, $tmp3 using 1:2 with lines
+set xrange [$previous_release:]
+set output /org/bugs.debian.org/www/bugscan/graph-release.png
+plot $tmp using 1:2 with lines, $tmp2 using 1:2 with lines, $tmp3 using 1:2 with lines
+set xrange [$previous_month:]
+set format x %d\n%m\n%Y
+set output /org/bugs.debian.org/www/bugscan/graph-month.png
+plot $tmp using 1:2 with lines, $tmp2 using 1:2 with lines, $tmp3 using 1:2 with lines
 quit
 EOF
 
-- 
1.8.5.3

From 1407c6e2653d4dc0f4839d95e868edfc11192ce6 Mon Sep 17 00:00:00 2001
From: Nicolas Dandrimont nicolas.dandrim...@crans.org
Date: Tue, 21 Jan 2014 01:45:15 +0100
Subject: [PATCH 2/2] Link to new graphs in the generated html

---
 dohtml | 9 -
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/dohtml b/dohtml
index d39128c..39b7889 100755
--- a/dohtml
+++ b/dohtml
@@ -95,7 +95,14 @@ EOF
 	cat EOF
 /p
 
-div align=centerimg src=graph.png alt=Graph of RC bugs/div
+div align=centerimg src=graph-release.png alt=Graph of RC bugs/div
+
+pOther graphs:
+  ul
+lia href=graph-month.pngGraph for the last month/a/li
+lia href=graph.pngGraph with all the history/a/li
+  /ul
+/p
 
 pThe red line graphs all bugs with release-critical severities; the green
 line graphs the number of bugs that are actually a concern for the next
-- 
1.8.5.3



signature.asc
Description: Digital signature