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

Unified Diff: Tools/GardeningServer/ui/ct-failure-card.html

Issue 541123002: Move builderList creation to ct-failure-card (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 3 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: Tools/GardeningServer/ui/ct-failure-card.html
diff --git a/Tools/GardeningServer/ui/ct-failure-card.html b/Tools/GardeningServer/ui/ct-failure-card.html
index cd15088ce60bf37f2f96621a40119a230b0ade26..9c7d0a5ebd63d6bc11a81bb0741af41fac7fa066 100644
--- a/Tools/GardeningServer/ui/ct-failure-card.html
+++ b/Tools/GardeningServer/ui/ct-failure-card.html
@@ -4,6 +4,7 @@ Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
+<link rel="import" href="../model/ct-builder-list.html">
<link rel="import" href="ct-bot-failure-card.html">
<link rel="import" href="ct-trooper-card.html">
<link rel="import" href="../bower_components/paper-dialog/paper-dialog.html">
@@ -62,7 +63,7 @@ found in the LICENSE file.
</style>
<div class="card {{ { snoozed: group.isSnoozed } | tokenList }}">
<template if="{{ group.data.type == 'sheriff' }}">
- <ct-bot-failure-card class='card' group="{{ group.data }}"></ct-bot-failure-card>
+ <ct-bot-failure-card class='card' group="{{ group.data }}" builderList="{{ _builderList }}"></ct-bot-failure-card>
</template>
<template if="{{ group.data.type != 'sheriff' }}">
<ct-trooper-card class='card' group="{{ group.data }}"></ct-trooper-card>
@@ -95,11 +96,13 @@ found in the LICENSE file.
Polymer({
group: null,
commitLog: null,
+ _builderList: null,
tree: '',
observe: {
group: '_updateCommitList',
- commitLog: '_updateCommitList'
+ commitLog: '_updateCommitList',
+ 'group.data.failures': '_updateBuilderList',
},
examine: function() {
@@ -119,6 +122,11 @@ found in the LICENSE file.
this.group.commitList.update(this.commitLog);
},
+ _updateBuilderList: function() {
+ if (this.group.data.type == 'sheriff')
+ this._builderList = new CTBuilderList(this.group.data.failures);
+ },
+
linkBug: function() {
this.$.bug.value = this.group.bug;
this.$.bugDialog.toggle();
« no previous file with comments | « Tools/GardeningServer/ui/ct-builder-grid.html ('k') | Tools/GardeningServer/ui/test/ct-builder-grid-tests.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698