mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 15:27:47 -02:30
Job detail page
Improved unreachable host count in tasks status bar. Once a host is unreachable it shows as missing in subsequent tasks, which is the expected result as it is skipped but not really marked as skipped.
This commit is contained in:
@@ -200,7 +200,6 @@ function JobDetailController ($rootScope, $scope, $compile, $routeParams, $log,
|
|||||||
status_text = "Failed";
|
status_text = "Failed";
|
||||||
break;
|
break;
|
||||||
case "unreachable":
|
case "unreachable":
|
||||||
status = "failed";
|
|
||||||
status_text = "Unreachable";
|
status_text = "Unreachable";
|
||||||
break;
|
break;
|
||||||
case "skipped":
|
case "skipped":
|
||||||
@@ -303,6 +302,10 @@ function JobDetailController ($rootScope, $scope, $compile, $routeParams, $log,
|
|||||||
taskActiveClass: '',
|
taskActiveClass: '',
|
||||||
hostResults: {}
|
hostResults: {}
|
||||||
};
|
};
|
||||||
|
if (play.firstTask !== event.id) {
|
||||||
|
// this is not the first task
|
||||||
|
play.tasks[event.id].hostCount = play.tasks[play.firstTask].hostCount;
|
||||||
|
}
|
||||||
SetTaskStyles({
|
SetTaskStyles({
|
||||||
task: play.tasks[event.id]
|
task: play.tasks[event.id]
|
||||||
});
|
});
|
||||||
@@ -731,7 +734,6 @@ function JobDetailController ($rootScope, $scope, $compile, $routeParams, $log,
|
|||||||
status_text = "Failed";
|
status_text = "Failed";
|
||||||
break;
|
break;
|
||||||
case "unreachable":
|
case "unreachable":
|
||||||
status = "failed";
|
|
||||||
status_text = "Unreachable";
|
status_text = "Unreachable";
|
||||||
break;
|
break;
|
||||||
case "skipped":
|
case "skipped":
|
||||||
@@ -803,7 +805,6 @@ function JobDetailController ($rootScope, $scope, $compile, $routeParams, $log,
|
|||||||
status_text = "Failed";
|
status_text = "Failed";
|
||||||
break;
|
break;
|
||||||
case "unreachable":
|
case "unreachable":
|
||||||
status = "failed";
|
|
||||||
status_text = "Unreachable";
|
status_text = "Unreachable";
|
||||||
break;
|
break;
|
||||||
case "skipped":
|
case "skipped":
|
||||||
|
|||||||
@@ -230,10 +230,12 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge
|
|||||||
failedCount: 0,
|
failedCount: 0,
|
||||||
changedCount: 0,
|
changedCount: 0,
|
||||||
skippedCount: 0,
|
skippedCount: 0,
|
||||||
|
unreachableCount: 0,
|
||||||
successfulStyle: { display: 'none'},
|
successfulStyle: { display: 'none'},
|
||||||
failedStyle: { display: 'none' },
|
failedStyle: { display: 'none' },
|
||||||
changedStyle: { display: 'none' },
|
changedStyle: { display: 'none' },
|
||||||
skippedStyle: { display: 'none' },
|
skippedStyle: { display: 'none' },
|
||||||
|
unreachableStyle: { display: 'none' },
|
||||||
hostResults: {}
|
hostResults: {}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -466,7 +468,6 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge
|
|||||||
break;
|
break;
|
||||||
case "unreachable":
|
case "unreachable":
|
||||||
status_text = "Unreachable";
|
status_text = "Unreachable";
|
||||||
status = "failed";
|
|
||||||
break;
|
break;
|
||||||
case "skipped":
|
case "skipped":
|
||||||
status_text = "Skipped";
|
status_text = "Skipped";
|
||||||
@@ -772,7 +773,6 @@ function($rootScope, $log, UpdatePlayStatus, UpdateHostStatus, AddHostResult, Ge
|
|||||||
status_text = "Failed";
|
status_text = "Failed";
|
||||||
break;
|
break;
|
||||||
case "unreachable":
|
case "unreachable":
|
||||||
status = "failed";
|
|
||||||
status_text = "Unreachable";
|
status_text = "Unreachable";
|
||||||
break;
|
break;
|
||||||
case "skipped":
|
case "skipped":
|
||||||
|
|||||||
Reference in New Issue
Block a user