Revert "YARN-9729. [UI2] Fix error message for logs without ATSv2. Contributed by Zoltan Siegl."

This reverts commit 50cec5a704.
This commit is contained in:
Sunil G 2019-08-10 21:10:22 +05:30
parent 50cec5a704
commit e69db45e50
3 changed files with 34 additions and 53 deletions

View File

@ -263,12 +263,5 @@ export default Ember.Controller.extend({
isLogAggregationNotSucceeded: Ember.computed("model.app", function() {
const logAggregationStatus = this.get("model.app.logAggregationStatus");
return logAggregationStatus !== "SUCCEEDED";
}),
isTimelineUnHealthy: function() {
if (this.model && this.model.timelineHealth) {
return this.model.timelineHealth.get('isTimelineUnHealthy');
}
return true;
}.property('model.timelineHealth')
})
});

View File

@ -31,10 +31,7 @@ export default AbstractRoute.extend(AppAttemptMixin, {
attempts: this.fetchAttemptListFromRMorATS(app_id, this.store).catch(function() {
return [];
}),
app: this.fetchAppInfoFromRMorATS(app_id, this.store),
timelineHealth: this.store.queryRecord('timeline-health', {}).catch(function() {
return null;
})
app: this.fetchAppInfoFromRMorATS(app_id, this.store)
});
},

View File

@ -32,14 +32,6 @@
<img src="assets/images/spinner.gif" alt="Loading...">
</div>
{{/if}}
{{#if isTimelineUnHealthy}}
<div class="row panel-heading">
<div class="col-md-2"></div>
<div class="col-md-8 alert alert-warning glyphicon glyphicon-warning-sign text-center">
<span>Logs are unavailable because Application Timeline Service seems unhealthy.</span>
</div>
</div>
{{else}}
{{#if attemptList}}
<div class="row">
<div class="col-md-6">
@ -78,7 +70,6 @@
<h4 class="text-center">No data available!</h4>
</div>
{{/if}}
{{/if}}
</div>
</div>
</div>