10000 Allow filtering issues by any assignee by asvanberg · Pull Request #33343 · go-gitea/gitea · GitHub
[go: up one dir, main page]

Skip to content

Allow filtering issues by any assignee #33343

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

Merged
merged 15 commits into from
Mar 21, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Populate indexer search options correctly when filtering for any assi…
…gnee
  • Loading branch information
asvanberg committed Feb 24, 2025
commit 520d29ce347f7aa44385e136ab89589b7ff5bb6e
2 changes: 2 additions & 0 deletions modules/indexer/issues/dboptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ func ToSearchOptions(keyword string, opts *issues_model.IssuesOptions) *SearchOp

if opts.AssigneeID.Value() == db.NoConditionID {
searchOpt.AssigneeID = optional.Some[int64](0) // FIXME: this is inconsistent from other places, 0 means "no assignee"
} else if opts.AssigneeID.Value() == db.AnyConditionID {
searchOpt.AnyAssigneeOnly = true
} else if opts.AssigneeID.Value() != 0 {
searchOpt.AssigneeID = opts.AssigneeID
}
Expand Down
Loading
0