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

Unified Diff: scheduler/appengine/ui/common.go

Issue 2949093003: scheduler: more of s/JobID/JobName/ where JobID != Job.JobID. (Closed)
Patch Set: review 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
« no previous file with comments | « scheduler/appengine/ui/acl.go ('k') | scheduler/appengine/ui/invocation.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scheduler/appengine/ui/common.go
diff --git a/scheduler/appengine/ui/common.go b/scheduler/appengine/ui/common.go
index fd0a36136d71e33b2e006ffb8426d0cf25fb7020..65cc44972a592256172959892aa0cea24f36843b 100644
--- a/scheduler/appengine/ui/common.go
+++ b/scheduler/appengine/ui/common.go
@@ -44,16 +44,16 @@ func InstallHandlers(r *router.Router, base router.MiddlewareChain, cfg Config)
r.GET("/", m, indexPage)
r.GET("/jobs/:ProjectID", m, projectPage)
- r.GET("/jobs/:ProjectID/:JobID", m, jobPage)
- r.GET("/jobs/:ProjectID/:JobID/:InvID", m, invocationPage)
+ r.GET("/jobs/:ProjectID/:JobName", m, jobPage)
+ r.GET("/jobs/:ProjectID/:JobName/:InvID", m, invocationPage)
// All POST forms must be protected with XSRF token.
mxsrf := m.Extend(xsrf.WithTokenCheck)
- r.POST("/actions/runJob/:ProjectID/:JobID", mxsrf, runJobAction)
- r.POST("/actions/pauseJob/:ProjectID/:JobID", mxsrf, pauseJobAction)
- r.POST("/actions/resumeJob/:ProjectID/:JobID", mxsrf, resumeJobAction)
- r.POST("/actions/abortJob/:ProjectID/:JobID", mxsrf, abortJobAction)
- r.POST("/actions/abortInvocation/:ProjectID/:JobID/:InvID", mxsrf, abortInvocationAction)
+ r.POST("/actions/runJob/:ProjectID/:JobName", mxsrf, runJobAction)
+ r.POST("/actions/pauseJob/:ProjectID/:JobName", mxsrf, pauseJobAction)
+ r.POST("/actions/resumeJob/:ProjectID/:JobName", mxsrf, resumeJobAction)
+ r.POST("/actions/abortJob/:ProjectID/:JobName", mxsrf, abortJobAction)
+ r.POST("/actions/abortInvocation/:ProjectID/:JobName/:InvID", mxsrf, abortInvocationAction)
}
type configContextKey int
« no previous file with comments | « scheduler/appengine/ui/acl.go ('k') | scheduler/appengine/ui/invocation.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698