Merge lp:~brian-murray/arsenal/search-criteria-milestone into lp:~bryce/arsenal/2.x

Proposed by Brian Murray
Status: Merged
Approved by: Bryce Harrington
Approved revision: 1106
Merged at revision: 1108
Proposed branch: lp:~brian-murray/arsenal/search-criteria-milestone
Merge into: lp:~bryce/arsenal/2.x
Diff against target: 32 lines (+15/-0)
1 file modified
scripts/collect-bug-data (+15/-0)
To merge this branch: bzr merge lp:~brian-murray/arsenal/search-criteria-milestone
Reviewer Review Type Date Requested Status
Bryce Harrington Approve
Review via email: mp+133144@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Bryce Harrington (bryce) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'scripts/collect-bug-data'
2--- scripts/collect-bug-data 2012-09-10 16:14:53 +0000
3+++ scripts/collect-bug-data 2012-11-06 21:31:20 +0000
4@@ -325,6 +325,18 @@
5 search_order = '-datecreated'
6
7 try:
8+ sc_milestone = search_criteria['milestone']
9+ search_milestones = [m for m in distro.all_milestones
10+ if m.name in sc_milestone]
11+ if len(search_milestones) >= 2:
12+ print('You may only have one milestone.')
13+ exit(1)
14+ else:
15+ search_milestone = search_milestones[0].raw
16+ except KeyError:
17+ search_milestone = None
18+
19+ try:
20 search_limit = int(search_criteria['limit'])
21 except KeyError:
22 search_limit = ''
23@@ -384,6 +396,9 @@
24 'modified_since': last_run_time,
25 'order_by': search_order}
26
27+ if search_milestone:
28+ search_args['milestone'] = search_milestone
29+
30 if search_reporters != '':
31 reported_tasks = []
32 for reporter in search_reporters:

Subscribers

People subscribed via source and target branches

to all changes: