SOLR-7666 Multiple minor fixes

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1709707 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Upayavira 2015-10-21 01:53:51 +00:00
parent c7911f41f5
commit b7664ef388
6 changed files with 13 additions and 13 deletions

View File

@ -273,7 +273,7 @@ limitations under the License.
padding-right: 21px; padding-right: 21px;
} }
#content #collections #add_advanced .open { #content #collections #add_advanced.open {
background-image: url( ../../img/ico/chevron-small.png ); background-image: url( ../../img/ico/chevron-small.png );
} }

View File

@ -177,7 +177,7 @@ limitations under the License.
</div> </div>
<div id="collection-menu" class="sub-menu" ng-show="currentCollection"> <div id="collection-menu" class="sub-menu" ng-show="currentCollection">
<ul> <ul>
<li class="overview" ng-class="{active:page=='collection-overview'}"><a href="#/{{currentCollection.name}}/collection-overview"><span>Overview</span></a></li> <li class="overview" ng-class="{active:page=='collection-overview'}"><a href="#/{{currentCore.name}}/collection-overview"><span>Overview</span></a></li>
<li class="analysis" ng-class="{active:page=='analysis'}"><a href="#/{{currentCollection.name}}/analysis"><span>Analysis</span></a></li> <li class="analysis" ng-class="{active:page=='analysis'}"><a href="#/{{currentCollection.name}}/analysis"><span>Analysis</span></a></li>
<li class="dataimport" ng-class="{active:page=='dataimport'}"><a href="#/{{currentCollection.name}}/dataimport"><span>Dataimport</span></a></li> <li class="dataimport" ng-class="{active:page=='dataimport'}"><a href="#/{{currentCollection.name}}/dataimport"><span>Dataimport</span></a></li>
<li class="documents" ng-class="{active:page=='documents'}"><a href="#/{{currentCollection.name}}/documents"><span>Documents</span></a></li> <li class="documents" ng-class="{active:page=='documents'}"><a href="#/{{currentCollection.name}}/documents"><span>Documents</span></a></li>

View File

@ -77,7 +77,7 @@ solrAdminApp.controller('CollectionsController',
$scope.hideAll(); $scope.hideAll();
$scope.showAdd = true; $scope.showAdd = true;
$scope.newCollection = { $scope.newCollection = {
name: "new_collection", name: "",
routerName: "compositeId", routerName: "compositeId",
numShards: 1, numShards: 1,
configName: "", configName: "",
@ -207,7 +207,6 @@ solrAdminApp.controller('CollectionsController',
}; };
$scope.deleteReplica = function(replica) { $scope.deleteReplica = function(replica) {
alert("DELETE");
Collections.deleteReplica({collection: replica.collection, shard:replica.shard, replica:replica.name}, function(data) { Collections.deleteReplica({collection: replica.collection, shard:replica.shard, replica:replica.name}, function(data) {
replica.deleted = true; replica.deleted = true;
$timeout(function() { $timeout(function() {

View File

@ -103,13 +103,14 @@ function($scope, $rootScope, $routeParams, Luke, CoreSystem, Update, Replication
$scope.refreshPing = function() { $scope.refreshPing = function() {
Ping.status({core: $routeParams.core}, function(data) { Ping.status({core: $routeParams.core}, function(data) {
if (data.error) { $scope.healthcheckStatus = data.status == "enabled";
}).$promise.catch(function(error) {
if (error.status == 404) {
$scope.healthcheckStatus = false; $scope.healthcheckStatus = false;
if (data.error.code == 503) {
$scope.healthcheckMessage = 'Ping request handler is not configured with a healthcheck file.';
}
} else { } else {
$scope.healthcheckStatus = data.status == "enabled"; $scope.healthcheckStatus = false;
delete $rootScope.exception;
$scope.healthcheckMessage = 'Ping request handler is not configured with a healthcheck file.';
} }
}); });
}; };

View File

@ -136,7 +136,7 @@ solrAdminServices.factory('System',
.factory('Luke', .factory('Luke',
['$resource', function($resource) { ['$resource', function($resource) {
return $resource('/solr/:core/admin/luke', {core: '@core', wt:'json', _:Date.now()}, { return $resource('/solr/:core/admin/luke', {core: '@core', wt:'json', _:Date.now()}, {
"index": {params: {numTerms: 0, show: 'index'}}, "index": {params: {numTerms: 0}},
"schema": {params: {show:'schema'}}, "schema": {params: {show:'schema'}},
"field": {}, "field": {},
"fields": {params: {show:'schema'}, interceptor: { "fields": {params: {show:'schema'}, interceptor: {
@ -178,8 +178,8 @@ solrAdminServices.factory('System',
['$resource', function($resource) { ['$resource', function($resource) {
return $resource('/solr/:core/admin/ping', {wt:'json', core: '@core', ts:Date.now(), _:Date.now()}, { return $resource('/solr/:core/admin/ping', {wt:'json', core: '@core', ts:Date.now(), _:Date.now()}, {
"ping": {}, "ping": {},
"status": {params:{action:"status"}, headers: {doNotIntercept: "true"} "status": {params:{action:"status"}}
}}); });
}]) }])
.factory('Mbeans', .factory('Mbeans',
['$resource', function($resource) { ['$resource', function($resource) {

View File

@ -35,7 +35,7 @@ limitations under the License.
<form> <form>
<p class="clearfix"><label for="add_name">name:</label> <p class="clearfix"><label for="add_name">name:</label>
<input type="text" name="name" id="add_name" ng-model="newCollection.name"></p> <input type="text" name="name" id="add_name" ng-model="newCollection.name" placeholder="new collection"></p>
<p class="clearfix"><label for="add_config">config set:</label>&nbsp; <p class="clearfix"><label for="add_config">config set:</label>&nbsp;
<select chosen ng-options="config.name as config.name for config in configs" name="config_name" id="add_config" ng-model="newCollection.configName"> <select chosen ng-options="config.name as config.name for config in configs" name="config_name" id="add_config" ng-model="newCollection.configName">