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

Unified Diff: appengine/swarming/elements/res/js/alias.js

Issue 2338273004: Process data in task-page-data (Closed) Base URL: git@github.com:luci/luci-py@stub-task2
Patch Set: Apply aliases to dimensions 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 side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/elements/res/js/alias.js
diff --git a/appengine/swarming/elements/res/js/alias.js b/appengine/swarming/elements/res/js/alias.js
index a8e04d90cba45b24b71e3ceb7f794455843ff36c..b7b006b4b0f8fff669b473f2caac96cb7875cc82 100644
--- a/appengine/swarming/elements/res/js/alias.js
+++ b/appengine/swarming/elements/res/js/alias.js
@@ -82,6 +82,10 @@ this.swarming.alias = this.swarming.alias || (function(){
return orig;
};
+ alias.has = function(type) {
+ return !!aliasMap[type];
+ };
+
alias.gpu = function(gpu) {
return GPU_ALIASES[gpu] || UNKNOWN;
};

Powered by Google App Engine
This is Rietveld 408576698