зеркало из https://github.com/mozilla/treeherder.git
Bug 1220445 - hide automatic classification
We want to find a better ui for the integration between manual and automatic classification.
This commit is contained in:
Родитель
f059f88d85
Коммит
ceeb27c2d0
|
@ -21,6 +21,10 @@ treeherder.factory('ThBugJobMapModel', [
|
|||
item_list.push(new ThBugJobMapModel(elem));
|
||||
});
|
||||
return item_list;
|
||||
}).then(function(bugJobMapList){
|
||||
return _.filter(bugJobMapList, function(bugJobMap){
|
||||
return bugJobMap.type !== 'autoclassification';
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
@ -24,6 +24,10 @@ treeherder.factory('ThJobClassificationModel', [
|
|||
item_list.push(new ThJobClassificationModel(elem));
|
||||
});
|
||||
return item_list;
|
||||
}).then(function(classificationList){
|
||||
return _.filter(classificationList, function(jobClassification){
|
||||
return jobClassification.failure_classification_id !== 7;
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
@ -64,6 +64,13 @@ treeherder.factory('ThJobModel', [
|
|||
return $q.when(next_pages_jobs).then(function(maybe_job_list){
|
||||
return item_list.concat(maybe_job_list);
|
||||
});
|
||||
}).then(function(job_list){
|
||||
return _.map(job_list, function(job){
|
||||
if (job.failure_classification_id === 7) {
|
||||
job.failure_classification_id = 1;
|
||||
}
|
||||
return job;
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче