Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Commit

Permalink
Bugzilla connector: update bug_sort
Browse files Browse the repository at this point in the history
Update the `bug_sort()` method of the bugzilla connector, to order
bugs by a set of statuses matching the existing supported list.
(As a comment there already notes, any bugs with a status not
present in the hardcoded list will simply be sorted to the end.)
  • Loading branch information
ferdnyc authored and cverna committed May 26, 2019
1 parent 7d0ec4e commit f8c9f38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fedoracommunity/connectors/bugzillaconnector.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ def version_to_int(val):
elif key == 'status':
# We want items to appear by status in a certain order, not
# alphabetically. Items I forgot to hardcode just go last.
status_order = ['NEW', 'ASSIGNED', 'MODIFIED', 'ON_QA', 'POST']
status_order = ['NEW', 'VERIFIED', 'ASSIGNED', 'MODIFIED',
'ON_DEV', 'ON_QA', 'RELEASE_PENDING', 'POST']

def status_to_index(val):
try:
Expand Down

0 comments on commit f8c9f38

Please sign in to comment.