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

Side by Side Diff: milo/appengine/frontend/config.go

Issue 2760873003: Milo: Use luci-config for storing buildbot acls (Closed)
Patch Set: Fix tests 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 unified diff | Download patch
« no previous file with comments | « milo/appengine/common/config_test.go ('k') | milo/appengine/frontend/cron.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The LUCI Authors. All rights reserved. 1 // Copyright 2015 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package frontend 5 package frontend
6 6
7 import ( 7 import (
8 "net/http" 8 "net/http"
9 9
10 "github.com/luci/luci-go/common/logging" 10 "github.com/luci/luci-go/common/logging"
(...skipping 11 matching lines...) Expand all
22 "Error while getting projects: "+err.Error()) 22 "Error while getting projects: "+err.Error())
23 return 23 return
24 } 24 }
25 25
26 templates.MustRender(c.Context, c.Writer, "pages/config.html", templates .Args{ 26 templates.MustRender(c.Context, c.Writer, "pages/config.html", templates .Args{
27 "Projects": projects, 27 "Projects": projects,
28 }) 28 })
29 } 29 }
30 30
31 // UpdateHandler is an HTTP handler that handles configuration update requests. 31 // UpdateHandler is an HTTP handler that handles configuration update requests.
32 func UpdateHandler(ctx *router.Context) { 32 // TODO(hinoka): Migrate to cfgclient and remove this.
33 func UpdateConfigHandler(ctx *router.Context) {
33 c, h := ctx.Context, ctx.Writer 34 c, h := ctx.Context, ctx.Writer
34 » err := common.Update(c) 35 » err := common.UpdateProjectConfigs(c)
35 if err != nil { 36 if err != nil {
36 logging.WithError(err).Errorf(c, "Update Handler encountered err or") 37 logging.WithError(err).Errorf(c, "Update Handler encountered err or")
37 h.WriteHeader(500) 38 h.WriteHeader(500)
38 } 39 }
39 logging.Infof(c, "Successfully completed") 40 logging.Infof(c, "Successfully completed")
40 h.WriteHeader(200) 41 h.WriteHeader(200)
41 } 42 }
OLDNEW
« no previous file with comments | « milo/appengine/common/config_test.go ('k') | milo/appengine/frontend/cron.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698