ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject ambari git commit: AMBARI-17409. Ranger has error count while adding Ranger KMS (alexantonenko)
Date Thu, 23 Jun 2016 21:40:07 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 79962b25b -> ac239c694


AMBARI-17409. Ranger has error count while adding Ranger KMS (alexantonenko)


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

Branch: refs/heads/branch-2.4
Commit: ac239c694c2e6b8907ac47624356026eb62d4c3d
Parents: 79962b2
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Fri Jun 24 00:08:31 2016 +0300
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Fri Jun 24 00:40:03 2016 +0300

----------------------------------------------------------------------
 ambari-web/app/models/configs/objects/service_config.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/ac239c69/ambari-web/app/models/configs/objects/service_config.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/models/configs/objects/service_config.js b/ambari-web/app/models/configs/objects/service_config.js
index fcbd34f..87a29c9 100644
--- a/ambari-web/app/models/configs/objects/service_config.js
+++ b/ambari-web/app/models/configs/objects/service_config.js
@@ -54,7 +54,7 @@ App.ServiceConfig = Ember.Object.extend({
     return this.get('activeProperties').filter(function(c) {
       return !c.get('isValid') || !c.get('isValidOverride');
     });
-  }.property('activeProperties.@each.isValid', 'activeProperties.@each.isValidOverride'),
+  }.property('activeProperties.@each.isValid', 'activeProperties.@each.isValidOverride',
'activeProperties.length'),
 
   observeErrors: function() {
     this.get('configCategories').setEach('errorCount', 0);
@@ -73,6 +73,10 @@ App.ServiceConfig = Ember.Object.extend({
 
   observeForeignKeys: function() {
     //TODO refactor or move this logic to other place
+    Em.run.once(this, 'updateVisibilityByForeignKeys');
+  }.observes('radioConfigs.@each.value'),
+
+  updateVisibilityByForeignKeys: function() {
     var configs = this.get('configs');
     configs.forEach(function (item) {
       if (item.get('isVisible')) {
@@ -90,7 +94,7 @@ App.ServiceConfig = Ember.Object.extend({
         }
       }
     });
-  }.observes('radioConfigs.@each.value'),
+  },
 
   /**
    * Collection of properties that were changed:


Mime
View raw message