Merge lp:~brian-murray/ubuntu-archive-tools/gray-removals into lp:ubuntu-archive-tools

Proposed by Brian Murray
Status: Merged
Merged at revision: 694
Proposed branch: lp:~brian-murray/ubuntu-archive-tools/gray-removals
Merge into: lp:ubuntu-archive-tools
Diff against target: 40 lines (+8/-2)
1 file modified
sru-report (+8/-2)
To merge this branch: bzr merge lp:~brian-murray/ubuntu-archive-tools/gray-removals
Reviewer Review Type Date Requested Status
Colin Watson Approve
Review via email: mp+158502@code.launchpad.net

Description of the change

If a bug is tagged removal-candidate (not been verified for more than 90 days) make it gray colored so that we know which packages may be removed.

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'sru-report'
2--- sru-report 2013-02-14 10:51:38 +0000
3+++ sru-report 2013-04-11 22:17:20 +0000
4@@ -161,6 +161,7 @@
5 a.kerneltracking { font-style: italic; }
6 a.testing { color: blue; }
7 a.broken { text-decoration: line-through; color: black; }
8+ a.removal { color: gray; font-weight: bold }
9 </style>
10 </head>
11 <body>
12@@ -189,6 +190,8 @@
13 but need verification for another task,
14 bugs in <span style="color: #999900;">golden</span> have received a comment
15 since the package was accepted in -proposed,
16+bugs in <span style="color: gray;">gray</span> are candidates for removal
17+due to a lack of verification,
18 bugs in <span style="font-style: italic">italic</span> are kernel tracking
19 bugs and bugs that are
20 <span style="text-decoration: line-through;">struck through</span> weren't
21@@ -279,14 +282,17 @@
22 minute=0, second=0, microsecond=0)
23 published_date = rpkg['published'].replace(
24 minute=0, second=0, microsecond=0)
25+ today = datetime.datetime.utcnow()
26 if last_message_date > published_date:
27 for message in bug.messages:
28 m_date = message.date_created
29 if m_date <= rpkg['published']:
30 continue
31 m_owner = message.owner
32- if message.subject.lower() == \
33- 'verification still needed':
34+ if 'verification still needed' in message.subject.lower():
35+ if m_date.replace(tzinfo=None) < today - datetime.timedelta(16):
36+ cls += ' removal'
37+ continue
38 hover_text = ''
39 if 'messages' in cls:
40 cls = cls.replace('messages', '')

Subscribers

People subscribed via source and target branches