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

Unified Diff: Tools/GardeningServer/model/ct-sheriff-failure-group-data.html

Issue 476903004: [sheriff-o-matic]: Basic trooper display for sheriff-o-matic. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/model/ct-sheriff-failure-group-data.html
diff --git a/Tools/GardeningServer/model/ct-sheriff-failure-group-data.html b/Tools/GardeningServer/model/ct-sheriff-failure-group-data.html
new file mode 100644
index 0000000000000000000000000000000000000000..e1f3cfc3a8630a5f70a4da52279ab4f4122fab08
--- /dev/null
+++ b/Tools/GardeningServer/model/ct-sheriff-failure-group-data.html
@@ -0,0 +1,31 @@
+<!--
+Copyright 2014 The Chromium Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file.
+-->
+
+<link rel="import" href="ct-commit-list.html">
+
+<script>
+function CTSheriffFailureGroupData(failures, commitList) {
+ this.failures = failures;
+ this.commitList = commitList;
+ this.type = 'sheriff';
+};
+
+CTSheriffFailureGroupData.prototype.getAnnotations = function() {
+ return this.failures.map(function(failure) {
+ return failure.annotations();
+ }).flatten();
+};
+
+CTSheriffFailureGroupData.prototype.dataToExamine = function() {
+ return this.failures;
+};
+
+CTSheriffFailureGroupData.prototype.failureKeys = function() {
+ return this.failures.map(function(failure) {
+ return failure.keys();
+ }).flatten();
+};
+</script>

Powered by Google App Engine
This is Rietveld 408576698