You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2016/08/02 01:07:51 UTC

[31/40] lucene-solr:apiv2: SOLR-8645: managed-schema is now syntax highlighted in cloud->Tree view. This closes #57

SOLR-8645: managed-schema is now syntax highlighted in cloud->Tree view. This closes #57


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

Branch: refs/heads/apiv2
Commit: 1fb4c5d46d6f787a43121d896e64825252ea3b62
Parents: b7aa0b5
Author: Jan H�ydahl <ja...@apache.org>
Authored: Fri Jul 29 00:03:24 2016 +0200
Committer: Jan H�ydahl <ja...@apache.org>
Committed: Fri Jul 29 00:03:24 2016 +0200

----------------------------------------------------------------------
 solr/CHANGES.txt                                | 2 ++
 solr/webapp/web/js/angular/controllers/cloud.js | 5 +++++
 2 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/1fb4c5d4/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 3011cec..22d4e99 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -175,6 +175,8 @@ Bug Fixes
 
 * SOLR-8596: Web UI doesn't correctly generate queries which include local parameters (Alexandre Rafalovitch, janhoy)
 
+* SOLR-8645: managed-schema is now syntax highlighted in cloud->Tree view (Alexandre Rafalovitch via janhoy)
+
 Optimizations
 ----------------------
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/1fb4c5d4/solr/webapp/web/js/angular/controllers/cloud.js
----------------------------------------------------------------------
diff --git a/solr/webapp/web/js/angular/controllers/cloud.js b/solr/webapp/web/js/angular/controllers/cloud.js
index c150c5a..2d0dae0 100644
--- a/solr/webapp/web/js/angular/controllers/cloud.js
+++ b/solr/webapp/web/js/angular/controllers/cloud.js
@@ -55,6 +55,11 @@ var treeSubController = function($scope, Zookeeper) {
             var path = data.znode.path.split( '.' );
             if(path.length >1) {
               $scope.lang = path.pop();
+            } else {
+              var lastPathElement = data.znode.path.split( '/' ).pop();
+              if (lastPathElement == "managed-schema") {
+                  $scope.lang = "xml";
+              }
             }
             $scope.showData = true;
         });