Commit 7a44074e authored by Romain Bouvier's avatar Romain Bouvier
Browse files

Do not set label or milestones when migrating

- Not revelant in xfce case
parent 66d30e4e
......@@ -222,24 +222,26 @@ def processbug(bgo, bzurl, instance, resolution, target, user_cache,
template.render_issue_description(bzurl, bzbug, desctext, user_cache)
labels = ['bugzilla']
if bzbug.status == 'NEEDINFO':
labels += [NEEDINFO_LABEL]
if bzbug.component.lower() not in ('general', '.general', target.product):
l = COMPONENT_MAP.get(bzbug.component, None)
if l is not None:
labels.append(l)
else:
labels.append('5. {}'.format(bzbug.component.title()))
for kw in bzbug.keywords:
if kw in KEYWORD_MAP:
labels += [KEYWORD_MAP[kw]]
# Only set "bugzilla' label when migrating. Labels present in bz are not revelant
# if bzbug.status == 'NEEDINFO':
# labels += [NEEDINFO_LABEL]
#
# if bzbug.component.lower() not in ('general', '.general', target.product):
# l = COMPONENT_MAP.get(bzbug.component, None)
# if l is not None:
# labels.append(l)
# else:
# labels.append('5. {}'.format(bzbug.component.title()))
#
# for kw in bzbug.keywords:
# if kw in KEYWORD_MAP:
# labels += [KEYWORD_MAP[kw]]
# No milestone on migration
milestone = None
bz_milestone = bzbug.target_milestone
if bz_milestone and bz_milestone != '---':
milestone = milestone_cache[bz_milestone]
# bz_milestone = bzbug.target_milestone
# if bz_milestone and bz_milestone != '---':
# milestone = milestone_cache[bz_milestone]
if user_cache[bzbug.creator]:
sudo = user_cache[bzbug.creator].id
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment