| Index: appengine/swarming/ui/res/imp/tasklist/task-list-data.html
|
| diff --git a/appengine/swarming/ui/res/imp/tasklist/task-list-data.html b/appengine/swarming/ui/res/imp/tasklist/task-list-data.html
|
| index c42a8c696f1a0e5d6990a4d6544a397f2c68f9f6..1b3b83be9094870105fe15277b19058fe088beff 100644
|
| --- a/appengine/swarming/ui/res/imp/tasklist/task-list-data.html
|
| +++ b/appengine/swarming/ui/res/imp/tasklist/task-list-data.html
|
| @@ -30,7 +30,14 @@
|
| For a full list of dimensions in the fleet, see the API call:
|
| https://[swarming_url]/api/swarming/v1/bots/dimensions
|
| // outputs
|
| + dimensions: Array<String>, of all valid dimensions.
|
| tasks: Array<Object>, all tasks returned by the server.
|
| + primary_map: Object, a mapping of primary keys to secondary items.
|
| + The primary keys are things that can be columns or sorted by. The
|
| + primary values (aka the secondary items) are things that can be filtered
|
| + on. Primary consists of tags and state. Secondary contains the
|
| + values primary things can be.
|
| + primary_arr: Array<String>, the display order of the primary keys.
|
|
|
| Methods:
|
| signIn(): Force a signin of the user using OAuth. This happens
|
| @@ -47,6 +54,8 @@
|
| <script>
|
| (function(){
|
| var TIMES = ["abandoned_ts", "completed_ts", "created_ts", "modified_ts", "started_ts"];
|
| + var BLACKLIST_DIMENSIONS = ["quarantined", "error"];
|
| +
|
| Polymer({
|
| is: 'task-list-data',
|
|
|
| @@ -74,6 +83,11 @@
|
| computed: "_or(_busy2,_busy1)",
|
| notify: true,
|
| },
|
| + dimensions: {
|
| + type: Array,
|
| + computed: "_makeArray(_dimensions)",
|
| + notify: true,
|
| + },
|
| primary_map: {
|
| type: Object,
|
| computed: "_primaryMap(_tags,_dimensions,tasks.*)",
|
| @@ -113,6 +127,21 @@
|
| "_busy1", this.auth_headers);
|
| },
|
|
|
| + _makeArray: function(dimObj) {
|
| + if (!dimObj || !dimObj.bots_dimensions) {
|
| + return [];
|
| + }
|
| + var dims = [];
|
| + dimObj.bots_dimensions.forEach(function(d){
|
| + if (BLACKLIST_DIMENSIONS.indexOf(d.key) === -1) {
|
| + dims.push(d.key);
|
| + }
|
| + });
|
| + dims.push("id");
|
| + dims.sort();
|
| + return dims;
|
| + },
|
| +
|
| _primaryArr: function(map) {
|
| var arr = Object.keys(map);
|
| arr.sort();
|
|
|