Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1193)

Unified Diff: dashboard/dashboard/elements/benchmark-health-report-details.html

Issue 2706813003: Add new endpoint to get bug details as JSON. (Closed)
Patch Set: addressed review comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: dashboard/dashboard/elements/benchmark-health-report-details.html
diff --git a/dashboard/dashboard/elements/benchmark-health-report-details.html b/dashboard/dashboard/elements/benchmark-health-report-details.html
index b965aee04c037a4538b513013a77ac0a7100b4b4..7782f7228443b6d94e20f333729b1135490f7e68 100644
--- a/dashboard/dashboard/elements/benchmark-health-report-details.html
+++ b/dashboard/dashboard/elements/benchmark-health-report-details.html
@@ -7,6 +7,7 @@ found in the LICENSE file.
<link rel="import" href="/components/polymer/polymer.html">
<link rel="import" href="/dashboard/elements/alerts-table.html">
+<link rel="import" href="/dashboard/elements/bug-details.html">
<link rel="import" href="/dashboard/static/simple_xhr.html">
<dom-module id="benchmark-health-report-details">
@@ -43,6 +44,11 @@ found in the LICENSE file.
<alerts-table id="alerts-table"
alert-list="{{alerts}}"
extra-columns="{{extraColumns}}"></alerts-table>
+
+ <h2>{{bugIds.length}} bugs for {{benchmark}} in the last {{numDays}} days</h2>
+ <template is="dom-repeat" items="{{bugIds}}">
+ <bug-details bug-id="{{item}}"></bug-details>
+ </template>
</template>
</template>
@@ -63,6 +69,10 @@ found in the LICENSE file.
notify: true,
type: Array
},
+ bugIds: {
+ notify: true,
+ type: Array
+ },
extraColumns: {
type: Array,
notify: true,
@@ -148,6 +158,13 @@ found in the LICENSE file.
this.bots = response['bots'];
this.monitored = response['monitored'];
this.loading = false;
+ var bugIds = new Set();
+ for (let alert of this.alerts) {
+ if (alert.bug_id && alert.bug_id > 0) {
+ bugIds.add(alert.bug_id);
+ }
+ }
+ this.set('bugIds', Array.from(bugIds));
},
errorMsg => {
this.error = errorMsg;
« no previous file with comments | « dashboard/dashboard/dispatcher.py ('k') | dashboard/dashboard/elements/benchmark-health-report-page-test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698