You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by up...@apache.org on 2016/04/15 00:22:43 UTC

lucene-solr:master: SOLR-8991 Fix ping when ms=0

Repository: lucene-solr
Updated Branches:
  refs/heads/master 43b8456cd -> bdaddafcc


SOLR-8991 Fix ping when ms=0


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

Branch: refs/heads/master
Commit: bdaddafcce1e185f413a9c5b15ab3631455c98a7
Parents: 43b8456
Author: Upayavira <uv...@odoko.co.uk>
Authored: Thu Apr 14 23:22:37 2016 +0100
Committer: Upayavira <uv...@odoko.co.uk>
Committed: Thu Apr 14 23:22:37 2016 +0100

----------------------------------------------------------------------
 solr/webapp/web/index.html        | 2 +-
 solr/webapp/web/js/angular/app.js | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/bdaddafc/solr/webapp/web/index.html
----------------------------------------------------------------------
diff --git a/solr/webapp/web/index.html b/solr/webapp/web/index.html
index a8567a5..eff88eb 100644
--- a/solr/webapp/web/index.html
+++ b/solr/webapp/web/index.html
@@ -206,7 +206,7 @@ limitations under the License.
               <li ng-hide="isCloudEnabled" class="dataimport" ng-class="{active:page=='dataimport'}"><a href="#/{{currentCore.name}}/dataimport"><span>Dataimport</span></a></li>
               <li ng-hide="isCloudEnabled" class="documents" ng-class="{active:page=='documents'}"><a href="#/{{currentCore.name}}/documents"><span>Documents</span></a></li>
               <li ng-hide="isCloudEnabled" class="files" ng-class="{active:page=='files'}"><a href="#/{{currentCore.name}}/files"><span>Files</span></a></li>
-              <li class="ping" ng-class="{active:page=='ping'}"><a ng-click="ping()"><span>Ping</span><small class="qtime" ng-show="pingMS"> (<span>{{pingMS}}ms</span>)</small></a></li>
+              <li class="ping" ng-class="{active:page=='ping'}"><a ng-click="ping()"><span>Ping</span><small class="qtime" ng-show="showPing"> (<span>{{pingMS}}ms</span>)</small></a></li>
               <li class="plugins" ng-class="{active:page=='plugins'}"><a href="#/{{currentCore.name}}/plugins"><span>Plugins / Stats</span></a></li>
               <li ng-hide="isCloudEnabled" class="query" ng-class="{active:page=='query'}"><a href="#/{{currentCore.name}}/query"><span>Query</span></a></li>
               <li ng-hide="isCloudEnabled" class="replication" ng-class="{active:page=='replication'}"><a href="#/{{currentCore.name}}/replication"><span>Replication</span></a></li>

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/bdaddafc/solr/webapp/web/js/angular/app.js
----------------------------------------------------------------------
diff --git a/solr/webapp/web/js/angular/app.js b/solr/webapp/web/js/angular/app.js
index afd3271..4238fd4 100644
--- a/solr/webapp/web/js/angular/app.js
+++ b/solr/webapp/web/js/angular/app.js
@@ -434,6 +434,7 @@ solrAdminApp.controller('MainController', function($scope, $route, $rootScope, $
 
   $scope.ping = function() {
     Ping.ping({core: $scope.currentCore.name}, function(data) {
+      $scope.showPing = true;
       $scope.pingMS = data.responseHeader.QTime;
     });
     // @todo .attr( 'title', '/admin/ping is not configured (' + xhr.status + ': ' + error_thrown + ')' );