Bug 1304253 - Pass the repository name to the API when retriggering

Since after bug 1280039, retriggers error with:
"Unable to send retrigger: Must also filter on repository if filtering
on job id".
This commit is contained in:
Ed Morley 2016-09-21 12:42:40 +01:00
Родитель 69b81c772f
Коммит 62d2c72aba
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -330,6 +330,7 @@ treeherder.controller('PluginCtrl', [
ThJobModel.retrigger($scope.repoName, job_id_list).then(function() {
// XXX: Remove this after 1134929 is resolved.
return ThJobDetailModel.getJobDetails({"title": "buildbot_request_id",
"repository": $scope.repoName,
"job_id__in": job_id_list.join(',')})
.then(function(data) {
var requestIdList = _.pluck(data, 'value');