Merge lp:~clint-fewbar/launchpad-work-items-tracker/server-team-mods into lp:launchpad-work-items-tracker

Proposed by Clint Byrum
Status: Merged
Merged at revision: 222
Proposed branch: lp:~clint-fewbar/launchpad-work-items-tracker/server-team-mods
Merge into: lp:launchpad-work-items-tracker
Diff against target: 46 lines (+6/-6)
2 files modified
burndown-chart (+3/-3)
report_tools.py (+3/-3)
To merge this branch: bzr merge lp:~clint-fewbar/launchpad-work-items-tracker/server-team-mods
Reviewer Review Type Date Requested Status
Developers of work-items-tracker Pending
Review via email: mp+35303@code.launchpad.net

Description of the change

Fixed the issues with milestone-only generation and with postponed missing from burndown charts.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'burndown-chart'
2--- burndown-chart 2010-09-13 06:50:12 +0000
3+++ burndown-chart 2010-09-13 16:35:55 +0000
4@@ -156,14 +156,14 @@
5 plot10.line_style = None
6
7 plot11 = bar_plot.T(label='total', hcol=9)
8- plot10.fill_style = None
9- plot10.line_style = line_style.gray30
10+ plot11.fill_style = None
11+ plot11.line_style = line_style.gray30
12
13 # create the canvas with the specified filename and file format
14 can = canvas.init(filename,format)
15
16 # add the data to the area and draw it
17- ar.add_plot(plot2, plot1, plot4, plot3, plot6, plot5, plot7)
18+ ar.add_plot(plot2, plot1, plot4, plot3, plot6, plot5, plot8, plot7, plot10, plot9)
19 ar.draw()
20
21 # create and arrow for the trend line
22
23=== modified file 'report_tools.py'
24--- report_tools.py 2010-09-03 05:55:34 +0000
25+++ report_tools.py 2010-09-13 16:35:55 +0000
26@@ -189,7 +189,7 @@
27 cur.execute('SELECT status, date, count(*) FROM work_items w '
28 'WHERE 1=1 %s GROUP BY status, date' % ms_sql)
29
30- for (date, num) in cur:
31+ for (s, date, num) in cur:
32 data.setdefault(date, {})[s] = num
33 return data
34
35@@ -235,9 +235,9 @@
36 cur.execute('SELECT w.status, s.name, COUNT(DISTINCT w.description), s.status, s.priority, s.implementation, s.url, s.roadmap_notes '
37 'FROM work_items w, specs s '
38 'ON w.spec = s.name '
39- 'WHERE w.status = ? AND w.date = ? %s '
40+ 'WHERE w.date = ? %s '
41 'GROUP BY w.status, w.spec' % ms_sql,
42- (last_date))
43+ (last_date,))
44
45 for (s, bp, num, status, priority, impl, url, roadmap_notes) in cur:
46 info = data.setdefault(bp, {'todo': 0, 'blocked': 0, 'done': 0, 'postponed': 0, 'inprogress': 0})

Subscribers

People subscribed via source and target branches

to all changes: