-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Filtering in Pull Request kept all the time. #13641
Comments
This is a bug. gitea/templates/repo/issue/list.tmpl Line 96 in ad2a288
What we should do is switch to using the same logic the other filters use Lines 128 to 135 in ad2a288
I should be able to make a PR for this later today (or anyone else is welcome to as well!) 🙂 |
If it would be ok I would like to take a look..... |
Absolutely! |
- The URL contains all the time the assignee in cases where once a type has been selected. Signed-off-by: Karl Heinz Marbaise <[email protected]>
…e time. - The URL contains all the time the assignee in cases where once a type has been selected. - The same behaviour was observed issues viewed via milestones. Signed-off-by: Karl Heinz Marbaise <[email protected]>
* Fixes go-gitea#13641 - Filtering in Pull Request kept all the time. - The URL contains all the time the assignee in cases where once a type has been selected. Signed-off-by: Karl Heinz Marbaise <[email protected]> * Followup Fixes go-gitea#13641 - Filtering in Pull Request kept all the time. - The URL contains all the time the assignee in cases where once a type has been selected. - The same behaviour was observed issues viewed via milestones. Signed-off-by: Karl Heinz Marbaise <[email protected]>
* Fixes #13641 - Filtering in Pull Request kept all the time. - The URL contains all the time the assignee in cases where once a type has been selected. Signed-off-by: Karl Heinz Marbaise <[email protected]> * Followup Fixes #13641 - Filtering in Pull Request kept all the time. - The URL contains all the time the assignee in cases where once a type has been selected. - The same behaviour was observed issues viewed via milestones. Signed-off-by: Karl Heinz Marbaise <[email protected]>
Gitea version (or commit ref): 1.14.0+dev-239-gad2a28862
Git version: See try.gitea.io (also 1.13.0-rc2)
Operating system:
Database (use
[x]
):Can you reproduce the bug at https://try.gitea.io:
URL to reproduce: https://try.gitea.io/khmtestorga/testrepo/pulls
Description
If you goto the URL for the pull request you see a list (in this case exactly one) of pull request.
Now you can filter those entries by the Type as shown in the image:
After the selection (as shown next) you will not see any entry which is perfectly fine:
But now the problem arises: If you select from the "Type" ->
All Issues
the result kept empty in contradiction to before cause there was exactly one entry: (See the screen shot):Any selection of the filters does not change the filter given in the URL (as you can see in the last screen shot) which results in not being able to remove all the filters and going back to the beginning with the plain url
https://try.gitea.io/khmtestorga/testrepo/pulls
...which can only be achieved if you manually select a complete different part and going back to pull requests....The point seemed to be that if I select of "Type" -> "Assigned to you" a parameter
assignee=42393
will be added to the URL. But that parameter can not be removed via "Type" -> "All Issues".This can only be achieved if I select from "Assignee" manually "All Assignees" ...
Selecting the "Type->All Issues" could set the
assignee=0
in the URL. This would resolve this inconvenience?The question is: Is this a bug or intended behaviour?
The text was updated successfully, but these errors were encountered: