Index: Tools/GardeningServer/ui/ct-failure-analyzer.html |
diff --git a/Tools/GardeningServer/ui/ct-failure-analyzer.html b/Tools/GardeningServer/ui/ct-failure-analyzer.html |
index 93d6980eb6659a7993c1c3781ba869c6cebc3269..3a0a3b11941ada22d62a7f061437893b236ac967 100644 |
--- a/Tools/GardeningServer/ui/ct-failure-analyzer.html |
+++ b/Tools/GardeningServer/ui/ct-failure-analyzer.html |
@@ -8,13 +8,14 @@ found in the LICENSE file. |
<link rel="import" href="../model/ct-failure.html"> |
<link rel="import" href="../model/ct-failure-group.html"> |
-<polymer-element name="ct-failure-analyzer" attributes="failures builderLatestRevisions"> |
+<polymer-element name="ct-failure-analyzer" attributes="failures builderLatestRevisions lastUpdateDate"> |
<script> |
// FIXME: Don't use a polymer component for this. Instead use a Failures model |
// object that knows how to do the XHR and process the data appropriately. |
Polymer({ |
builderLatestRevisions: null, |
failures: null, |
+ lastUpdateDate: null, |
// FIXME: Get this from https://chromium.googlesource.com/chromium/tools/build/+/master/scripts/slave/gatekeeper_trees.json?format=text. |
_trees: { |
@@ -70,6 +71,7 @@ found in the LICENSE file. |
// FIXME: Don't special-case the blink master. |
this.builderLatestRevisions = new CTBuilderRevisions(data.latest_revisions['chromium.webkit']); |
this.failures = {}; |
+ this.lastUpdateDate = new Date(data.date * 1000); |
data.range_groups.forEach(function(group) { |
this._processFailuresForGroup(group, data.alerts, annotations); |
}.bind(this)); |