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

Unified Diff: milo/frontend/config.go

Issue 2955223002: Milo: Buildbucket PubSub ingestion outline (Closed)
Patch Set: Created 3 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
Index: milo/frontend/config.go
diff --git a/milo/frontend/config.go b/milo/frontend/config.go
index 5f09ac28ed2dda7bf8251655462af8e3fff6291a..2a17f2aa70f42bf49616180c2431e4f01ac4850b 100644
--- a/milo/frontend/config.go
+++ b/milo/frontend/config.go
@@ -8,6 +8,7 @@ import (
"net/http"
"cloud.google.com/go/datastore"
+ "google.golang.org/appengine"
"github.com/luci/luci-go/common/logging"
"github.com/luci/luci-go/milo/common"
@@ -41,6 +42,8 @@ func ConfigsHandler(c *router.Context) {
// UpdateHandler is an HTTP handler that handles configuration update requests.
func UpdateConfigHandler(ctx *router.Context) {
c, h := ctx.Context, ctx.Writer
+ // Needed to access the PubSub API
+ c = appengine.WithContext(c, ctx.Request)
projErr := common.UpdateProjectConfigs(c)
if projErr != nil {
logging.WithError(projErr).Errorf(c, "project update handler encountered error")
« milo/common/pubsub.go ('K') | « milo/common/pubsub.go ('k') | milo/frontend/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698