You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dp...@apache.org on 2018/09/13 16:29:43 UTC

[ignite-teamcity-bot] branch master updated: Web inspections fix

This is an automated email from the ASF dual-hosted git repository.

dpavlov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-teamcity-bot.git


The following commit(s) were added to refs/heads/master by this push:
     new 25a0826  Web inspections fix
25a0826 is described below

commit 25a0826ccd397bd1c83f4b92d5e9d191b1917441
Author: Dmitriy Pavlov <dp...@apache.org>
AuthorDate: Thu Sep 13 19:29:37 2018 +0300

    Web inspections fix
---
 .../runners/IgniteTeamcityHelperRunnerExample.java |   3 +-
 ignite-tc-helper-web/src/main/webapp/all.html      | 140 +++++++++++----------
 .../src/main/webapp/build-comparator.html          |   4 +-
 ignite-tc-helper-web/src/main/webapp/build.html    |  11 +-
 ignite-tc-helper-web/src/main/webapp/compare.html  |  10 +-
 ignite-tc-helper-web/src/main/webapp/current.html  |  33 +++--
 ignite-tc-helper-web/src/main/webapp/ignval.html   |  13 +-
 ignite-tc-helper-web/src/main/webapp/index.html    |   8 +-
 ignite-tc-helper-web/src/main/webapp/issues.html   |  13 +-
 ignite-tc-helper-web/src/main/webapp/login.html    |   5 +-
 .../src/main/webapp/restpretty.html                |   4 +-
 .../src/main/webapp/statistics.html                |  50 +++-----
 12 files changed, 138 insertions(+), 156 deletions(-)

diff --git a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/runners/IgniteTeamcityHelperRunnerExample.java b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/runners/IgniteTeamcityHelperRunnerExample.java
index f7d0f3a..92ff0c8 100644
--- a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/runners/IgniteTeamcityHelperRunnerExample.java
+++ b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/runners/IgniteTeamcityHelperRunnerExample.java
@@ -77,9 +77,10 @@ public class IgniteTeamcityHelperRunnerExample {
             //branch example:
             final String branchName = "<default>";
             // String branchName = "refs/heads/master";
-            // final String branchName = "pull/3554/head";
+            //  final String branchName = "pull/4750/head";
             String buildTypeIdAll = "IgniteTests24Java8_RunAll";
             String buildTypeIdAllP = "id8xIgniteGridGainTestsJava8_RunAll";
+            //  buildTypeIdAll="IgniteTests24Java8_Queries1";
 
             helper.triggerBuild(buildTypeIdAll, branchName, true, false);
         }
diff --git a/ignite-tc-helper-web/src/main/webapp/all.html b/ignite-tc-helper-web/src/main/webapp/all.html
index 21f51ee..8f2e1d8 100644
--- a/ignite-tc-helper-web/src/main/webapp/all.html
+++ b/ignite-tc-helper-web/src/main/webapp/all.html
@@ -12,93 +12,95 @@
 </head>
 <body>
 <script>
-var g_shownDataHashCodeHex = ""
+    var g_shownDataHashCodeHex = "";
 
