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

Side by Side Diff: appengine/swarming/elements/res/imp/botpage/bot-page-data.html

Issue 2366663003: Use non-proxied links (Closed) Base URL: git@github.com:luci/luci-py@manual-add
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 <!-- 1 <!--
2 Copyright 2016 The LUCI Authors. All rights reserved. 2 Copyright 2016 The LUCI Authors. All rights reserved.
3 Use of this source code is governed under the Apache License, Version 2.0 3 Use of this source code is governed under the Apache License, Version 2.0
4 that can be found in the LICENSE file. 4 that can be found in the LICENSE file.
5 5
6 This in an HTML Import-able file that contains the definition 6 This in an HTML Import-able file that contains the definition
7 of the following elements: 7 of the following elements:
8 8
9 <bot-page-data> 9 <bot-page-data>
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 request: function(){ 132 request: function(){
133 if (!this.bot_id || !this.auth_headers) { 133 if (!this.bot_id || !this.auth_headers) {
134 return; 134 return;
135 } 135 }
136 if (lastRequest) { 136 if (lastRequest) {
137 this.cancelAsync(lastRequest); 137 this.cancelAsync(lastRequest);
138 } 138 }
139 139
140 lastRequest = this.async(function(){ 140 lastRequest = this.async(function(){
141 lastRequest = undefined; 141 lastRequest = undefined;
142 var baseUrl = "/_ah/api/swarming/v1/bot/"+this.bot_id; 142 var baseUrl = "/api/swarming/v1/bot/"+this.bot_id;
143 this._getJsonAsync("_bot", baseUrl + "/get", 143 this._getJsonAsync("_bot", baseUrl + "/get",
144 "_busy1", this.auth_headers); 144 "_busy1", this.auth_headers);
145 // We limit the fields on these two queries to make them faster. 145 // We limit the fields on these two queries to make them faster.
146 this._getJsonAsync("_events", 146 this._getJsonAsync("_events",
147 baseUrl + "/events?fields=items(event_type%2Cmessage%2Cquarantined%2 Ctask_id%2Cts%2Cversion)", 147 baseUrl + "/events?fields=items(event_type%2Cmessage%2Cquarantined%2 Ctask_id%2Cts%2Cversion)",
148 "_busy2", this.auth_headers); 148 "_busy2", this.auth_headers);
149 this._getJsonAsync("_tasks", 149 this._getJsonAsync("_tasks",
150 baseUrl + "/tasks?fields=items(abandoned_ts%2Cbot_version%2Ccomplete d_ts%2Cduration%2Cexit_code%2Cfailure%2Cinternal_failure%2Cmodified_ts%2Cname%2C started_ts%2Cstate%2Ctask_id%2Ctry_number)", 150 baseUrl + "/tasks?fields=items(abandoned_ts%2Cbot_version%2Ccomplete d_ts%2Cduration%2Cexit_code%2Cfailure%2Cinternal_failure%2Cmodified_ts%2Cname%2C started_ts%2Cstate%2Ctask_id%2Ctry_number)",
151 "_busy3", this.auth_headers); 151 "_busy3", this.auth_headers);
152 }, BOT_ID_DEBOUNCE_MS); 152 }, BOT_ID_DEBOUNCE_MS);
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 return b.started_ts - a.started_ts; 254 return b.started_ts - a.started_ts;
255 }); 255 });
256 256
257 return tasks; 257 return tasks;
258 } 258 }
259 259
260 }); 260 });
261 })(); 261 })();
262 </script> 262 </script>
263 </dom-module> 263 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698