YARN-7944. [UI2] Remove master node link from headers of application pages. Contributed by Yesha Vora.

This commit is contained in:
Sunil G 2018-03-08 23:52:38 +05:30
parent a906a22645
commit 113f401f41
5 changed files with 0 additions and 10 deletions

View File

@ -30,7 +30,6 @@ export default DS.Model.extend({
finishedTime: DS.attr('finishedTime'), finishedTime: DS.attr('finishedTime'),
progress: DS.attr('number'), progress: DS.attr('number'),
diagnostics: DS.attr('string'), diagnostics: DS.attr('string'),
amContainerLogs: DS.attr('string'),
amHostHttpAddress: DS.attr('string'), amHostHttpAddress: DS.attr('string'),
logAggregationStatus: DS.attr('string'), logAggregationStatus: DS.attr('string'),
unmanagedApplication: DS.attr('string'), unmanagedApplication: DS.attr('string'),

View File

@ -30,7 +30,6 @@ export default DS.Model.extend({
finishedTime: DS.attr("finishedTime"), finishedTime: DS.attr("finishedTime"),
progress: DS.attr("number"), progress: DS.attr("number"),
diagnostics: DS.attr("string"), diagnostics: DS.attr("string"),
amContainerLogs: DS.attr("string"),
amHostHttpAddress: DS.attr("string"), amHostHttpAddress: DS.attr("string"),
masterNodeId: DS.attr("string"), masterNodeId: DS.attr("string"),
logAggregationStatus: DS.attr("string"), logAggregationStatus: DS.attr("string"),
@ -97,10 +96,6 @@ export default DS.Model.extend({
); );
}.property("memorySeconds", "vcoreSeconds"), }.property("memorySeconds", "vcoreSeconds"),
masterNodeURL: function() {
return `#/yarn-node/${this.get("masterNodeId")}/${this.get("amHostHttpAddress")}/info/`;
}.property("masterNodeId", "amHostHttpAddress"),
progressStyle: function() { progressStyle: function() {
return "width: " + this.get("progress") + "%"; return "width: " + this.get("progress") + "%";
}.property("progress"), }.property("progress"),

View File

@ -45,7 +45,6 @@ export default DS.JSONAPISerializer.extend({
progress: 100, progress: 100,
applicationType: payload.info.YARN_APPLICATION_TYPE, applicationType: payload.info.YARN_APPLICATION_TYPE,
diagnostics: (diagnostics && diagnostics !== 'null')? diagnostics : '', diagnostics: (diagnostics && diagnostics !== 'null')? diagnostics : '',
amContainerLogs: '',
amHostHttpAddress: '', amHostHttpAddress: '',
logAggregationStatus: '', logAggregationStatus: '',
unmanagedApplication: payload.info.YARN_APPLICATION_UNMANAGED_APPLICATION || 'N/A', unmanagedApplication: payload.info.YARN_APPLICATION_UNMANAGED_APPLICATION || 'N/A',

View File

@ -49,7 +49,6 @@ export default DS.JSONAPISerializer.extend({
progress: payload.progress, progress: payload.progress,
applicationType: payload.applicationType, applicationType: payload.applicationType,
diagnostics: (payload.diagnostics && payload.diagnostics !== 'null')? payload.diagnostics : '', diagnostics: (payload.diagnostics && payload.diagnostics !== 'null')? payload.diagnostics : '',
amContainerLogs: payload.amContainerLogs,
amHostHttpAddress: payload.amHostHttpAddress, amHostHttpAddress: payload.amHostHttpAddress,
masterNodeId: payload.masterNodeId, masterNodeId: payload.masterNodeId,
logAggregationStatus: payload.logAggregationStatus, logAggregationStatus: payload.logAggregationStatus,

View File

@ -64,8 +64,6 @@
<div class="flex-right"> <div class="flex-right">
<div class="links"> <div class="links">
<a href="{{model.app.amContainerLogs}}" target="_blank">Master Container Log</a> &nbsp;|&nbsp;
<a href="{{model.app.masterNodeURL}}">Master Node</a> &nbsp;|&nbsp;
{{#if isRunningService}} {{#if isRunningService}}
<div class="btn-group"> <div class="btn-group">
<button type="button" class="btn btn-unstyled dropdown-toggle" title="Settings" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <button type="button" class="btn btn-unstyled dropdown-toggle" title="Settings" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">