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

Unified Diff: dashboard/dashboard/speed_releasing.py

Issue 2784983002: Adding public report support. (Closed)
Patch Set: adding a comment Created 3 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/speed_releasing.py
diff --git a/dashboard/dashboard/speed_releasing.py b/dashboard/dashboard/speed_releasing.py
index f7e8c850e3e063ee98390cb84cbc3c447556c17a..74d4deccfd5a07d74e7f32891a8ce1880891dde1 100644
--- a/dashboard/dashboard/speed_releasing.py
+++ b/dashboard/dashboard/speed_releasing.py
@@ -11,6 +11,7 @@ import urllib
from google.appengine.ext import ndb
from dashboard import alerts
+from dashboard.common import datastore_hooks
from dashboard.common import request_handler
from dashboard.common import utils
from dashboard.models import anomaly
@@ -316,6 +317,10 @@ def _UpdateNewestRevInMilestoneDict(bots, tests, milestone_dict):
if bots and tests:
test_path = bots[0] + '/' + tests[0]
test_key = utils.TestKey(test_path)
+ # Need to allow set this request as privileged in order to bypass datastore
+ # hooks. This is okay here because table_config is internal_only protected
+ # and will ensure that only the correct users can see internal_only data.
+ datastore_hooks.SetSinglePrivilegedRequest()
query = graph_data.Row.query()
query = query.filter(
graph_data.Row.parent_test == utils.OldStyleTestKey(test_key))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698