ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject ambari git commit: AMBARI-9813. 'Restart required' panel. Number of affected components differs from popup window count (alexantonenko)
Date Thu, 26 Feb 2015 18:29:42 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.0.0 1cb8512e3 -> fb0f4f5a9


AMBARI-9813. 'Restart required' panel. Number of affected components differs from popup window
count (alexantonenko)


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

Branch: refs/heads/branch-2.0.0
Commit: fb0f4f5a9e48e02a06e0787c0d2cce72e66fd6e2
Parents: 1cb8512
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Thu Feb 26 16:35:30 2015 +0200
Committer: Yusaku Sako <yusaku@hortonworks.com>
Committed: Thu Feb 26 10:29:33 2015 -0800

----------------------------------------------------------------------
 ambari-web/app/mappers/component_config_mapper.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/fb0f4f5a/ambari-web/app/mappers/component_config_mapper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mappers/component_config_mapper.js b/ambari-web/app/mappers/component_config_mapper.js
index f9f5926..c1f6429 100644
--- a/ambari-web/app/mappers/component_config_mapper.js
+++ b/ambari-web/app/mappers/component_config_mapper.js
@@ -52,7 +52,8 @@ App.componentConfigMapper = App.QuickDataMapper.create({
     });
     this.get('model').find().forEach(function (hostComponent) {
       var hostComponentJson = hostComponentJsonMap[hostComponent.get('id')];
-      if (!hostComponentJson && !hostComponent.get('isMaster')) {
+      if (!hostComponentJson &&
+        !App.StackServiceComponent.find().findProperty('componentName', hostComponent.get('componentName')).get('isMaster'))
{
         hostComponent.set('staleConfigs', false);
       }
       if (hostComponentJson!=null && hostComponent.get('staleConfigs') &&


Mime
View raw message