Commit 11657937 authored by timothy@apple.com's avatar timothy@apple.com

Don't keep appending iterations each time the queue updates.

https://bugs.webkit.org/show_bug.cgi?id=122198

Reviewed by Joseph Pecoraro.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueue.js:
(BuildbotQueue.prototype.update):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156753 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9aaf2526
...@@ -147,19 +147,20 @@ BuildbotQueue.prototype = { ...@@ -147,19 +147,20 @@ BuildbotQueue.prototype = {
if (!iteration) { if (!iteration) {
iteration = new BuildbotIteration(this, parseInt(data.cachedBuilds[i], 10), !(data.cachedBuilds[i] in currentBuilds)); iteration = new BuildbotIteration(this, parseInt(data.cachedBuilds[i], 10), !(data.cachedBuilds[i] in currentBuilds));
newIterations.push(iteration); newIterations.push(iteration);
this.iterations.push(iteration);
this._knownIterations[iteration.id] = iteration;
} }
if (i >= loadingStop && (!iteration.finished || !iteration.loaded)) if (i >= loadingStop && (!iteration.finished || !iteration.loaded))
iteration.update(); iteration.update();
this.iterations.push(iteration);
this._knownIterations[iteration.id] = iteration;
} }
if (!newIterations.length)
return;
this.sortIterations(); this.sortIterations();
if (newIterations.length) this.dispatchEventToListeners(BuildbotQueue.Event.IterationsAdded, {addedIterations: newIterations});
this.dispatchEventToListeners(BuildbotQueue.Event.IterationsAdded, {addedIterations: newIterations});
}.bind(this)); }.bind(this));
}, },
......
2013-10-01 Timothy Hatcher <timothy@apple.com>
Don't keep appending iterations each time the queue updates.
https://bugs.webkit.org/show_bug.cgi?id=122198
Reviewed by Joseph Pecoraro.
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueue.js:
(BuildbotQueue.prototype.update):
2013-10-01 Timothy Hatcher <timothy@apple.com> 2013-10-01 Timothy Hatcher <timothy@apple.com>
Properly sort iterations in the Dashboard by revision for out-of-order queues. Properly sort iterations in the Dashboard by revision for out-of-order queues.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment