Repository: ambari
Updated Branches:
  refs/heads/trunk 2293a285a -> 6cf8fb17d


AMBARI-6504. Incorrect errors count for YARN on step 7 of Install Wizard (HDP 
2.0). (Max Shepel via akovalenko)


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

Branch: refs/heads/trunk
Commit: 6cf8fb17d618081c8c736bfcad02af003c04a61a
Parents: 2293a28
Author: Aleksandr Kovalenko <akovale...@hortonworks.com>
Authored: Wed Jul 16 18:11:16 2014 +0300
Committer: Aleksandr Kovalenko <akovale...@hortonworks.com>
Committed: Wed Jul 16 18:11:16 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/models/service_config.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/6cf8fb17/ambari-web/app/models/service_config.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/models/service_config.js 
b/ambari-web/app/models/service_config.js
index dd62835..ee2367e 100644
--- a/ambari-web/app/models/service_config.js
+++ b/ambari-web/app/models/service_config.js
@@ -36,7 +36,10 @@ App.ServiceConfig = Ember.Object.extend({
         }
       })
     });
-    var masterErrors = this.get('configs').filterProperty('isValid', 
false).filterProperty('isVisible', true).get('length');
+    var categoryNames = this.get('configCategories').mapProperty('name');
+    var masterErrors = this.get('configs').filter(function (item) {
+      return categoryNames.contains(item.get('category'));
+    }).filterProperty('isValid', false).filterProperty('isVisible', 
true).get('length');
     var slaveErrors = 0;
     this.get('configCategories').forEach(function (_category) {
       slaveErrors += _category.get('slaveErrorCount');

Reply via email to