-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix search by issue type #1914
Fix search by issue type #1914
Conversation
Count(new(Issue)) | ||
case FilterModeCreate: | ||
stats.OpenCount, err = countSession(opts). | ||
And("poster_id = ?", opts.PosterID). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These conditions are already handled in countSession(..)
, so we don't need to repeat them again here.
</span> | ||
<div class="menu"> | ||
<a class="{{if eq .ViewType "all"}}active{{end}} item" href="{{$.Link}}?q={{$.Keyword}}&type=all&sort={{$.SortType}}&state={{$.State}}&labels={{.SelectLabels}}&milestone={{$.MilestoneID}}&assignee={{$.AssigneeID}}">{{.i18n.Tr "repo.issues.filter_type.all_issues"}}</a> | ||
<a class="{{if eq .ViewType "assigned"}}active{{end}} item" href="{{$.Link}}?q={{$.Keyword}}&type=assigned&sort={{$.SortType}}&state={{$.State}}&labels={{.SelectLabels}}&milestone={{$.MilestoneID}}&assignee={{.SignedUser.ID}}">{{.i18n.Tr "repo.issues.filter_type.assigned_to_you"}}</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assignee
param updated to be .Signed.User.ID
(might be hard to tell what the non-whitespace changes are)
Maybe some integration tests. |
@lunny Added an integration test |
357435e
to
4053f83
Compare
It fails on postgresql with error |
4053f83
to
f664256
Compare
@lafriks Fixed |
LGTM |
LGTM |
Fixes #1886.
Other fixes/changes:
GetIssueStats(..)
GetIssueStats(..)