ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akovale...@apache.org
Subject [1/2] ambari git commit: AMBARI-11720. Some configs have unexpected value/savedValue (akovalenko)
Date Fri, 05 Jun 2015 16:19:48 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 ee2b89dca -> 51bcdc603


AMBARI-11720. Some configs have unexpected value/savedValue (akovalenko)


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

Branch: refs/heads/branch-2.1
Commit: 4f5d3b5dea887041829140f54d93e6f1b4039214
Parents: ee2b89d
Author: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Authored: Fri Jun 5 19:05:16 2015 +0300
Committer: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Committed: Fri Jun 5 19:18:59 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/data/HDP2/site_properties.js              | 2 ++
 ambari-web/app/mixins/common/configs/enhanced_configs.js | 1 +
 ambari-web/app/utils/config.js                           | 1 +
 3 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/4f5d3b5d/ambari-web/app/data/HDP2/site_properties.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/data/HDP2/site_properties.js b/ambari-web/app/data/HDP2/site_properties.js
index d6ab273..36c6650 100644
--- a/ambari-web/app/data/HDP2/site_properties.js
+++ b/ambari-web/app/data/HDP2/site_properties.js
@@ -1052,6 +1052,8 @@ var hdp2properties = [
     "id": "site property",
     "name": "nimbus.seeds",
     "displayName": "nimbus.seeds",
+    "isReconfigurable": false,
+    "isOverridable": false,
     "displayType": "masterHosts",
     "serviceName": "STORM",
     "filename": "storm-site.xml",

http://git-wip-us.apache.org/repos/asf/ambari/blob/4f5d3b5d/ambari-web/app/mixins/common/configs/enhanced_configs.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mixins/common/configs/enhanced_configs.js b/ambari-web/app/mixins/common/configs/enhanced_configs.js
index faefdd2..4bab5e0 100644
--- a/ambari-web/app/mixins/common/configs/enhanced_configs.js
+++ b/ambari-web/app/mixins/common/configs/enhanced_configs.js
@@ -529,6 +529,7 @@ App.EnhancedConfigsMixin = Em.Mixin.create({
               }
             } else {
               cp.set('value', initialValue);
+              cp.set('savedValue', initialValue);
               if (dependentProperty) {
                 this.get('_dependentConfigValues').removeObject(dependentProperty);
               }

http://git-wip-us.apache.org/repos/asf/ambari/blob/4f5d3b5d/ambari-web/app/utils/config.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/config.js b/ambari-web/app/utils/config.js
index 4b0631b..a2d05bb 100644
--- a/ambari-web/app/utils/config.js
+++ b/ambari-web/app/utils/config.js
@@ -428,6 +428,7 @@ App.config = Em.Object.create({
       if (typeof(serviceConfigObj.get('value')) == 'string') {
         var value = serviceConfigObj.get('value').replace(/\[|]|'|&apos;/g, "").split(',');
         serviceConfigObj.set('value', value);
+        serviceConfigObj.set('savedValue', value);
       }
     }
   },


Mime
View raw message