Repository: ambari Updated Branches: refs/heads/trunk 9085d9ee6 -> 4ade1cd85
AMBARI-11172. After changing YARN container minimum size Hive configs always marked as dirty (onechiporenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4ade1cd8 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4ade1cd8 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4ade1cd8 Branch: refs/heads/trunk Commit: 4ade1cd8588b385329d1570579a2a49ae2597210 Parents: 9085d9e Author: Oleg Nechiporenko <onechipore...@apache.org> Authored: Fri May 15 18:50:41 2015 +0300 Committer: Oleg Nechiporenko <onechipore...@apache.org> Committed: Fri May 15 18:50:41 2015 +0300 ---------------------------------------------------------------------- .../views/common/configs/widgets/slider_config_widget_view.js | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/4ade1cd8/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 0047893..e618020 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 @@ -239,6 +239,10 @@ App.SliderConfigWidgetView = App.ConfigWidgetView.extend({ slider.setValue(parsed); } } + // avoid precision during restore value + if (parsed == parseFunction(this.widgetValueByConfigAttributes(this.get('config.defaultValue')))) { + this.set('config.value', this.get('config.defaultValue')); + } } else { this.set('isMirrorValueValid', false); this.set('config.errorMessage', 'Invalid value');