-$(document).ready(function() {
-    $.getScript("js/testfails-2.1.js", function(data, textStatus, jqxhr){ });
+    $(document).ready(function () {
+        $.getScript("js/testfails-2.1.js", function (data, textStatus, jqxhr) {
+        });
 
-    $( document ).tooltip();
+        $(document).tooltip();
 
-    loadData();
-     //todo fix setInterval( function() { checkForUpdate(); }, 60000);
+        loadData();
+        //todo fix setInterval( function() { checkForUpdate(); }, 60000);
 
-    $.ajax({ url: "rest/branches/version",  success: showVersionInfo, error: showErrInLoadStatus });
-});
+        $.ajax({url: "rest/branches/version", success: showVersionInfo, error: showErrInLoadStatus});
+    });
 
 
-function parmsForRest() {
-    var curReqParms = "";
+    function parmsForRest() {
+        var curReqParms = "";
 
-    var branch = findGetParameter("branch");
-    if(branch!=null)
-        curReqParms += "?branch=" + branch;
+        var branch = findGetParameter("branch");
+        if (branch != null)
+            curReqParms += "?branch=" + branch;
 
-    var count = findGetParameter("count");
-    if(count!=null)
-        curReqParms += "&count=" + count;
+        var count = findGetParameter("count");
+        if (count != null)
+            curReqParms += "&count=" + count;
 
-    var checkAllLogs = findGetParameter("checkAllLogs");
-    if(checkAllLogs!=null)
-        curReqParms += "&checkAllLogs=" + checkAllLogs;
+        var checkAllLogs = findGetParameter("checkAllLogs");
+        if (checkAllLogs != null)
+            curReqParms += "&checkAllLogs=" + checkAllLogs;
 
-    return curReqParms;
-}
+        return curReqParms;
+    }
 
 
-function checkForUpdate() {
-    var curFailuresUrl = "rest/tracked/mergedUpdates" + parmsForRest();
+    function checkForUpdate() {
+        var curFailuresUrl = "rest/tracked/mergedUpdates" + parmsForRest();
 
-    $.ajax({
-        url: curFailuresUrl,
-        success: function(result) {
-           if (g_shownDataHashCodeHex!="" && isDefinedAndFilled(result.hashCodeHex)) {
-                if(g_shownDataHashCodeHex==result.hashCodeHex) {
-                    var updRunning = isDefinedAndFilled(result.runningUpdates) && result.runningUpdates>0
-                    var fastCheckNeeded = result.updateRequired || updRunning;
-                    var ms = fastCheckNeeded ? 6000 : 60000 ;
+        $.ajax({
+            url: curFailuresUrl,
+            success: function (result) {
+                if (g_shownDataHashCodeHex !== "" && isDefinedAndFilled(result.hashCodeHex)) {
+                    if (g_shownDataHashCodeHex === result.hashCodeHex) {
+                        var updRunning = isDefinedAndFilled(result.runningUpdates) && result.runningUpdates > 0
+                        var fastCheckNeeded = result.updateRequired || updRunning;
+                        var ms = fastCheckNeeded ? 6000 : 60000;
 
-                    setTimeout(checkForUpdate, ms);
+                        setTimeout(checkForUpdate, ms);
 
-                    if(!result.updateRequired)
-                        $("#loadStatus").html("");
+                        if (!result.updateRequired)
+                            $("#loadStatus").html("");
+                    } else {
+                        loadData(); // data changed, show new
+                    }
                 } else {
-                    loadData(); // data changed, show new
+                    loadData();
                 }
-            } else {
-                loadData();
-            }
-        },
-        error: showErrInLoadStatus
-    });
-}
-
-function loadData() {
-    var curFailuresUrl = "rest/tracked/mergedResults" + parmsForRest();
-    
-    $("#loadStatus").html("<img src='https://www.wallies.com/filebin/images/loading_apple.gif' width=20px height=20px> Please wait. Loading merged runs may require significant time.");
-    $.ajax({
-        url: curFailuresUrl,
-        success: function(result) {
-           if(result.updateRequired || (isDefinedAndFilled(result.runningUpdates) && result.runningUpdates>0)) {
-                setTimeout(checkForUpdate, 3000)
-                $("#loadStatus").html("<img src='https://www.wallies.com/filebin/images/loading_apple.gif' width=20px height=20px> Updating");
-            } else {
-                $("#loadStatus").html("");
-            }
-            showData(result);
-
-            g_shownDataHashCodeHex = isDefinedAndFilled(result.hashCodeHex) ? result.hashCodeHex : "";
-        },
-        error: showErrInLoadStatus
-    });
-}
+            },
+            error: showErrInLoadStatus
+        });
+    }
+
+    function loadData() {
+        var curFailuresUrl = "rest/tracked/mergedResults" + parmsForRest();
+
+        $("#loadStatus").html("<img src='https://www.wallies.com/filebin/images/loading_apple.gif' width=20px height=20px> Please wait. Loading merged runs may require significant time.");
+        $.ajax({
+            url: curFailuresUrl,
+            success: function (result) {
+                if (result.updateRequired || (isDefinedAndFilled(result.runningUpdates) && result.runningUpdates > 0)) {
+                    setTimeout(checkForUpdate, 3000);
+
+                    $("#loadStatus").html("<img src='https://www.wallies.com/filebin/images/loading_apple.gif' width=20px height=20px> Updating");
+                } else {
+                    $("#loadStatus").html("");
+                }
+                showData(result);
+
+                g_shownDataHashCodeHex = isDefinedAndFilled(result.hashCodeHex) ? result.hashCodeHex : "";
+            },
+            error: showErrInLoadStatus
+        });
+    }
 
-function showData(result) {
-    var repMode = "./all.html" + parmsForRest() + "&reportMode=" + true;
+    function showData(result) {
+        var repMode = "./all.html" + parmsForRest() + "&reportMode=" + true;
 
-    $("#divFailures").html(showChainOnServersResults(result)
-        + " <a href='"+ repMode + "'>report mode</a>");
-}
+        $("#divFailures").html(showChainOnServersResults(result)
+            + " <a href='" + repMode + "'>report mode</a>");
+    }
 
 </script>
 
@@ -107,6 +109,6 @@ function showData(result) {
 <div id="divFailures"></div>
 
 <div id="version"></div>
-<div style="visibility:none"><div id="triggerConfirm" title="Trigger Confirmation"></div><div id="triggerDialog" title="Trigger Result"></div></div>
+<div style="visibility:hidden;"><div id="triggerConfirm" title="Trigger Confirmation"></div><div id="triggerDialog" title="Trigger Result"></div></div>
 </body>
 </html>
\ No newline at end of file
diff --git a/ignite-tc-helper-web/src/main/webapp/build-comparator.html b/ignite-tc-helper-web/src/main/webapp/build-comparator.html
index 4f3f992..4a45bfe 100644
--- a/ignite-tc-helper-web/src/main/webapp/build-comparator.html
+++ b/ignite-tc-helper-web/src/main/webapp/build-comparator.html
@@ -54,10 +54,10 @@
         $("#loadStatus").html("<img src='https://www.wallies.com/filebin/images/loading_apple.gif' width=20px height=20px> Please wait");
         $.ajax({
             url: curFailuresUrl,
-            success: function(result) {
+            success: function (result) {
                 $("#data").html("<pre>" + result + "</pre>");
                 $("#loadStatus").html("");
-                g_shownDataHashCodeHex = isDefinedAndFilled(result.hashCodeHex) ? result.hashCodeHex : "";2
+                g_shownDataHashCodeHex = isDefinedAndFilled(result.hashCodeHex) ? result.hashCodeHex : "";
             },
             error: showErrInLoadStatus
         });
diff --git a/ignite-tc-helper-web/src/main/webapp/build.html b/ignite-tc-helper-web/src/main/webapp/build.html
index 520b0d9..91f7beb 100644
--- a/ignite-tc-helper-web/src/main/webapp/build.html
+++ b/ignite-tc-helper-web/src/main/webapp/build.html
@@ -13,7 +13,7 @@
 </head>
 <body>
 <script>
-var g_shownDataHashCodeHex = ""
+var g_shownDataHashCodeHex = "";
 
 $(document).ready(function() {
     $.getScript("js/testfails-2.1.js", function(data, textStatus, jqxhr){ });
@@ -52,8 +52,8 @@ function checkForUpdate() {
     $.ajax({
         url: curFailuresUrl,
         success: function(result) {
-           if (g_shownDataHashCodeHex!="" && isDefinedAndFilled(result.hashCodeHex)) {
-                if(g_shownDataHashCodeHex==result.hashCodeHex) {
+           if (g_shownDataHashCodeHex!=="" && isDefinedAndFilled(result.hashCodeHex)) {
+                if(g_shownDataHashCodeHex===result.hashCodeHex) {
                     var updRunning = isDefinedAndFilled(result.runningUpdates) && result.runningUpdates>0
                     var fastCheckNeeded = result.updateRequired || updRunning;
                     var ms = fastCheckNeeded ? 3000 : 30000 ;
@@ -81,7 +81,8 @@ function loadData() {
         url: curFailuresUrl,
         success: function(result) {
             if(result.updateRequired || (isDefinedAndFilled(result.runningUpdates) && result.runningUpdates>0)) {
-                setTimeout(checkForUpdate, 3000)
+                setTimeout(checkForUpdate, 3000);
+
                 $("#loadStatus").html("<img src='https://www.wallies.com/filebin/images/loading_apple.gif' width=20px height=20px> Updating");
             } else {
                 $("#loadStatus").html("");
@@ -107,6 +108,6 @@ function showData(result) {
 <div id="divFailures"></div>
 
 <div id="version"></div>
-<div style="visibility:none"><div id="triggerConfirm" title="Trigger Confirmation"></div><div id="triggerDialog" title="Trigger Result"></div></div>
+<div style="visibility:hidden;"><div id="triggerConfirm" title="Trigger Confirmation"></div><div id="triggerDialog" title="Trigger Result"></div></div>
 </body>
 </html>
\ No newline at end of file
diff --git a/ignite-tc-helper-web/src/main/webapp/compare.html b/ignite-tc-helper-web/src/main/webapp/compare.html
index 48670aa..47eba82 100644
--- a/ignite-tc-helper-web/src/main/webapp/compare.html
+++ b/ignite-tc-helper-web/src/main/webapp/compare.html
@@ -45,11 +45,11 @@
             for (var i = 0; i < result.length; i++) {
                 var serverId = result[i];
 
-                res+="<form action='build-comparator.html'>";
-                res+="Server: <input type='text' name='serverId' value=" + serverId +" readonly>";
-                res+="Build Id: <input type='text' name='buildId' required> ";
-                res+="<input type='submit' name='action' value='Get tests list'>";
-                res+="</form>";
+                res += "<form action='build-comparator.html'>";
+                res += "Server: <input type='text' name='serverId' value=" + serverId + " readonly>";
+                res += "Build Id: <input type='text' name='buildId' required> ";
+                res += "<input type='submit' name='action' value='Get tests list'>";
+                res += "</form>";
             }
             $("#testsSet").html(res);
         }
diff --git a/ignite-tc-helper-web/src/main/webapp/current.html b/ignite-tc-helper-web/src/main/webapp/current.html
index c75c278..6574b35 100644
--- a/ignite-tc-helper-web/src/main/webapp/current.html
+++ b/ignite-tc-helper-web/src/main/webapp/current.html
@@ -13,7 +13,7 @@
 </head>
 <body>
 <script>
-var g_shownDataHashCodeHex = ""
+var g_shownDataHashCodeHex = "";
 var g_updTimer = null;
 
 $(document).ready(function() {
@@ -25,40 +25,38 @@ $(document).ready(function() {
 
     $.ajax({ url: "rest/branches/version",  success: showVersionInfo, error: showErrInLoadStatus });
 
-    if(g_updTimer==null) {
-        g_updTimer=setTimeout(tstTimeout, 3200);
+    if (g_updTimer == null) {
+        g_updTimer = setTimeout(tstTimeout, 3200);
     }
     setInterval(tstTimeout, 10000);
 });
 
 function tstTimeout() {
 
-    if(g_updTimer!=null) {
+    if (g_updTimer != null) {
         clearTimeout(g_updTimer);
-        g_updTimer=null;
+        g_updTimer = null;
     }
 
-
-var d = new Date();
-var n = d.getTime();
+    var d = new Date();
+    var n = d.getTime();
 
     // $(document.body).prepend("timeout at "+n+"<br>");
 
-
-    if(g_updTimer==null) {
-        g_updTimer=setTimeout(tstTimeout, 3200);
+    if (g_updTimer == null) {
+        g_updTimer = setTimeout(tstTimeout, 3200);
     }
 }
 
 function parmsForRest() {
     var curReqParms = "";
     var branch = findGetParameter("branch");
-    if(branch!=null) {
+    if (branch != null) {
         curReqParms += "?branch=" + branch;
     }
 
     var checkAllLogs = findGetParameter("checkAllLogs");
-    if(checkAllLogs!=null) {
+    if (checkAllLogs != null) {
         curReqParms += "&checkAllLogs=" + checkAllLogs;
     }
     return curReqParms;
@@ -70,8 +68,8 @@ function checkForUpdate() {
     $.ajax({
         url: curFailuresUrl,
         success: function(result) {
-           if (g_shownDataHashCodeHex!="" && isDefinedAndFilled(result.hashCodeHex)) {
-                if(g_shownDataHashCodeHex==result.hashCodeHex) {
+           if (g_shownDataHashCodeHex!=="" && isDefinedAndFilled(result.hashCodeHex)) {
+                if(g_shownDataHashCodeHex===result.hashCodeHex) {
                     var updRunning = isDefinedAndFilled(result.runningUpdates) && result.runningUpdates>0
                     var fastCheckNeeded = result.updateRequired || updRunning;
                     var ms = fastCheckNeeded ? 3000 : 30000 ;
@@ -99,7 +97,8 @@ function loadData() {
         url: curFailuresUrl,
         success: function(result) {
             if(result.updateRequired || (isDefinedAndFilled(result.runningUpdates) && result.runningUpdates>0)) {
-                setTimeout(checkForUpdate, 3000)
+                setTimeout(checkForUpdate, 3000);
+
                 $("#loadStatus").html("<img src='https://www.wallies.com/filebin/images/loading_apple.gif' width=20px height=20px> Updating");
             } else {
                 $("#loadStatus").html("");
@@ -125,6 +124,6 @@ function showData(result) {
 <div id="divFailures"></div>
 
 <div id="version"></div>
-<div style="visibility:none"><div id="triggerConfirm" title="Trigger Confirmation"></div><div id="triggerDialog" title="Trigger Result"></div></div>
+<div style="visibility:hidden;"><div id="triggerConfirm" title="Trigger Confirmation"></div><div id="triggerDialog" title="Trigger Result"></div></div>
 </body>
 </html>
\ No newline at end of file
diff --git a/ignite-tc-helper-web/src/main/webapp/ignval.html b/ignite-tc-helper-web/src/main/webapp/ignval.html
index 8a296de..5a2474c 100644
--- a/ignite-tc-helper-web/src/main/webapp/ignval.html
+++ b/ignite-tc-helper-web/src/main/webapp/ignval.html
@@ -23,7 +23,7 @@
           var ll = 0;
           for (var i = 0; i < value.length; i++) {
               var ch = value.charAt(i);
-              if (ch == "[") {
+              if (ch === "[") {
                   t++;
 
                   res += ch + nl(t);
@@ -31,7 +31,7 @@
 
                   continue;
               }
-              if (ch == "]") {
+              if (ch === "]") {
                   t--;
                   res += nl(t) + ch;
                   ll=100;
@@ -39,14 +39,14 @@
                   continue;
               }
 
-              if (ch == '\n') {
+              if (ch === "\n") {
                   res += nl(t);
                   ll=0;
 
                   continue;
               }
 
-              if(ch == ',' && ll>2) {
+              if(ch === "," && ll>2) {
                   res += ch+ nl(t);
                   ll=0;
                   continue;
@@ -86,8 +86,9 @@
     </script>
 </head>
 <body>
-<textarea  rows="6" cols="150" id="taInput"></textarea><br>
-<button onclick="doConvert()">Format</button><br>
+<textarea rows="6" cols="150" id="taInput"></textarea><br>
+<button onclick="doConvert()">Format</button>
+<br>
 <div id="divResult" style=" font-family: monospace;"></div>
 </body>
 </html>
\ No newline at end of file
diff --git a/ignite-tc-helper-web/src/main/webapp/index.html b/ignite-tc-helper-web/src/main/webapp/index.html
index 264c5ae..106ce02 100644
--- a/ignite-tc-helper-web/src/main/webapp/index.html
+++ b/ignite-tc-helper-web/src/main/webapp/index.html
@@ -135,7 +135,7 @@ function showRunAllForm(result) {
  * Start Run All build on TeamCity and comment in JIRA ticket when build will be finished.
  */
 function trigBuild(event) {
-    if (event != null && event.key != "Enter")
+    if (event != null && event.key !== "Enter")
         return;
 
     var fields = document.getElementById("runAll").children;
@@ -143,16 +143,16 @@ function trigBuild(event) {
     var prId = null;
 
     for (let field of fields) {
-        if (field.name == "serverId")
+        if (field.name === "serverId")
             url += "&serverId=" + field.value;
 
-        if (field.name == "prId") {
+        if (field.name === "prId") {
             url += "&branchName=pull%2F" + field.value + "%2Fhead";
             prId = field.value;
         }
     }
 
-    url += "&observe=true"
+    url += "&observe=true";
 
     $.ajax({
         url: url,
diff --git a/ignite-tc-helper-web/src/main/webapp/issues.html b/ignite-tc-helper-web/src/main/webapp/issues.html
index 422a1ea..9996eca 100644
--- a/ignite-tc-helper-web/src/main/webapp/issues.html
+++ b/ignite-tc-helper-web/src/main/webapp/issues.html
@@ -13,7 +13,7 @@
 </head>
 <body>
 <script>
-var g_shownDataHashCodeHex = ""
+var g_shownDataHashCodeHex = "";
 
 $(document).ready(function() {
     $.getScript("js/issues-1.0.js", function(data, textStatus, jqxhr){ });
@@ -29,7 +29,7 @@ $(document).ready(function() {
 function parmsForRest() {
     var curReqParms = "";
     var branch = findGetParameter("branch");
-    if(branch!=null) {
+    if (branch != null) {
         curReqParms += "?branch=" + branch;
     }
 
@@ -42,8 +42,8 @@ function checkForUpdate() {
     $.ajax({
         url: issuesUrl,
         success: function(result) {
-           if (g_shownDataHashCodeHex!="" && isDefinedAndFilled(result.hashCodeHex)) {
-                if(g_shownDataHashCodeHex==result.hashCodeHex) {
+           if (g_shownDataHashCodeHex!=="" && isDefinedAndFilled(result.hashCodeHex)) {
+                if(g_shownDataHashCodeHex===result.hashCodeHex) {
                     var updRunning = isDefinedAndFilled(result.runningUpdates) && result.runningUpdates>0
                     var fastCheckNeeded = result.updateRequired || updRunning;
                     var ms = fastCheckNeeded ? 3000 : 30000 ;
@@ -71,7 +71,8 @@ function loadData() {
         url: curFailuresUrl,
         success: function(result) {
             if(result.updateRequired || (isDefinedAndFilled(result.runningUpdates) && result.runningUpdates>0)) {
-                setTimeout(checkForUpdate, 3000)
+                setTimeout(checkForUpdate, 3000);
+
                 $("#loadStatus").html("<img src='https://www.wallies.com/filebin/images/loading_apple.gif' width=20px height=20px> Updating");
             } else {
                 $("#loadStatus").html("");
@@ -94,6 +95,6 @@ function showData(result) {
 <div id="divFailures"></div>
 
 <div id="version"></div>
-<div style="visibility:none"><div id="triggerConfirm" title="Trigger Confirmation"></div><div id="triggerDialog" title="Trigger Result"></div></div>
+<div style="visibility:hidden;"><div id="triggerConfirm" title="Trigger Confirmation"></div><div id="triggerDialog" title="Trigger Result"></div></div>
 </body>
 </html>
\ No newline at end of file
diff --git a/ignite-tc-helper-web/src/main/webapp/login.html b/ignite-tc-helper-web/src/main/webapp/login.html
index aff13bb..0b64f74 100644
--- a/ignite-tc-helper-web/src/main/webapp/login.html
+++ b/ignite-tc-helper-web/src/main/webapp/login.html
@@ -31,8 +31,7 @@
      // The ID token you need to pass to your backend:
      var id_token = googleUser.getAuthResponse().id_token;
      console.log("ID Token: " + id_token);
- };
-
+ }
 
  $(document).ready(function() {
      setupLogon();
@@ -59,7 +58,7 @@
 
  function setupLogon() {
      var exitParm = findGetParameter("exit");
-     if(isDefinedAndFilled(exitParm) && exitParm=="true") {
+     if(isDefinedAndFilled(exitParm) && exitParm==="true") {
         tcHelperLogout();
      }
 
diff --git a/ignite-tc-helper-web/src/main/webapp/restpretty.html b/ignite-tc-helper-web/src/main/webapp/restpretty.html
index f4f4704..18f4a28 100644
--- a/ignite-tc-helper-web/src/main/webapp/restpretty.html
+++ b/ignite-tc-helper-web/src/main/webapp/restpretty.html
@@ -45,9 +45,9 @@ function loadData() {
         error: function(jqXHR, exception) {
             if (jqXHR.status === 0) {
                 $("#loadStatus").html('Not connect.\n Verify Network.');
-            } else if (jqXHR.status == 404) {
+            } else if (jqXHR.status === 404) {
                 $("#loadStatus").html('Requested page not found. [404]');
-            } else if (jqXHR.status == 500) {
+            } else if (jqXHR.status === 500) {
                 $("#loadStatus").html('Internal Server Error [500].');
             } else if (exception === 'parsererror') {
                 $("#loadStatus").html('Requested JSON parse failed.');
diff --git a/ignite-tc-helper-web/src/main/webapp/statistics.html b/ignite-tc-helper-web/src/main/webapp/statistics.html
index c8dfabc..660f649 100644
--- a/ignite-tc-helper-web/src/main/webapp/statistics.html
+++ b/ignite-tc-helper-web/src/main/webapp/statistics.html
@@ -29,66 +29,43 @@
 </head>
 <body>
 <script>
-    var g_shownDataHashCodeHex = ""
+    var g_shownDataHashCodeHex = "";
     var g_updTimer = null;
 
-    $(document).ready(function() {
-        $.getScript("js/testfails-2.1.js", function(data, textStatus, jqxhr){ });
+    $(document).ready(function () {
+        $.getScript("js/testfails-2.1.js", function (data, textStatus, jqxhr) {
+        });
 
-        $( document ).tooltip();
+        $(document).tooltip();
         loadData();
         //todo fix setInterval( function() { checkForUpdate(); }, 30000);
 
-        $.ajax({ url: "rest/branches/version",  success: showVersionInfo, error: showErrInLoadStatus });
-
-        if(g_updTimer==null) {
-            g_updTimer=setTimeout(tstTimeout, 3200);
-        }
-        setInterval(tstTimeout, 10000);
+        $.ajax({url: "rest/branches/version", success: showVersionInfo, error: showErrInLoadStatus});
     });
 
-    function tstTimeout() {
-
-        if(g_updTimer!=null) {
-            clearTimeout(g_updTimer);
-            g_updTimer=null;
-        }
-
-
-        var d = new Date();
-        var n = d.getTime();
-
-        // $(document.body).prepend("timeout at "+n+"<br>");
-
-
-        if(g_updTimer==null) {
-            g_updTimer=setTimeout(tstTimeout, 3200);
-        }
-    }
-
     function parmsForRest() {
         var curReqParms = "";
         var server = findGetParameter("server");
-        if(server!=null) {
+        if (server != null) {
             curReqParms += "&server=" + server;
         }
 
         var buildType = findGetParameter("buildType");
-        if(buildType!=null) {
+        if (buildType != null) {
             curReqParms += "&buildType=" + buildType;
         }
 
         var branch = findGetParameter("branch");
-        if(branch!=null) {
+        if (branch != null) {
             curReqParms += "&branch=" + branch;
         }
 
         var count = findGetParameter("count");
-        if(count!=null) {
+        if (count != null) {
             curReqParms += "&count=" + count;
         }
 
-        curReqParms = curReqParms.replace("&","?");
+        curReqParms = curReqParms.replace("&", "?");
 
         return curReqParms;
     }
@@ -101,7 +78,8 @@
             url: curFailuresUrl,
             success: function(result) {
                 if(result.updateRequired || (isDefinedAndFilled(result.runningUpdates) && result.runningUpdates>0)) {
-                    setTimeout(checkForUpdate, 3000)
+                    setTimeout(checkForUpdate, 3000);
+
                     $("#loadStatus").html("<img src='https://www.wallies.com/filebin/images/loading_apple.gif' width=20px height=20px> Updating");
                 } else {
                     $("#loadStatus").html("");
@@ -119,7 +97,7 @@
     function median(arr){
         arr = arr.sort(function(a, b){ return a - b; });
         var i = arr.length / 2;
-        return i % 1 == 0 ? (arr[i - 1] + arr[i]) / 2 : arr[Math.floor(i)];
+        return i % 1 === 0 ? (arr[i - 1] + arr[i]) / 2 : arr[Math.floor(i)];
     }
 
     function formatString(string) {