Bug 148188

Summary: Make Dashboard.Branches be objects of the form {repository, branchName} and update existing code to work with these new objects.
Product: WebKit Reporter: Jason Marcell <jmarcell>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: adele, ap, bburg, commit-queue, dbates, dean_johnson, jake.nielsen.webkit, jmarcell
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
=Make Dashboard.Branches be objects of the form {repository, branchName} and update existing code to work with these new objects.
none
Patch
none
Patch
none
Patch
none
Patch none

Jason Marcell
Reported 2015-08-19 13:46:44 PDT
Make Dashboard.Branches be objects of the form {repository, branchName} and update existing code to work with these new objects.
Attachments
=Make Dashboard.Branches be objects of the form {repository, branchName} and update existing code to work with these new objects. (16.44 KB, patch)
2015-08-19 13:49 PDT, Jason Marcell
no flags
Patch (16.59 KB, patch)
2015-08-20 10:24 PDT, Jason Marcell
no flags
Patch (16.27 KB, patch)
2015-08-21 13:05 PDT, Jason Marcell
no flags
Patch (16.16 KB, patch)
2015-08-21 15:52 PDT, Jason Marcell
no flags
Patch (15.28 KB, patch)
2015-08-21 17:51 PDT, Jason Marcell
no flags
Jason Marcell
Comment 1 2015-08-19 13:49:17 PDT
Created attachment 259400 [details] =Make Dashboard.Branches be objects of the form {repository, branchName} and update existing code to work with these new objects.
Jason Marcell
Comment 2 2015-08-19 17:30:27 PDT
Comment on attachment 259400 [details] =Make Dashboard.Branches be objects of the form {repository, branchName} and update existing code to work with these new objects. View in context: https://bugs.webkit.org/attachment.cgi?id=259400&action=review > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js:212 > + key = repository.name; This should be 'repositoryName' > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js:215 > this.revision[repository] = parseRevisionProperty(revisionProperty, key, fallbackKey); This should be this.revision[repositoryName] ... I'll upload a new patch that addresses these two issues.
Jason Marcell
Comment 3 2015-08-20 10:24:13 PDT
Alexey Proskuryakov
Comment 4 2015-08-21 11:11:09 PDT
Comment on attachment 259477 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=259477&action=review > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotQueueView.js:172 > - for (var i = 0; i < length; ++i) > - content.appendChild(lines[i]); > + for (var j = 0; j < length; ++j) > + content.appendChild(lines[j]); Jason and myself landed this part in r188758, to quickly fix a regression caused by broken iteration.
Jason Marcell
Comment 5 2015-08-21 13:05:44 PDT
Jason Marcell
Comment 6 2015-08-21 13:06:56 PDT
Uploaded a new patch since Alexey landed the change in r188758.
Jason Marcell
Comment 7 2015-08-21 15:52:58 PDT
Daniel Bates
Comment 8 2015-08-21 17:19:59 PDT
Comment on attachment 259676 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=259676&action=review > Tools/ChangeLog:12 > + (BuildbotCombinedQueueView): Changed to work with new {repository, branchName} object. Maybe it would be more descriptive to write: Changed to work with new branch objects which represent a (repository, "branch name")-pair. > Tools/ChangeLog:18 > + (BuildbotQueueView.prototype._appendPendingRevisionCount): Changed to work with new {repository, branchName} > + object. Ditto. > Tools/ChangeLog:24 > + * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js: Added isSVN property > + to Dashboard.Repository object. Also removed Internal Dashboard.Repository object. I'm unclear how these change relate to the purpose of this bug. Please make these change in a separate bug. > Tools/ChangeLog:28 > + (WebKitBuildbot.prototype.get defaultBranches): Changed to new {repository, branchName} format. Maybe it would be more descriptive to write: Changed to work with new branch objects which represent a (repository, "branch name")-pair. > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotCombinedQueueView.js:41 > + indicesOfFirstQueueWithRepository[repositoryName] = {queueIndex: i, branchIndex: j}; Nit: There should be a space character after the '{' and before the '}'; > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotCombinedQueueView.js:46 > + message += " === combinedQueues[" + expected.queueIndex + "].branch[" + expected.branchIndex + "] === " + expectedBranch.name; Nit: Remove the space character at the beginning of this line or there will be two space characters before the second === in the printed message. > Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Dashboard.js:40 > - OpenSource: { name: "openSource", order: 0 }, > - Internal: { name: "internal", order: 1 }, > + OpenSource: { isSVN: true, name: "openSource", order: 0 }, I'm unclear how these change relate to the purpose of this bug. Please make these change in a separate bug.
Jason Marcell
Comment 9 2015-08-21 17:51:14 PDT
WebKit Commit Bot
Comment 10 2015-08-21 18:39:59 PDT
Comment on attachment 259691 [details] Patch Clearing flags on attachment: 259691 Committed r188814: <http://trac.webkit.org/changeset/188814>
WebKit Commit Bot
Comment 11 2015-08-21 18:40:03 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.