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

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: Use defaultdict 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..8eadfa16fc5a7f218aa52827fec45547f2dd346f 100644
--- a/appengine_scripts/skia-tree-status/skia_telemetry.py
+++ b/appengine_scripts/skia-tree-status/skia_telemetry.py
@@ -6,6 +6,7 @@
import base64
+import collections
import datetime
import json
import urllib2
@@ -635,6 +636,18 @@ 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 = collections.defaultdict(list)
+ for pageset, builds in repos.iteritems():
+ 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