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

Unified Diff: dashboard/dashboard/mr.py

Issue 1549583002: In /graph_json, check internal_only on Test entity and skip test for all Row entities. (Closed) Base URL: https://github.com/catapult-project/catapult@master
Patch Set: Removed purposeful fail for local debugging Created 5 years 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: dashboard/dashboard/mr.py
diff --git a/dashboard/dashboard/mr.py b/dashboard/dashboard/mr.py
index 4650b428c6dabd1d56a2b73a0e425ecc38635bc5..3b1c4f2779cef2f2608de5d35d1e60f279f75d10 100644
--- a/dashboard/dashboard/mr.py
+++ b/dashboard/dashboard/mr.py
@@ -25,6 +25,7 @@ from mapreduce import operation as op
from google.appengine.ext import ndb
+from dashboard import datastore_hooks
from dashboard import layered_cache
from dashboard import request_handler
from dashboard.models import graph_data
@@ -94,6 +95,7 @@ def DeprecateTestsMapper(entity):
return
# Fetch the last row.
+ datastore_hooks.SetPrivilegedRequest()
query = graph_data.Row.query(graph_data.Row.parent_test == entity.key)
query = query.order(-graph_data.Row.timestamp)
last_row = query.get()

Powered by Google App Engine
This is Rietveld 408576698