Merge lp:~brian-murray/ubuntu-archive-tools/mir-bug-creation-improvements into lp:ubuntu-archive-tools

Proposed by Brian Murray
Status: Merged
Merged at revision: 1005
Proposed branch: lp:~brian-murray/ubuntu-archive-tools/mir-bug-creation-improvements
Merge into: lp:ubuntu-archive-tools
Diff against target: 55 lines (+10/-7)
1 file modified
component-mismatches (+10/-7)
To merge this branch: bzr merge lp:~brian-murray/ubuntu-archive-tools/mir-bug-creation-improvements
Reviewer Review Type Date Requested Status
Ubuntu Package Archive Administrators Pending
Review via email: mp+290380@code.launchpad.net

Description of the change

We could also set field.assignee when creating the bug, although its possible for a team to only use a package subscribing team for bug mail only (e.g. foundations-bugs) so they might not notice a bug being assigned to them. Subsequently, it might be best to force the MIR bug creator to pick a team. Having said that I'm willing to add in field.assignee.

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
=== modified file 'component-mismatches'
--- component-mismatches 2016-02-05 10:22:35 +0000
+++ component-mismatches 2016-03-29 23:29:35 +0000
@@ -331,7 +331,7 @@
331 return output331 return output
332332
333333
334def do_dot(why, fd, mir_bugs):334def do_dot(why, fd, mir_bugs, suite):
335 # write dot graph for given why dictionary335 # write dot graph for given why dictionary
336336
337 written_nodes = set()337 written_nodes = set()
@@ -397,9 +397,10 @@
397 else:397 else:
398 fc = "white"398 fc = "white"
399 url = ("https://launchpad.net/ubuntu/+source/%s/+filebug?"399 url = ("https://launchpad.net/ubuntu/+source/%s/+filebug?"
400 "field.title=%s" %400 "field.title=%s&field.status=Incomplete"
401 (name, quote_plus("[MIR] %s" % name)))401 "&field.tags=%s" %
402402 (quote_plus(name), quote_plus("[MIR] %s" % name),
403 quote_plus(suite)))
403 fd.write(' fillcolor="%s"' % fc)404 fd.write(' fillcolor="%s"' % fc)
404 if url:405 if url:
405 fd.write(' URL="%s"' % url)406 fd.write(' URL="%s"' % url)
@@ -674,7 +675,7 @@
674675
675 if options.dot:676 if options.dot:
676 with open(options.dot, 'w') as f:677 with open(options.dot, 'w') as f:
677 do_dot(both, f, mir_bugs)678 do_dot(both, f, mir_bugs, options.suite)
678679
679 # Removals680 # Removals
680681
@@ -836,6 +837,10 @@
836 '--germinate-path',837 '--germinate-path',
837 default=os.path.expanduser('~/mirror/ubuntu-germinate/'),838 default=os.path.expanduser('~/mirror/ubuntu-germinate/'),
838 help='read Germinate output from this directory')839 help='read Germinate output from this directory')
840 parser.add_option(
841 '--archive-dir',
842 default=os.path.expanduser('~/mirror/ubuntu/'),
843 help='use Ubuntu archive located in this directory')
839 options, args = parser.parse_args()844 options, args = parser.parse_args()
840845
841 options.launchpad = Launchpad.login_anonymously(846 options.launchpad = Launchpad.login_anonymously(
@@ -843,8 +848,6 @@
843 options.distro = options.launchpad.distributions['ubuntu']848 options.distro = options.launchpad.distributions['ubuntu']
844 options.archive = options.distro.getArchive(name='primary')849 options.archive = options.distro.getArchive(name='primary')
845850
846 options.archive_dir = os.path.expanduser('~/mirror/ubuntu/')
847
848 options.component = "main,restricted"851 options.component = "main,restricted"
849 options.components = options.component.split(',')852 options.components = options.component.split(',')
850 options.all_components = ["main", "restricted", "universe", "multiverse"]853 options.all_components = ["main", "restricted", "universe", "multiverse"]

Subscribers

People subscribed via source and target branches