ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atk...@apache.org
Subject ambari git commit: AMBARI-17553 Configs: Error counter from Settings tab reflects to config category from Advanced tab. (atkach)
Date Tue, 05 Jul 2016 08:52:59 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 367941b5b -> e7b99822c


AMBARI-17553 Configs: Error counter from Settings tab reflects to config category from Advanced
tab. (atkach)


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

Branch: refs/heads/branch-2.4
Commit: e7b99822c9d576d1fa3833d0391f62d8fcaa28fd
Parents: 367941b
Author: Andrii Tkach <atkach@apache.org>
Authored: Mon Jul 4 18:29:25 2016 +0300
Committer: Andrii Tkach <atkach@apache.org>
Committed: Tue Jul 5 11:51:11 2016 +0300

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/e7b99822/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 a0cdca6..d07412a 100644
--- a/ambari-web/app/models/configs/objects/service_config.js
+++ b/ambari-web/app/models/configs/objects/service_config.js
@@ -59,7 +59,8 @@ App.ServiceConfig = Ember.Object.extend({
   observeErrors: function() {
     this.get('configCategories').setEach('errorCount', 0);
     this.get('configsWithErrors').forEach(function(c) {
-      if (this.get('configCategoriesMap')[c.get('category')]) {
+      //configurations with widget shouldn't affect advanced category error counter
+      if (this.get('configCategoriesMap')[c.get('category')] && !c.get('widget'))
{
         this.get('configCategoriesMap')[c.get('category')].incrementProperty('errorCount');
       }
     }, this);


Mime
View raw message