Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
41688046
Commit
41688046
authored
Jul 30, 2012
by
David Symonds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc/dashboard/codereview: bump user-specific table limits to 100.
R=rsc CC=golang-dev
https://golang.org/cl/6457051
parent
538b2122
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
front.go
misc/dashboard/codereview/dashboard/front.go
+5
-2
No files found.
misc/dashboard/codereview/dashboard/front.go
View file @
41688046
...
@@ -24,6 +24,9 @@ func init() {
...
@@ -24,6 +24,9 @@ func init() {
http
.
HandleFunc
(
"/favicon.ico"
,
http
.
NotFound
)
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
)
{
func
handleFront
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
c
:=
appengine
.
NewContext
(
r
)
c
:=
appengine
.
NewContext
(
r
)
...
@@ -55,7 +58,7 @@ func handleFront(w http.ResponseWriter, r *http.Request) {
...
@@ -55,7 +58,7 @@ func handleFront(w http.ResponseWriter, r *http.Request) {
if
data
.
UserIsReviewer
{
if
data
.
UserIsReviewer
{
tableFetch
(
0
,
func
(
tbl
*
clTable
)
error
{
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
.
Title
=
"CLs assigned to you for review"
tbl
.
Assignable
=
true
tbl
.
Assignable
=
true
_
,
err
:=
q
.
GetAll
(
c
,
&
tbl
.
CLs
)
_
,
err
:=
q
.
GetAll
(
c
,
&
tbl
.
CLs
)
...
@@ -64,7 +67,7 @@ func handleFront(w http.ResponseWriter, r *http.Request) {
...
@@ -64,7 +67,7 @@ func handleFront(w http.ResponseWriter, r *http.Request) {
}
}
tableFetch
(
1
,
func
(
tbl
*
clTable
)
error
{
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
.
Title
=
"CLs sent by you"
tbl
.
Assignable
=
true
tbl
.
Assignable
=
true
_
,
err
:=
q
.
GetAll
(
c
,
&
tbl
.
CLs
)
_
,
err
:=
q
.
GetAll
(
c
,
&
tbl
.
CLs
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment