Repository: ambari
Updated Branches:
  refs/heads/trunk 17276363f -> 25e6a1bf9


AMBARI-17915 User principals not showing in configs tab in UI. (ababiichuk)


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

Branch: refs/heads/trunk
Commit: 25e6a1bf9839f1ba1e4e2d5049dced909550801b
Parents: 1727636
Author: ababiichuk <[email protected]>
Authored: Wed Jul 27 16:28:17 2016 +0300
Committer: ababiichuk <[email protected]>
Committed: Wed Jul 27 16:28:30 2016 +0300

----------------------------------------------------------------------
 ambari-web/app/mappers/configs/stack_config_properties_mapper.js | 3 ---
 ambari-web/app/models/configs/objects/service_config_property.js | 3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/25e6a1bf/ambari-web/app/mappers/configs/stack_config_properties_mapper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mappers/configs/stack_config_properties_mapper.js 
b/ambari-web/app/mappers/configs/stack_config_properties_mapper.js
index 9eda557..2c8959d 100644
--- a/ambari-web/app/mappers/configs/stack_config_properties_mapper.js
+++ b/ambari-web/app/mappers/configs/stack_config_properties_mapper.js
@@ -141,9 +141,6 @@ App.stackConfigPropertiesMapper = 
App.QuickDataMapper.create({
           }
 
           var staticConfigInfo = this.parseIt(config, 
this.get('configToPlain'));
-          if (Em.isNone(staticConfigInfo.value)) {
-            staticConfigInfo.isVisible = false;
-          }
           var v = Em.isNone(staticConfigInfo.recommendedValue) ? 
staticConfigInfo.recommendedValue : staticConfigInfo.value;
           staticConfigInfo.value = staticConfigInfo.recommendedValue = 
App.config.formatPropertyValue(staticConfigInfo, v);
           staticConfigInfo.isSecureConfig = 
App.config.getIsSecure(staticConfigInfo.name);

http://git-wip-us.apache.org/repos/asf/ambari/blob/25e6a1bf/ambari-web/app/models/configs/objects/service_config_property.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/models/configs/objects/service_config_property.js 
b/ambari-web/app/models/configs/objects/service_config_property.js
index becbd19b..d2e3ef1 100644
--- a/ambari-web/app/models/configs/objects/service_config_property.js
+++ b/ambari-web/app/models/configs/objects/service_config_property.js
@@ -290,6 +290,9 @@ App.ServiceConfigProperty = Em.Object.extend({
         this.set('value', this.get('recommendedValue'));
       }
     }
+    if (this.get('value') === null) {
+      this.set('isVisible', false);
+    }
     if (this.get("displayType") === "password") {
       this.set('retypedPassword', this.get('value'));
       this.set('recommendedValue', '');

Reply via email to