ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ababiic...@apache.org
Subject ambari git commit: AMBARI-16681 UI : the minimum and maximum bound values for ''% cluster capacity'' are superimposed at minimum display value.(ababiichuk)
Date Mon, 16 May 2016 13:39:05 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 715062b5d -> 5b1f2a6cc


AMBARI-16681 UI : the minimum and maximum bound values for ''% cluster capacity'' are superimposed
at minimum display value.(ababiichuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5b1f2a6c
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5b1f2a6c
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5b1f2a6c

Branch: refs/heads/trunk
Commit: 5b1f2a6ccb9c2fc7c5a44eb3f48b28e8ff6ba2dc
Parents: 715062b
Author: ababiichuk <ababiichuk@hortonworks.com>
Authored: Mon May 16 15:20:34 2016 +0300
Committer: ababiichuk <ababiichuk@hortonworks.com>
Committed: Mon May 16 16:38:34 2016 +0300

----------------------------------------------------------------------
 .../app/controllers/wizard/step7/assign_master_controller.js | 2 ++
 .../wizard/step7/assign_master_controller_test.js            | 8 ++++++--
 2 files changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5b1f2a6c/ambari-web/app/controllers/wizard/step7/assign_master_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/wizard/step7/assign_master_controller.js b/ambari-web/app/controllers/wizard/step7/assign_master_controller.js
index e4629e8..7a610da 100644
--- a/ambari-web/app/controllers/wizard/step7/assign_master_controller.js
+++ b/ambari-web/app/controllers/wizard/step7/assign_master_controller.js
@@ -131,6 +131,7 @@ App.AssignMasterOnStep7Controller = Em.Controller.extend(App.BlueprintMixin,
App
       body: Em.I18n.t('installer.step7.missing.service.body').format(displayServices, configDisplayName),
       primaryClass: 'btn-danger',
       onPrimary: function () {
+        configWidgetContext.toggleProperty('controller.forceUpdateBoundaries');
         var value = config.get('initialValue');
         config.set('value', value);
         configWidgetContext.setValue(value);
@@ -350,6 +351,7 @@ App.AssignMasterOnStep7Controller = Em.Controller.extend(App.BlueprintMixin,
App
   submit: function () {
     this.get('popup').hide();
     var context = this.get('configWidgetContext');
+    context.toggleProperty('controller.forceUpdateBoundaries');
     var configActionComponent = this.get('configActionComponent');
     var componentHostName = this.getSelectedHostName(configActionComponent.componentName);
     if (this.get('content.controllerName')) {

http://git-wip-us.apache.org/repos/asf/ambari/blob/5b1f2a6c/ambari-web/test/controllers/wizard/step7/assign_master_controller_test.js
----------------------------------------------------------------------
diff --git a/ambari-web/test/controllers/wizard/step7/assign_master_controller_test.js b/ambari-web/test/controllers/wizard/step7/assign_master_controller_test.js
index 63fceb6..df2f70b 100644
--- a/ambari-web/test/controllers/wizard/step7/assign_master_controller_test.js
+++ b/ambari-web/test/controllers/wizard/step7/assign_master_controller_test.js
@@ -147,18 +147,21 @@ describe('App.AssignMasterOnStep7Controller', function () {
         value: '',
         displayName: 'c1'
       }),
-      setValue: Em.K
+      setValue: Em.K,
+      toggleProperty: Em.K
     });
 
     beforeEach(function() {
       sinon.stub(stringUtils, 'getFormattedStringFromArray');
       sinon.stub(mock, 'setValue');
+      sinon.stub(mock, 'toggleProperty');
       sinon.spy(App.ModalPopup, 'show');
     });
 
     afterEach(function() {
       stringUtils.getFormattedStringFromArray.restore();
       mock.setValue.restore();
+      mock.toggleProperty.restore();
       App.ModalPopup.show.restore();
     });
 
@@ -354,7 +357,8 @@ describe('App.AssignMasterOnStep7Controller', function () {
                 configName: 'conf1'
               }
             },
-            serviceName: 'S1'
+            serviceName: 'S1',
+            toggleProperty: Em.K
           }),
           controller: Em.Object.create({
             stepConfigs: [


Mime
View raw message