Title: [195961] trunk/Tools
Revision
195961
Author
[email protected]
Date
2016-02-01 09:01:56 -0800 (Mon, 01 Feb 2016)

Log Message

Refactor to add event listeners and start periodic updates for all trac instances.
https://bugs.webkit.org/show_bug.cgi?id=153609

Reviewed by Darin Adler.

* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
(BuildbotQueueView): Adding event listeners for all trac instances.
* BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Main.js: Starting periodic updates
for all trac instances.

Modified Paths

Diff

Modified: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js (195960 => 195961)


--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js	2016-02-01 16:00:55 UTC (rev 195960)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js	2016-02-01 17:01:56 UTC (rev 195961)
@@ -38,9 +38,12 @@
         queue.addEventListener(BuildbotQueue.Event.UnauthorizedAccess, this._unauthorizedAccess, this);
     }.bind(this));
 
-    Dashboard.Repository.OpenSource.trac.addEventListener(Trac.Event.CommitsUpdated, this._newCommitsRecorded, this);
-    if (typeof Dashboard.Repository.Internal.trac != "undefined")
-        Dashboard.Repository.Internal.trac.addEventListener(Trac.Event.CommitsUpdated, this._newCommitsRecorded, this);
+    var sortedRepositories = Dashboard.sortedRepositories;
+    for (var i = 0; i < sortedRepositories.length; i++) {
+        var trac = sortedRepositories[i].trac;
+        if (trac)
+            trac.addEventListener(Trac.Event.CommitsUpdated, this._newCommitsRecorded, this);
+    }
 };
 
 BaseObject.addConstructorFunctions(BuildbotQueueView);

Modified: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Main.js (195960 => 195961)


--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Main.js	2016-02-01 16:00:55 UTC (rev 195960)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Main.js	2016-02-01 17:01:56 UTC (rev 195961)
@@ -323,8 +323,11 @@
     }
 }
 
-Dashboard.Repository.OpenSource.trac.startPeriodicUpdates();
-if (typeof Dashboard.Repository.Internal.trac !== "undefined")
-    Dashboard.Repository.Internal.trac.startPeriodicUpdates();
+var sortedRepositories = Dashboard.sortedRepositories;
+for (var i = 0; i < sortedRepositories.length; ++i) {
+    var trac = sortedRepositories[i].trac;
+    if (typeof trac !== "undefined")
+        trac.startPeriodicUpdates();
+}
 
 document.addEventListener("DOMContentLoaded", documentReady);

Modified: trunk/Tools/ChangeLog (195960 => 195961)


--- trunk/Tools/ChangeLog	2016-02-01 16:00:55 UTC (rev 195960)
+++ trunk/Tools/ChangeLog	2016-02-01 17:01:56 UTC (rev 195961)
@@ -1,3 +1,15 @@
+2016-02-01  Jason Marcell  <[email protected]>
+
+        Refactor to add event listeners and start periodic updates for all trac instances.
+        https://bugs.webkit.org/show_bug.cgi?id=153609
+
+        Reviewed by Darin Adler.
+
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:
+        (BuildbotQueueView): Adding event listeners for all trac instances.
+        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Main.js: Starting periodic updates
+        for all trac instances.
+
 2016-01-31  Darin Adler  <[email protected]>
 
         Replace CaseFoldingHash with ASCIICaseInsensitiveHash
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to