[BUG] Reviews not corect sorted to pulls in Pull-List-View #5228

Closed
opened 2025-11-02 06:18:30 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @6543 on GitHub (Apr 13, 2020).

Gitea Version: 1.12.0+dev-72-g2c25e75dc

example pull https://gitea.com/gitnex/GitNex/pulls/398
has 1 aprofal and 1 rejection on pull-list-view but rejection was aproved later from same user

Originally created by @6543 on GitHub (Apr 13, 2020). Gitea Version: 1.12.0+dev-72-g2c25e75dc example pull https://gitea.com/gitnex/GitNex/pulls/398 has 1 aprofal and 1 rejection on pull-list-view but rejection was aproved later from same user
GiteaMirror added the type/bug label 2025-11-02 06:18:30 -06:00
Author
Owner

@6543 commented on GitHub (Apr 13, 2020):

Screenshot at 2020-04-13 04-27-10

does not match with

Screenshot at 2020-04-13 04-27-22

@6543 commented on GitHub (Apr 13, 2020): ![Screenshot at 2020-04-13 04-27-10](https://user-images.githubusercontent.com/24977596/79087310-1f507680-7d3f-11ea-8b00-449bcd844112.png) ## does not match with ![Screenshot at 2020-04-13 04-27-22](https://user-images.githubusercontent.com/24977596/79087312-224b6700-7d3f-11ea-903d-19c20b19a925.png)
Author
Owner

@6543 commented on GitHub (Apr 13, 2020):

same thing if you only aprove ... I guess: approvals are als counted as change-requests - didn't looket ito the code jet

@6543 commented on GitHub (Apr 13, 2020): same thing if you only aprove ... I guess: approvals are als counted as change-requests - didn't looket ito the code jet
Author
Owner

@6543 commented on GitHub (Apr 14, 2020):

cant reproduce on current master - looks like the pull for review-request fixed this

@6543 commented on GitHub (Apr 14, 2020): cant reproduce on current master - looks like the pull for review-request fixed this
Author
Owner

@6543 commented on GitHub (Apr 15, 2020):

Looks like issue is till here :/

@6543 commented on GitHub (Apr 15, 2020): Looks like issue is till here :/
Author
Owner

@6543 commented on GitHub (Apr 15, 2020):

as "eider" pointed out on discord:
80db44267c/models/issue_list.go (L538)

if i force search to give me only one PR
the count is fine
but if in list there's at least one other issue
with requested change
the count goes to wrong issue
the "1 change request"
should go to other issue in list
but it isnt there!
@6543 commented on GitHub (Apr 15, 2020): as "eider" pointed out on discord: https://github.com/go-gitea/gitea/blob/80db44267ccb688c596e8375523af5cd92864d87/models/issue_list.go#L538 ``` if i force search to give me only one PR the count is fine but if in list there's at least one other issue with requested change the count goes to wrong issue the "1 change request" should go to other issue in list but it isnt there! ```
Author
Owner
@CirnoT commented on GitHub (Apr 15, 2020): Reproduction: https://try.gitea.io/test_org21/test_repo/pulls https://try.gitea.io/test_org21/test_repo/pulls?q=LICENSE https://try.gitea.io/test_org21/test_repo/pulls?q=README.md https://try.gitea.io/test_org21/test_repo/pulls?q=.gitignore
Author
Owner

@6543 commented on GitHub (Apr 16, 2020):

I'll take this

@6543 commented on GitHub (Apr 16, 2020): I'll take this
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5228