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

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

Issue 485253004: [Sheriff-o-matic] Remove race condition on the commit list. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!-- 1 <!--
2 Copyright 2014 The Chromium Authors. All rights reserved. 2 Copyright 2014 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. 4 found in the LICENSE file.
5 --> 5 -->
6 6
7 <link rel="import" href="ct-builder-grid.html"> 7 <link rel="import" href="ct-builder-grid.html">
8 <link rel="import" href="ct-commit-list.html"> 8 <link rel="import" href="ct-commit-list.html">
9 <link rel="import" href="ct-test-list.html"> 9 <link rel="import" href="ct-test-list.html">
10 <link rel="import" href="../bower_components/paper-dialog/paper-dialog.html"> 10 <link rel="import" href="../bower_components/paper-dialog/paper-dialog.html">
11 <link rel="import" href="../bower_components/paper-dialog/paper-dialog-transitio n.html"> 11 <link rel="import" href="../bower_components/paper-dialog/paper-dialog-transitio n.html">
12 <link rel="import" href="../bower_components/paper-input/paper-input.html"> 12 <link rel="import" href="../bower_components/paper-input/paper-input.html">
13 13
14 <polymer-element name="ct-failure-card" attributes="group commits tree bug"> 14 <polymer-element name="ct-failure-card" attributes="group commitLog tree bug">
15 <template> 15 <template>
16 <style> 16 <style>
17 :host { 17 :host {
18 display: flex; 18 display: flex;
19 } 19 }
20 20
21 /* FIXME: All this paper-button styling should go in a cr-button component so that 21 /* FIXME: All this paper-button styling should go in a cr-button component so that
22 we can use buttons in different places and have them all look the same. */ 22 we can use buttons in different places and have them all look the same. */
23 paper-button { 23 paper-button {
24 -webkit-user-select: none; 24 -webkit-user-select: none;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 <paper-dialog heading="Enter bug number" transition="paper-transition-center " id="bugDialog"> 90 <paper-dialog heading="Enter bug number" transition="paper-transition-center " id="bugDialog">
91 <paper-input label="Bug# or URL" floatingLabel autofocus id="bug"></paper- input> 91 <paper-input label="Bug# or URL" floatingLabel autofocus id="bug"></paper- input>
92 <paper-button label="Remove bug link" on-tap="{{ removeBug }}" dismissive id="dialogRemoveBug"></paper-button> 92 <paper-button label="Remove bug link" on-tap="{{ removeBug }}" dismissive id="dialogRemoveBug"></paper-button>
93 <paper-button label="OK" on-tap="{{ saveBug }}" affirmative id="dialogOk"> </paper-button> 93 <paper-button label="OK" on-tap="{{ saveBug }}" affirmative id="dialogOk"> </paper-button>
94 </paper-dialog> 94 </paper-dialog>
95 </template> 95 </template>
96 <script> 96 <script>
97 Polymer({ 97 Polymer({
98 group: null, 98 group: null,
99 commits: null, 99 commitLog: null,
100 tree: '', 100 tree: '',
101 101
102 examine: function() { 102 examine: function() {
103 this.fire('ct-examine-failures', this.group); 103 this.fire('ct-examine-failures', this.group);
104 }, 104 },
105 105
106 snooze: function() { 106 snooze: function() {
107 this.group.snoozeUntil(Date.now() + 60 * 60 * 1000); 107 this.group.snoozeUntil(Date.now() + 60 * 60 * 1000);
108 }, 108 },
109 109
110 unsnooze: function() { 110 unsnooze: function() {
111 this.group.unsnooze(); 111 this.group.unsnooze();
112 }, 112 },
113 113
114 _commits: function() { 114 _commits: function() {
115 if (!this.group) 115 if (!this.group)
116 return undefined; 116 return undefined;
117 return this.group.commitList(this.commits); 117 return this.group.commitList(this.commitLog);
ojan 2014/08/20 18:47:51 Can you add a test that would have broken in the o
Mathieu 2014/08/21 14:08:21 Done.
118 }, 118 },
119 119
120 linkBug: function() { 120 linkBug: function() {
121 this.$.bug.value = this.group.bug; 121 this.$.bug.value = this.group.bug;
122 this.$.bugDialog.toggle(); 122 this.$.bugDialog.toggle();
123 }, 123 },
124 124
125 saveBug: function() { 125 saveBug: function() {
126 this.group.setBug(this.$.bug.value); 126 this.group.setBug(this.$.bug.value);
127 }, 127 },
128 128
129 removeBug: function() { 129 removeBug: function() {
130 this.group.clearBug(); 130 this.group.clearBug();
131 }, 131 },
132 }); 132 });
133 </script> 133 </script>
134 </polymer-element> 134 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698