ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject git commit: AMBARI-6502. HDFS global config values get undone in 'Add services' wizard after clicking 'Back' on Review page (Buzhor Denys via alexantonenko)
Date Wed, 16 Jul 2014 13:25:50 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 4e23fa2d8 -> 81dae66ea


AMBARI-6502. HDFS global config values get undone in 'Add services' wizard after clicking
'Back' on Review page (Buzhor Denys via alexantonenko)


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

Branch: refs/heads/trunk
Commit: 81dae66ea59bade362ac45061399c5675e458099
Parents: 4e23fa2
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Wed Jul 16 16:17:47 2014 +0300
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Wed Jul 16 16:17:47 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/utils/config.js | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/81dae66e/ambari-web/app/utils/config.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/config.js b/ambari-web/app/utils/config.js
index f82bd97..0cd61db 100644
--- a/ambari-web/app/utils/config.js
+++ b/ambari-web/app/utils/config.js
@@ -634,6 +634,13 @@ App.config = Em.Object.create({
         if (!storedConfigs && !serviceConfigProperty.get('hasInitialValue')) {
           serviceConfigProperty.initialValue(localDB);
         }
+        if (storedConfigs && storedConfigs.filterProperty('name', _config.name).length
&& !!_config.filename) {
+          var storedConfig = storedConfigs.filterProperty('name', _config.name).findProperty('filename',
_config.filename);
+          if (storedConfig) {
+            serviceConfigProperty.set('defaultValue', storedConfig.defaultValue);
+            serviceConfigProperty.set('value', storedConfig.value);
+          }
+        }
         this.tweakDynamicDefaults(localDB, serviceConfigProperty, _config);
         serviceConfigProperty.validate();
         configsByService.pushObject(serviceConfigProperty);


Mime
View raw message