Analysis task page should show build request author and creation time.
authordewei_zhu@apple.com <dewei_zhu@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 31 Jul 2019 16:28:02 +0000 (16:28 +0000)
committerdewei_zhu@apple.com <dewei_zhu@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 31 Jul 2019 16:28:02 +0000 (16:28 +0000)
https://bugs.webkit.org/show_bug.cgi?id=200274

Reviewed by Ryosuke Niwa.

Author and creation time of a build request should be visible in analysis task page.

* public/v3/pages/analysis-task-page.js: Added UI to show build request creation time and author.
(AnalysisTaskTestGroupPane.prototype._renderCurrentTestGroup):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248045 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Websites/perf.webkit.org/ChangeLog
Websites/perf.webkit.org/public/v3/pages/analysis-task-page.js

index 110e463..4b40e04 100644 (file)
@@ -1,3 +1,15 @@
+2019-07-30  Dewei Zhu  <dewei_zhu@apple.com>
+
+        Analysis task page should show build request author and creation time.
+        https://bugs.webkit.org/show_bug.cgi?id=200274
+
+        Reviewed by Ryosuke Niwa.
+
+        Author and creation time of a build request should be visible in analysis task page.
+
+        * public/v3/pages/analysis-task-page.js: Added UI to show build request creation time and author.
+        (AnalysisTaskTestGroupPane.prototype._renderCurrentTestGroup):
+
 2019-07-29  Dewei Zhu  <dewei_zhu@apple.com>
 
         Should not render latest build information if there is no data points for a config.
index 8280daa..3f4feff 100644 (file)
@@ -371,12 +371,16 @@ class AnalysisTaskTestGroupPane extends ComponentBase {
         if (currentGroup) {
             this.part('retry-form').setRepetitionCount(currentGroup.initialRepetitionCount());
             this.part('bisect-form').setRepetitionCount(currentGroup.initialRepetitionCount());
-            const summary = `${currentGroup.initialRepetitionCount()} requested, ${currentGroup.repetitionCount() - currentGroup.initialRepetitionCount()} added due to failures.`;
-            this.content('status-summary').innerHTML = summary;
+            const statusSummary = `${currentGroup.initialRepetitionCount()} requested, ${currentGroup.repetitionCount() - currentGroup.initialRepetitionCount()} added due to failures.`;
+            this.content('status-summary').innerHTML = statusSummary;
+
+            const authoredBy = currentGroup.author() ? `by "${currentGroup.author()}"` : '';
+            this.content('request-summary').innerHTML = `Scheduled ${authoredBy} at ${currentGroup.createdAt()}`
         }
         this.content('retry-form').style.display = currentGroup ? null : 'none';
         this.content('bisect-form').style.display = currentGroup && this._bisectingCommitSetByTestGroup.get(currentGroup) ? null : 'none';
         this.content('status-summary').style.display = currentGroup && currentGroup.repetitionCount() > currentGroup.initialRepetitionCount() ? null : 'none';
+        this.content('request-summary').style.display = currentGroup ? null : 'none';
 
         const hideButton = this.content('hide-button');
         hideButton.textContent = currentGroup && currentGroup.isHidden() ? 'Unhide' : 'Hide';
@@ -393,6 +397,7 @@ class AnalysisTaskTestGroupPane extends ComponentBase {
                 <test-group-results-viewer id="results-viewer"></test-group-results-viewer>
                 <test-group-revision-table id="revision-table"></test-group-revision-table>
                 <div id="status-summary" class="summary"></div>
+                <div id="request-summary" class="summary"></div>
                 <test-group-form id="retry-form">Retry</test-group-form>
                 <test-group-form id="bisect-form">Bisect</test-group-form>
                 <button id="hide-button">Hide</button>