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:30:10 UTC

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

Repository: lucene-solr
Updated Branches:
  refs/heads/master 1b80691f2 -> ae269f131


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/ae269f13
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/ae269f13
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/ae269f13

Branch: refs/heads/master
Commit: ae269f13162119c8105020a6481b800377297764
Parents: 1b80691
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:26:48 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/ae269f13/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 6db5229..89cc796 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -146,9 +146,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/ae269f13/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,