ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonathanhur...@apache.org
Subject [32/34] ambari git commit: AMBARI-20862 inconsistent suggestion for llap "Maximum Total Concurrent Queries". (ababiichuk)
Date Wed, 26 Apr 2017 18:01:38 GMT
AMBARI-20862 inconsistent suggestion for llap "Maximum Total Concurrent Queries". (ababiichuk)


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

Branch: refs/heads/branch-feature-AMBARI-12556
Commit: bd1b2c9ff89468ef4b55f86cd5c2fafbf1dd2332
Parents: 54ac5a7
Author: ababiichuk <ababiichuk@hortonworks.com>
Authored: Wed Apr 26 18:44:50 2017 +0300
Committer: ababiichuk <ababiichuk@hortonworks.com>
Committed: Wed Apr 26 19:22:40 2017 +0300

----------------------------------------------------------------------
 .../common/configs/widgets/slider_config_widget_view.js   |  6 +++++-
 .../configs/widgets/slider_config_widget_view_test.js     | 10 +++++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/bd1b2c9f/ambari-web/app/views/common/configs/widgets/slider_config_widget_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/configs/widgets/slider_config_widget_view.js b/ambari-web/app/views/common/configs/widgets/slider_config_widget_view.js
index c7e810b..948af5d 100644
--- a/ambari-web/app/views/common/configs/widgets/slider_config_widget_view.js
+++ b/ambari-web/app/views/common/configs/widgets/slider_config_widget_view.js
@@ -251,12 +251,16 @@ App.SliderConfigWidgetView = App.ConfigWidgetView.extend({
     }
   },
 
+  mirrorValueObs: function () {
+    Em.run.once(this, 'mirrorValueObsOnce');
+  },
+
   /**
    * Check if <code>mirrorValue</code> was updated by user
    * Validate it. If value is correct, set it to slider and config.value
    * @method mirrorValueObs
    */
-  mirrorValueObs: function () {
+  mirrorValueObsOnce: function () {
     var mirrorValue = this.get('mirrorValue'),
       slider = this.get('slider'),
       min = this.get('minMirrorValue'),

http://git-wip-us.apache.org/repos/asf/ambari/blob/bd1b2c9f/ambari-web/test/views/common/configs/widgets/slider_config_widget_view_test.js
----------------------------------------------------------------------
diff --git a/ambari-web/test/views/common/configs/widgets/slider_config_widget_view_test.js
b/ambari-web/test/views/common/configs/widgets/slider_config_widget_view_test.js
index 5cc055c..9817479 100644
--- a/ambari-web/test/views/common/configs/widgets/slider_config_widget_view_test.js
+++ b/ambari-web/test/views/common/configs/widgets/slider_config_widget_view_test.js
@@ -137,7 +137,15 @@ describe('App.SliderConfigWidgetView', function () {
     });
   });
 
-  describe('#mirrorValueObs', function () {
+  describe('#mirrorValueObsOnce', function () {
+
+    beforeEach(function () {
+      sinon.stub(Em.run, 'once', Em.tryInvoke);
+    });
+
+    afterEach(function () {
+      Em.run.once.restore();
+    });
 
     describe('check int', function () {
 


Mime
View raw message