File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -365,7 +365,7 @@ func Issues(ctx *context.Context) {
365
365
// Org:
366
366
// - Remember pre-determined string for later. Will be posted to ctx.Data.
367
367
// 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.
369
369
// - Remember either this or a fallback. Will be posted to ctx.Data.
370
370
371
371
if ctxUser .IsOrganization () {
@@ -391,8 +391,7 @@ func Issues(ctx *context.Context) {
391
391
page = 1
392
392
}
393
393
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.
396
395
reposQuery := ctx .Query ("repos" )
397
396
var repoIDs []int64
398
397
if len (reposQuery ) != 0 {
@@ -509,7 +508,7 @@ func Issues(ctx *context.Context) {
509
508
opts .Page = page
510
509
opts .PageSize = setting .UI .IssuePagingNum
511
510
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).
513
512
// Required for IssuesOptions.
514
513
var labelIDs []int64
515
514
selectLabels := ctx .Query ("labels" )
You can’t perform that action at this time.
0 commit comments