Merge lp:~james-w/launchpad-work-items-tracker/spec-group-completion-by-priority into lp:~linaro-automation/launchpad-work-items-tracker/linaro

Proposed by James Westby
Status: Rejected
Rejected by: James Westby
Proposed branch: lp:~james-w/launchpad-work-items-tracker/spec-group-completion-by-priority
Merge into: lp:~linaro-automation/launchpad-work-items-tracker/linaro
Diff against target: 93 lines (+27/-26)
1 file modified
html-report (+27/-26)
To merge this branch: bzr merge lp:~james-w/launchpad-work-items-tracker/spec-group-completion-by-priority
Reviewer Review Type Date Requested Status
Michael Hudson-Doyle (community) Needs Fixing
Review via email: mp+49288@code.launchpad.net

Description of the change

Hi,

This branch changes the meaning of the by-priority progress bars
at the top of the front page of status.linaro.org.

Currently they indicate the priority of the blueprint. This makes
them reflect the priority of the TR that they contribute to.

Thanks,

James

To post a comment you must log in.
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

This branch now conflicts with trunk. It also hurts my head :/

review: Needs Fixing
Revision history for this message
James Westby (james-w) wrote :

Further discussion has concluded that we don't want this change after all. Sorry to have
you review something that wasn't desired.

Thanks,

James

Unmerged revisions

260. By James Westby

Use the workitems by TR in the by_importance workitem progress bars.

259. By James Westby

Add a link to the about page at the top of the overview page.

258. By James Westby

Drop TR percentage completion graph.

257. By James Westby

Add improved images for the about page.

256. By James Westby

Disable adding of orphan people.

255. By James Westby

Correctly ignore informational blueprints.

254. By James Westby

Merge status-overview work.

253. By James Westby

Merge multi-project.

252. By James Westby

Merge blueprints-api.

251. By James Westby

Handle "Unknown" status of bug tasks.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'html-report'
2--- html-report 2011-02-08 17:53:44 +0000
3+++ html-report 2011-02-10 20:27:43 +0000
4@@ -93,6 +93,11 @@
5 return dict(areas=[], group_completion_series=[], groups=[])
6 groups = []
7 by_area = {}
8+ all_workitems = WorkitemTarget()
9+ high_workitems = WorkitemTarget()
10+ medium_workitems = WorkitemTarget()
11+ low_workitems = WorkitemTarget()
12+ unknown_workitems = WorkitemTarget()
13 for bp_name, i in data.items():
14 area_name = i['area']
15 if area_name == "ad":
16@@ -109,21 +114,37 @@
17 postponed=i['postponed'], done=i['done'],
18 implementation=i['implementation'],
19 priority=i['priority'], status=i['status'])
20+ def add_totals(container):
21+ container.todo += group.todo
22+ container.blocked += group.blocked
23+ container.inprogress += group.inprogress
24+ container.postponed += group.postponed
25+ container.done += group.done
26+ add_totals(all_workitems)
27+ by_importance_workitems = unknown_workitems
28+ if i['priority'] in ("Essential", "High"):
29+ by_importance_workitems = high_workitems
30+ elif i['priority'] == "Medium":
31+ by_importance_workitems = medium_workitems
32+ elif i['priority'] == "Low":
33+ by_importance_workitems = low_workitems
34+ add_totals(by_importance_workitems)
35 groups.append(group)
36 area.groups.append(group)
37 return dict(areas=sorted(by_area.values(), key=lambda x: x.name),
38- groups=sorted(groups, key=lambda x: report_tools.priority_value(x.priority), reverse=True))
39+ groups=sorted(groups, key=lambda x: report_tools.priority_value(x.priority), reverse=True),
40+ all_workitems=all_workitems,
41+ high_workitems=high_workitems,
42+ medium_workitems=medium_workitems,
43+ low_workitems=low_workitems,
44+ unknown_workitems=unknown_workitems,
45+ )
46
47
48 def spec_completion(db, team, milestone):
49 data = report_tools.blueprint_completion(db, team, milestone)
50
51 blueprints = []
52- all_workitems = WorkitemTarget()
53- high_workitems = WorkitemTarget()
54- medium_workitems = WorkitemTarget()
55- low_workitems = WorkitemTarget()
56- unknown_workitems = WorkitemTarget()
57 for bp_name, i in data.items():
58 bp = Blueprint(bp_name, i['url'], complexity=i['complexity'],
59 todo=i['todo'], blocked=i['blocked'],
60@@ -131,21 +152,6 @@
61 postponed=i['postponed'], done=i['done'],
62 implementation=i['implementation'],
63 priority=i['priority'], status=i['status'])
64- def add_totals(container):
65- container.todo += bp.todo
66- container.blocked += bp.blocked
67- container.inprogress += bp.inprogress
68- container.postponed += bp.postponed
69- container.done += bp.done
70- add_totals(all_workitems)
71- by_importance_workitems = unknown_workitems
72- if i['priority'] in ("Essential", "High"):
73- by_importance_workitems = high_workitems
74- elif i['priority'] == "Medium":
75- by_importance_workitems = medium_workitems
76- elif i['priority'] == "Low":
77- by_importance_workitems = low_workitems
78- add_totals(by_importance_workitems)
79 blueprints.append(bp)
80
81 # avoid showing empty columns
82@@ -160,11 +166,6 @@
83 specs_have_status=specs_have_status,
84 specs_have_complexity=specs_have_complexity,
85 blueprints=blueprints,
86- all_workitems=all_workitems,
87- high_workitems=high_workitems,
88- medium_workitems=medium_workitems,
89- low_workitems=low_workitems,
90- unknown_workitems=unknown_workitems,
91 )
92
93 def get_assignee_completion(db, team=None, milestone=None, group=None):

Subscribers

People subscribed via source and target branches

to all changes: