Skip to content

Commit 89bb53d

Browse files
committed
Answered some questions from comments
1 parent 91f207d commit 89bb53d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

routers/user/home.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ func Issues(ctx *context.Context) {
365365
// Org:
366366
// - Remember pre-determined string for later. Will be posted to ctx.Data.
367367
// User:
368-
// - Use ctx.Query("type") to determine filterMode. Q: Can there even be different values in ctx.Query("type")? How?
368+
// - Use ctx.Query("type") to determine filterMode. The type is set when clicking for example "assigned to me" on the overview page.
369369
// - Remember either this or a fallback. Will be posted to ctx.Data.
370370

371371
if ctxUser.IsOrganization() {
@@ -391,8 +391,7 @@ func Issues(ctx *context.Context) {
391391
page = 1
392392
}
393393

394-
// Parse ctx.Query("repos") and remember matched repo IDs for later.
395-
// Q: Where can ctx.Query("repos") be filled? With the given routing, where can a value come from?
394+
// Parse ctx.Query("repos") -- gets set when clicking filters -- and remember matched repo IDs for later.
396395
reposQuery := ctx.Query("repos")
397396
var repoIDs []int64
398397
if len(reposQuery) != 0 {
@@ -509,7 +508,7 @@ func Issues(ctx *context.Context) {
509508
opts.Page = page
510509
opts.PageSize = setting.UI.IssuePagingNum
511510

512-
// Get IDs for labels. Q: What are labels? Where do they come from?
511+
// Get IDs for labels (a filter option for issues/pulls).
513512
// Required for IssuesOptions.
514513
var labelIDs []int64
515514
selectLabels := ctx.Query("labels")

0 commit comments

Comments
 (0)