[open-ils-commits] [GIT] Evergreen ILS branch master updated. 81ff48ea26278df389d6855ac5e128e071506045

Evergreen Git git at git.evergreen-ils.org
Wed Feb 28 22:55:45 EST 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  81ff48ea26278df389d6855ac5e128e071506045 (commit)
      from  2b3c5f1e9c0801e896ea0f2b2bda6373598b2a18 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 81ff48ea26278df389d6855ac5e128e071506045
Author: Cesar Velez <cesar.velez at equinoxinitiative.org>
Date:   Wed Dec 20 18:38:28 2017 -0500

    LP#1739504 - create prototype of latency test tool in webstaff
    
    Basic websocket latency tester. Just pings opensrf.system.echo.
    Initial first test runs 10 pings, calculates average each time.
    
    Signed-off by: Cesar Velez <cesar.velez at equinoxinitiative.org>
    
    Conflicts:
    	Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
    
    Add missing pieces for latency tester (commits got out of order,
    sorry!).
    
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>

diff --git a/Open-ILS/src/templates/staff/admin/workstation/t_splash.tt2 b/Open-ILS/src/templates/staff/admin/workstation/t_splash.tt2
index 94c1140..345f7db 100644
--- a/Open-ILS/src/templates/staff/admin/workstation/t_splash.tt2
+++ b/Open-ILS/src/templates/staff/admin/workstation/t_splash.tt2
@@ -50,6 +50,15 @@
       </div>
 
       <div class="row new-entry">
+        <div class="col-md-6">
+          <span class="glyphicon glyphicon-wrench"></span>
+          <a target="_self" href="./admin/workstation/tests">
+            [% l('Tests') %]
+          </a>
+        </div>
+      </div>
+
+      <div class="row new-entry">
         <div class="col-md-4">
           <div class="checkbox">
             <label>
diff --git a/Open-ILS/src/templates/staff/admin/workstation/t_tests.tt2 b/Open-ILS/src/templates/staff/admin/workstation/t_tests.tt2
new file mode 100644
index 0000000..767a80c
--- /dev/null
+++ b/Open-ILS/src/templates/staff/admin/workstation/t_tests.tt2
@@ -0,0 +1,41 @@
+<div class="container-fluid text-center">
+  <div class="alert alert-info alert-less-pad strong-text-2">
+    <span>[% l('Webclient Latency Test') %]</span>
+  </div>
+</div>
+
+<div class="row">
+  <div class="col-md-8">
+    <div class="panel panel-default">
+      <div class="panel-heading">[% l('Server Details') %]</div>
+      <div class="panel-body">
+       <!-- <div class="row pad-vert nav-pills-like-tabs">
+          <div class="col-md-6">[% l('Evergreen Version') %]</div>
+          <div class="col-md-6">{{context.version}}</div>
+        </div> -->
+        <div class="row pad-vert">
+          <div class="col-md-6">[% l('Hostname') %]</div>
+          <div class="col-md-6">{{hostname}}</div>
+        </div>
+      </div>
+    </div><!--panel-->
+   </div>
+</div>
+<div class="row">
+  <div class="col-md-8">
+    <h2>[% l('Latency Test') %]</h2>
+    <p>[% |l %]This will measure the websocket latency between your workstation client and the Evergreen server at the host above.[% END %]
+    </p>
+    <button ng-disable="isTesting" ng-click="testLatency()" type="button" class="btn btn-primary">Start Test</button>
+    <button ng-click='clearTestData()' type="button" class="btn btn-secondary">Clear</button>
+    <ol id="pingData">
+      <p>Latency results for {{hostname}}. Average Latency: <span ng-bind="avrg"></span> ms</p>
+      <li ng-show="tests.length" ng-repeat="t in tests">Time: {{t.t}} Latency: {{t.l}} ms</li>
+    </ol>
+    <button ng-disabled="!canCopyCommand" ng-click="copyTests()" type="button" class="btn btn-light btn-sm">Copy to Clipboard</button>
+  </div>
+</div>
+
+
+
+
diff --git a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
index 4ca997d..de6e94f 100644
--- a/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
+++ b/Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
@@ -44,6 +44,12 @@ angular.module('egWorkstationAdmin',
         resolve : resolver
     });
 
+    $routeProvider.when('/admin/workstation/tests', {
+        templateUrl: './admin/workstation/t_tests',
+        controller: 'testsCtrl',
+        resolve : resolver
+    });
+    
     // default page 
     $routeProvider.otherwise({
         templateUrl : './admin/workstation/t_splash',

-----------------------------------------------------------------------

Summary of changes:
 .../templates/staff/admin/workstation/t_splash.tt2 |    9 ++++
 .../templates/staff/admin/workstation/t_tests.tt2  |   41 ++++++++++++++++++++
 .../js/ui/default/staff/admin/workstation/app.js   |    6 +++
 3 files changed, 56 insertions(+), 0 deletions(-)
 create mode 100644 Open-ILS/src/templates/staff/admin/workstation/t_tests.tt2


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list