| 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;
|
|
|