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

Unified Diff: Tools/GardeningServer/ui/ct-sheriff-o-matic.html

Issue 728023004: Remove GardeningServer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « Tools/GardeningServer/ui/ct-router.html ('k') | Tools/GardeningServer/ui/ct-step-failure-card.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/ui/ct-sheriff-o-matic.html
diff --git a/Tools/GardeningServer/ui/ct-sheriff-o-matic.html b/Tools/GardeningServer/ui/ct-sheriff-o-matic.html
deleted file mode 100644
index 775597fd3bb19c7a9c4c32dc33c44b3a0fcf4705..0000000000000000000000000000000000000000
--- a/Tools/GardeningServer/ui/ct-sheriff-o-matic.html
+++ /dev/null
@@ -1,151 +0,0 @@
-<!--
-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="../lib/sugar.html">
-<script src="../scripts/results.js"></script>
-
-<link rel="import" href="../bower_components/core-animated-pages/core-animated-pages.html">
-<link rel="import" href="../bower_components/core-animated-pages/transitions/slide-from-right.html">
-<link rel="import" href="../lib/analytics.html">
-<link rel="import" href="../lib/ct-scheduled-updater.html">
-<link rel="import" href="../model/ct-commit-log.html">
-<link rel="import" href="../model/ct-failures.html">
-<link rel="import" href="../model/ct-tree-list.html">
-<link rel="import" href="ct-results-panel.html">
-<link rel="import" href="ct-router.html">
-<link rel="import" href="ct-tree-select.html">
-<link rel="import" href="ct-unexpected-failures.html">
-<link rel="import" href="ct-view.html">
-<link rel="import" href="ct-view-handler.html">
-
-<polymer-element name="ct-sheriff-o-matic">
- <template>
- <style>
- :host {
- display: flex;
- flex-direction: column;
- height: 100%;
- }
- header {
- -webkit-user-select: none;
- align-items: center;
- background-color: #212121;
- color: white;
- cursor: default;
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- font-size: 1.1em;
- padding: 0 5px;
- white-space: nowrap;
- }
- header span {
- color: white;
- display: inline-block;
- padding: 0.25em 4px;
- text-decoration: none;
- }
- #right-toolbar {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- }
- ct-last-updated {
- margin: 0 5px;
- }
- core-animated-pages {
- flex: 1;
- }
- core-animated-pages > * {
- overflow: auto;
- }
- ct-router {
- flex: 1;
- }
- </style>
- <ct-view-handler></ct-view-handler>
-
- <header>
- <div>
- <a href="{{ tree }}"><img src="../favicon.ico"> <span>Sheriff-o-matic</span></a>
- </div>
- <div id="right-toolbar">
- <ct-last-updated date="{{ failures.lastUpdateDate }}"></ct-last-updated>
- <ct-tree-select tree="{{ tree }}" treeList="{{ treeList }}"></ct-tree-select>
- </div>
- </header>
-
- <ct-router id="router" defaultPath="{{ _defaultPath }}">
- <ct-view path="/{tree}" default>
- <ct-unexpected-failures id="unexpected" tree="{{ tree }}" commitLog="{{ commitLog }}" failures="{{ failures }}"></ct-unexpected-failures>
- </ct-view>
- <ct-view path="/{tree}/failure/{failureGroupKey}">
- <ct-results-panel id="resultsPanel" group="{{ examinedFailureGroup }}" failureGroupKey="{{ failureGroupKey }}" tree="{{ tree }}"></ct-results-panel>
- </ct-view>
- </ct-router>
- </template>
- <script>
- var kUpdateFrequency = 1000 * 30;
-
- Polymer({
- tree: '',
- treeList: null,
- examinedFailureGroup: null,
- _pendingFailureGroupKey: '',
-
- created: function() {
- this.treeList = new CTTreeList();
- this._defaultPath = '/' + this.treeList.defaultValue();
- this.commitLog = new CTCommitLog();
- this.failures = new CTFailures(this.commitLog);
- this._updater = new CTScheduledUpdater(this.update.bind(this), kUpdateFrequency);
- this._analytics = new Analytics('UA-55762617-1');
- },
-
- ready: function() {
- this.update();
- },
-
- update: function() {
- if (this._promise)
- return;
-
- this._promise = Promise.all(
- [this.commitLog.update(),
- this.failures.update()]).then(this._updateCompleted.bind(this));
- },
-
- failureGroupKeyChanged: function() {
- this.examinedFailureGroup = null;
- this._pendingFailureGroupKey = this.failureGroupKey;
- this._updateCompleted();
- },
-
- _updateCompleted: function() {
- this._promise = null;
- this.$.unexpected.update();
-
- if (!this.failures.failures)
- return;
- if (!this._pendingFailureGroupKey)
- return;
-
- this.examinedFailureGroup = this.failures.failures[this.tree].find(function(group) {
- return group.key == this._pendingFailureGroupKey;
- }.bind(this));
-
- if (!this.examinedFailureGroup) {
- this.asyncFire('navigate', {
- url: this.tree,
- replaceState: true
- });
- }
-
- this._pendingFailureGroupKey = '';
- },
- });
- </script>
-</polymer-element>
« no previous file with comments | « Tools/GardeningServer/ui/ct-router.html ('k') | Tools/GardeningServer/ui/ct-step-failure-card.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698