-
-
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
Milestone filter for closed issues shows only closed milestones #22411
Comments
Hi, Problem is in model/issues/milestones.go where we have filtering by is_closed depends on state. In /routers/web/repo/issue.go we pass state, so we can chage it to all With all we can filter open and closed issues by all milestones (open and closed) + milestones tab still works ok. EDIT |
Now we have `All milestones`, `No milestones`, `Open milestones` and `Closed milestones`. Fix #11924 Fix #22411 <img width="1166" alt="image" src="https://user-images.githubusercontent.com/81045/212243375-95eea035-a972-44b8-8088-53db614cb07e.png">
Now we have `All milestones`, `No milestones`, `Open milestones` and `Closed milestones`. Fix go-gitea#11924 Fix go-gitea#22411 <img width="1166" alt="image" src="https://user-images.githubusercontent.com/81045/212243375-95eea035-a972-44b8-8088-53db614cb07e.png">
Backport #22423 by @lunny Now we have `All milestones`, `No milestones`, `Open milestones` and `Closed milestones`. Fix #11924 Fix #22411 <img width="1166" alt="image" src="https://user-images.githubusercontent.com/81045/212243375-95eea035-a972-44b8-8088-53db614cb07e.png"> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Description
The issue is somehow related to #11924
We started to use gitea issues and noticed some behavior that could be a bug. It seems that closed issue list allows to filter only by closed milestones. Current opened milestones are not listed there.
Suppose I have pending milestone, which is only partly done. I cannot see which issues are completed from the issue list. Instead I must go to milestones and click on "Closed" link. It's a little bit confusing. I think that filtering closed issues by pending opened milestones is a common operation and should be available.
Please see test issues. Milestones filter is disabled, as there are no closed milestones.
https://try.gitea.io/achikhv/test/issues?q=&type=all&sort=&state=closed&labels=&milestone=0&assignee=0&poster=0
Gitea Version
1.18.0
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Downloaded windows binary and started as windows service.
Database
MSSQL
The text was updated successfully, but these errors were encountered: