mirror of
https://github.com/ansible/awx.git
synced 2026-02-23 22:16:00 -03:30
Merge pull request #5440 from jlmitch5/errorMessageForLegacyJobs
show error message for <= 3.0.x jobs
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
<div class="JobResultsStdOut-numberColumnPreload"></div>
|
<div class="JobResultsStdOut-numberColumnPreload"></div>
|
||||||
<div id='lineAnchor' class="JobResultsStdOut-lineAnchor"></div>
|
<div id='lineAnchor' class="JobResultsStdOut-lineAnchor"></div>
|
||||||
<div class="JobResultsStdOut-aLineOfStdOut"
|
<div class="JobResultsStdOut-aLineOfStdOut"
|
||||||
ng-show="tooManyEvents || tooManyPastEvents">
|
ng-show="tooManyEvents || tooManyPastEvents || showLegacyJobErrorMessage">
|
||||||
<div class="JobResultsStdOut-lineNumberColumn">
|
<div class="JobResultsStdOut-lineNumberColumn">
|
||||||
<span class="JobResultsStdOut-lineExpander"> </span>
|
<span class="JobResultsStdOut-lineExpander"> </span>
|
||||||
</div>
|
</div>
|
||||||
@@ -43,6 +43,8 @@
|
|||||||
ng-show="tooManyEvents">The standard output is too large to display. Please specify additional filters to narrow the standard out.</div>
|
ng-show="tooManyEvents">The standard output is too large to display. Please specify additional filters to narrow the standard out.</div>
|
||||||
<div class="JobResultsStdOut-stdoutColumn JobResultsStdOut-stdoutColumn--tooMany"
|
<div class="JobResultsStdOut-stdoutColumn JobResultsStdOut-stdoutColumn--tooMany"
|
||||||
ng-show="tooManyPastEvents">Too much previous output to display. Showing running standard output.</div>
|
ng-show="tooManyPastEvents">Too much previous output to display. Showing running standard output.</div>
|
||||||
|
<div class="JobResultsStdOut-stdoutColumn JobResultsStdOut-stdoutColumn--tooMany"
|
||||||
|
ng-show="showLegacyJobErrorMessage">Job details are not available for this job. Please download to view standard out.</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- next is 1 is a hack to get the first line to be put in the pane in the
|
<!-- next is 1 is a hack to get the first line to be put in the pane in the
|
||||||
right place -->
|
right place -->
|
||||||
|
|||||||
@@ -437,6 +437,18 @@ function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTy
|
|||||||
$scope.playCount = 0;
|
$scope.playCount = 0;
|
||||||
$scope.taskCount = 0;
|
$scope.taskCount = 0;
|
||||||
|
|
||||||
|
|
||||||
|
// used to show a message to just download for old jobs
|
||||||
|
// remove in 3.2.0
|
||||||
|
$scope.isOld = 0;
|
||||||
|
$scope.showLegacyJobErrorMessage = false;
|
||||||
|
|
||||||
|
toDestroy.push($scope.$watch('isOld', function (val) {
|
||||||
|
if (val >= 2) {
|
||||||
|
$scope.showLegacyJobErrorMessage = true;
|
||||||
|
}
|
||||||
|
}));
|
||||||
|
|
||||||
// get header and recap lines
|
// get header and recap lines
|
||||||
var skeletonPlayCount = 0;
|
var skeletonPlayCount = 0;
|
||||||
var skeletonTaskCount = 0;
|
var skeletonTaskCount = 0;
|
||||||
@@ -444,6 +456,9 @@ function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTy
|
|||||||
jobResultsService.getEvents(url)
|
jobResultsService.getEvents(url)
|
||||||
.then(events => {
|
.then(events => {
|
||||||
events.results.forEach(event => {
|
events.results.forEach(event => {
|
||||||
|
if (event.start_line === 0 && event.end_line === 0) {
|
||||||
|
$scope.isOld++;
|
||||||
|
}
|
||||||
// get the name in the same format as the data
|
// get the name in the same format as the data
|
||||||
// coming over the websocket
|
// coming over the websocket
|
||||||
event.event_name = event.event;
|
event.event_name = event.event;
|
||||||
|
|||||||
Reference in New Issue
Block a user