You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by tf...@apache.org on 2017/01/25 22:32:45 UTC

lucene-solr:branch_6_4: SOLR-9969: Plugins/Stats section of the UI doesn't display empty metric types

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6_4 14812fa1b -> dc9df10ad


SOLR-9969: Plugins/Stats section of the UI doesn't display empty metric types


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

Branch: refs/heads/branch_6_4
Commit: dc9df10ad54f098892d095b2e39298eb093e6cb3
Parents: 14812fa
Author: Tomas Fernandez Lobbe <tf...@apache.org>
Authored: Wed Jan 25 14:26:48 2017 -0800
Committer: Tomas Fernandez Lobbe <tf...@apache.org>
Committed: Wed Jan 25 14:32:12 2017 -0800

----------------------------------------------------------------------
 solr/CHANGES.txt                                  | 6 +++---
 solr/webapp/web/js/angular/controllers/plugins.js | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/dc9df10a/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 2b70592..48b3496 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -29,9 +29,9 @@ Apache UIMA 2.3.1
 Apache ZooKeeper 3.4.6
 Jetty 9.3.14.v20161028
 
-
-(No Changes)
-
+Bug Fixes
+----------------------
+* SOLR-9969: "Plugin/Stats" section of the UI doesn't display empty metric types (Tom�s Fern�ndez L�bbe)
 
 ==================  6.4.0 ==================
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/dc9df10a/solr/webapp/web/js/angular/controllers/plugins.js
----------------------------------------------------------------------
diff --git a/solr/webapp/web/js/angular/controllers/plugins.js b/solr/webapp/web/js/angular/controllers/plugins.js
index 9070b84..a537b37 100644
--- a/solr/webapp/web/js/angular/controllers/plugins.js
+++ b/solr/webapp/web/js/angular/controllers/plugins.js
@@ -88,6 +88,7 @@ var getPluginTypes = function(data, selected) {
         var key = mbeans[i];
         var lower = key.toLowerCase();
         var plugins = getPlugins(mbeans[i+1]);
+        if (plugins.length == 0) continue;
         keys.push({name: key,
                    selected: lower == selected,
                    changes: 0,