Skip to content

Commit d55bc64

Browse files
author
Mike Taylor
committed
Issue #652: Account for 'status-' labels in a few missing places.
1 parent 9e1e7a1 commit d55bc64

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

webcompat/issues.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def filter_new(issues):
6363
def is_new(issue):
6464
'''Filter function.'''
6565
match = True
66-
category_list = ['contactready', 'needscontact',
67-
'needsdiagnosis', 'sitewait']
66+
category_list = ['status-contactready', 'status-needscontact',
67+
'status-needsdiagnosis', 'status-sitewait']
6868
labels = [label.get('name') for label in issue.get('labels')]
6969
# if the intersection of labels and category_list is not empty
7070
# then it's not part of untriaged

webcompat/static/js/lib/models/issue.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
this.set('stateClass', 'close');
3333
return 'Closed';
3434
}
35-
if (labelsNames.indexOf('sitewait') > -1) {
35+
if (labelsNames.indexOf('status-sitewait') > -1) {
3636
this.set('stateClass', 'sitewait');
3737
return 'Site Contacted';
3838
}
39-
if (labelsNames.indexOf('contactready') > -1) {
39+
if (labelsNames.indexOf('status-contactready') > -1) {
4040
this.set('stateClass', 'ready');
4141
return 'Ready for Outreach';
4242
}
43-
if (labelsNames.indexOf('needsdiagnosis') > -1) {
43+
if (labelsNames.indexOf('status-needsdiagnosis') > -1) {
4444
this.set('stateClass', 'need');
4545
return 'Needs Diagnosis';
4646
}

0 commit comments

Comments
 (0)