]> Cypherpunks repositories - gostls13.git/commitdiff
misc/dashboard/codereview: bump user-specific table limits to 100.
authorDavid Symonds <dsymonds@golang.org>
Mon, 30 Jul 2012 04:11:51 +0000 (14:11 +1000)
committerDavid Symonds <dsymonds@golang.org>
Mon, 30 Jul 2012 04:11:51 +0000 (14:11 +1000)
R=rsc
CC=golang-dev
https://golang.org/cl/6457051

misc/dashboard/codereview/dashboard/front.go

index 5c3a88b136ce91d93b26a287552301fbb6beb859..b55d570f6f20308499759d4f5f66ce06fba99953 100644 (file)
@@ -24,6 +24,9 @@ func init() {
        http.HandleFunc("/favicon.ico", http.NotFound)
 }
 
+// maximum number of active CLs to show in person-specific tables.
+const maxCLs = 100
+
 func handleFront(w http.ResponseWriter, r *http.Request) {
        c := appengine.NewContext(r)
 
@@ -55,7 +58,7 @@ func handleFront(w http.ResponseWriter, r *http.Request) {
 
        if data.UserIsReviewer {
                tableFetch(0, func(tbl *clTable) error {
-                       q := activeCLs.Filter("Reviewer =", currentPerson).Limit(50)
+                       q := activeCLs.Filter("Reviewer =", currentPerson).Limit(maxCLs)
                        tbl.Title = "CLs assigned to you for review"
                        tbl.Assignable = true
                        _, err := q.GetAll(c, &tbl.CLs)
@@ -64,7 +67,7 @@ func handleFront(w http.ResponseWriter, r *http.Request) {
        }
 
        tableFetch(1, func(tbl *clTable) error {
-               q := activeCLs.Filter("Author =", currentPerson).Limit(50)
+               q := activeCLs.Filter("Author =", currentPerson).Limit(maxCLs)
                tbl.Title = "CLs sent by you"
                tbl.Assignable = true
                _, err := q.GetAll(c, &tbl.CLs)