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

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

Issue 448503003: Adds a snooze button to the sheriff-o-matic ui (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="../model/ct-failure.html"> 7 <link rel="import" href="../model/ct-failure.html">
8 <link rel="import" href="../model/ct-failure-group.html">
8 9
9 <polymer-element name="ct-failure-analyzer" attributes="failures builderLatestRe visions"> 10 <polymer-element name="ct-failure-analyzer" attributes="failures builderLatestRe visions">
10 <script> 11 <script>
11 // FIXME: Don't use a polymer component for this. Instead use a Failures mod el 12 // FIXME: Don't use a polymer component for this. Instead use a Failures mod el
12 // object that knows how to do the XHR and process the data appropriately. 13 // object that knows how to do the XHR and process the data appropriately.
13 Polymer({ 14 Polymer({
14 builderLatestRevisions: null, 15 builderLatestRevisions: null,
15 failures: null, 16 failures: null,
16 17
17 // FIXME: Get this from https://chromium.googlesource.com/chromium/tools/b uild/+/master/scripts/slave/gatekeeper_trees.json?format=text. 18 // FIXME: Get this from https://chromium.googlesource.com/chromium/tools/b uild/+/master/scripts/slave/gatekeeper_trees.json?format=text.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 groupedFailures[tree] = []; 111 groupedFailures[tree] = [];
111 groupedFailures[tree].push(new CTFailure(failure.step, failure.reaso n, resultsByBuilder, group.merged_first_failing, group.merged_last_passing)); 112 groupedFailures[tree].push(new CTFailure(failure.step, failure.reaso n, resultsByBuilder, group.merged_first_failing, group.merged_last_passing));
112 }) 113 })
113 }); 114 });
114 115
115 Object.keys(groupedFailures, function(tree, failures) { 116 Object.keys(groupedFailures, function(tree, failures) {
116 failures.sort(this._failureComparator); 117 failures.sort(this._failureComparator);
117 118
118 if (!this.failures[tree]) 119 if (!this.failures[tree])
119 this.failures[tree] = []; 120 this.failures[tree] = [];
120 this.failures[tree].push(failures); 121 // FIXME: Pass a snoozetime argument to CTFailureGroup.
122 this.failures[tree].push(new CTFailureGroup(group.sort_key, failures)) ;
121 }.bind(this)); 123 }.bind(this));
122 }, 124 },
123 }); 125 });
124 </script> 126 </script>
125 </polymer-element> 127 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698