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/10/11 15:19:28 UTC

[ignite-teamcity-bot] branch master updated: Repaint coded, called by timeout

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 6d44c0a  Repaint coded, called by timeout
6d44c0a is described below

commit 6d44c0ac56b23c4a8dc49febfae0ff4c8b53faff
Author: Dmitriy Pavlov <dp...@apache.org>
AuthorDate: Thu Oct 11 18:19:26 2018 +0300

    Repaint coded, called by timeout
---
 ignite-tc-helper-web/src/main/webapp/js/prs-1.0.js | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/ignite-tc-helper-web/src/main/webapp/js/prs-1.0.js b/ignite-tc-helper-web/src/main/webapp/js/prs-1.0.js
index 6ba1e3e..c8e24e4 100644
--- a/ignite-tc-helper-web/src/main/webapp/js/prs-1.0.js
+++ b/ignite-tc-helper-web/src/main/webapp/js/prs-1.0.js
@@ -229,6 +229,13 @@ function repaint(srvId, suiteId) {
     datatable.draw();
 }
 
+
+function repaintLater(srvId, suiteId) {
+    setTimeout(function () {
+        repaint(srvId, suiteId)
+    }, 3000);
+}
+
 function showContributionStatus(status, prId, row, srvId, suiteId) {
     let finishedBranch = status.branchWithFinishedRunAll;
     let tdForPr = $('#showResultFor' + prId);
@@ -237,7 +244,7 @@ function showContributionStatus(status, prId, row, srvId, suiteId) {
     let hasQueued = status.queuedBuilds > 0 || status.runningBuilds > 0;
     let queuedStatus = "Has queued builds: " + status.queuedBuilds  + " queued " + " " + status.runningBuilds  + " running";
 
-    let replaintCall = "repaint(" +
+    let replaintCall = "repaintLater(" +
         "\"" + srvId + "\", " +
         "\"" + suiteId + "\", " +
         ");";