This is an automated email from the ASF dual-hosted git repository. krisztiankasa pushed a commit to branch branch-2.7 in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/branch-2.7 by this push: new f31174b AMBARI-25275 - Changes in Yarn Capacity Scheduler is requesting for restart of Resource Manager (#2972) f31174b is described below commit f31174b07b504b988c301c641331486d00bddfb8 Author: kasakrisz <33458261+kasakr...@users.noreply.github.com> AuthorDate: Mon May 13 14:04:59 2019 +0200 AMBARI-25275 - Changes in Yarn Capacity Scheduler is requesting for restart of Resource Manager (#2972) --- .../src/main/resources/ui/app/controllers/queues.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/contrib/views/capacity-scheduler/src/main/resources/ui/app/controllers/queues.js b/contrib/views/capacity-scheduler/src/main/resources/ui/app/controllers/queues.js index 3f0f26c..d16a4e6 100644 --- a/contrib/views/capacity-scheduler/src/main/resources/ui/app/controllers/queues.js +++ b/contrib/views/capacity-scheduler/src/main/resources/ui/app/controllers/queues.js @@ -267,6 +267,11 @@ App.QueuesController = Ember.ArrayController.extend({ * @type {Boolean} */ hasDeletedQueues: Em.computed.alias('store.hasDeletedQueues'), + /** + * !hasDeletedQueues + * @type {Boolean} + */ + doesNotHaveDeletedQueues: Em.computed.not('store.hasDeletedQueues'), @@ -331,7 +336,13 @@ App.QueuesController = Ember.ArrayController.extend({ * check there is some changes for save * @type {bool} */ - needSave: cmp.any('needRestart', 'needRefresh'), + needRestartOrRefresh: cmp.any('needRestart', 'needRefresh'), + /** + * check there is some changes for save and no deleted queues + * queue deletion requires Yarn Resource Manager restart + * @type {bool} + */ + needSave: cmp.and('needRestartOrRefresh', 'doesNotHaveDeletedQueues'), /** * check if can save configs