YARN-7364. Queue dash board in new YARN UI has incorrect values. (Sunil G via wangda)

Change-Id: Ia5336f407147d2985a61b5f9f1e69b5b35f398a4
(cherry picked from commit 752f000e0f521ca7be173d6ca338da4585284fd0)
This commit is contained in:
Wangda Tan 2017-11-02 09:50:00 -07:00
parent d00b6f7c1f
commit 04c604cf1d
2 changed files with 5 additions and 2 deletions

View File

@ -28,7 +28,10 @@ export default AbstractRoute.extend({
{
state: "RUNNING"
}),
queues: this.store.query('yarn-queue.yarn-queue', {}),
queues: this.store.query("yarn-queue.yarn-queue", {}).then((model) => {
let type = model.get('firstObject').get('type');
return this.store.query("yarn-queue." + type + "-queue", {});
}),
});
},

View File

@ -22,6 +22,6 @@ export default {
},
getQueueLink: function(queueName) {
return '#/yarn-queue/' + queueName;
return '#/yarn-queue/' + queueName + '/info';
}
};