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

Unified Diff: appengine_scripts/skia-tree-status/skia_telemetry.py

Issue 1214213002: Add get_skp_repos endpoint to skia-telemetry (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « appengine_scripts/skia-tree-status/main.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine_scripts/skia-tree-status/skia_telemetry.py
diff --git a/appengine_scripts/skia-tree-status/skia_telemetry.py b/appengine_scripts/skia-tree-status/skia_telemetry.py
index 7787037679bdf873d54d7cc895da3cd4ddc881ce..8ce8788e6f1503222643568ef77a817aa7724c0f 100644
--- a/appengine_scripts/skia-tree-status/skia_telemetry.py
+++ b/appengine_scripts/skia-tree-status/skia_telemetry.py
@@ -635,6 +635,19 @@ class LuaScriptPage(BasePage):
self.DisplayTemplate('lua_script.html', template_values)
+class GetSKPRepos(BasePage):
+ """Returns the recently-created SKP repositories in JSON format."""
+ def get(self):
+ self.response.headers['Content-Type'] = 'application/json'
+ repos = get_skp_pagesets_to_builds()
+ rv = {}
rmistry 2015/06/29 18:33:55 rv = collections.defaultdict(list) then line 645 c
borenet 2015/06/29 18:50:41 Done.
+ for pageset, builds in repos.iteritems():
+ rv[pageset] = []
+ for chrome_rev, skia_rev, dt in builds:
+ rv[pageset].append((chrome_rev, skia_rev, dt.__str__()))
+ json.dump(rv, self.response.out)
+
+
class ChromiumBuildsPage(BasePage):
"""Allows users to add and delete new chromium builds to the framework."""
« no previous file with comments | « appengine_scripts/skia-tree-status/main.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698