-
-
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
Add Approval Counts to pulls list #10238
Add Approval Counts to pulls list #10238
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10238 +/- ##
==========================================
+ Coverage 43.66% 43.69% +0.02%
==========================================
Files 587 587
Lines 82183 82252 +69
==========================================
+ Hits 35886 35940 +54
- Misses 41843 41861 +18
+ Partials 4454 4451 -3
Continue to review full report at Codecov.
|
Should we add this to |
Add simple approvals counts to pulls lists
579edf1
to
cf2e82e
Compare
OK I think I'm gonna stop where I am. Realistically for simplicity we should have a column on the pulls which is set to whether they're ready to merge or not - but this is better than the current situation. @jaqra I'm not sure about the milestones page, conflicting files are not listed on there at present so I didn't copy this. |
The problem is still there when a non-official reviewer approved at first but then rejected. @zeripath |
@lunny as per #9055 only one "official" review per user is counted; approvals and rejections are mutually exclusive. Lines 290 to 299 in 9f1f2e6
|
@guillep2k But that only for official reviewer. For non-official reviewer, it always keeps false. |
Now I see what you mean. Yes, the counts will be off like this. Maybe if only official counts are displayed? |
@guillep2k Only official counts is reasonable. |
I confess the reason it's not there is because I forgot about that page! 😀 |
@zeripath because of limitations in the way unofficial reviews are accounted, this PR will be displaying wrong information about them at its current state. If you could limit this PR as to only care about official reviews, then it would be proper; unofficial reviews could be fixed another time. DetailsThere are "official" reviewers and there are "official" reviews. Unfortunately the word "official" is used differently in each case. An "official" review is the latest review from a whitelisted user. Any other review is "unofficial", no matter who posted it. Currently, the following happens when a review is added:
So, the "official" pool of reviews has exactly one approval or rejection from each reviewing whitelisted user. The "unofficial" pool contains all the other reviews, even outdated, mixing up indiscriminatedly approvals and rejections from all users, including whitelisted. |
Thanks @guillep2k to clarify. That's really what I mean. :( |
We should be replacing the approval/rejection for non-official reviewers at the time of approval. I'll hide the non-official counts. |
I predict that within 1 week of this being merged without display of non-official reviewers we will get bug-reports stating that their reviews are not being shown. |
OK so it looks like the bulk of |
OK I've updated the milestones page - however this needs better thought as it mixes Issues and PRs in one list too. - That can be done as another PR I think |
|
Make lg-tm work |
…ists also change icon for review requests to eye
…10756) * add request review feature in pull request add a way to notify specific reviewers to review like github , by add or delet a special type review . The acton is is similar to Assign , so many code reuse the function and items of Assignee, but the meaning and result is different. The Permission style is is similar to github, that only writer can add a review request from Reviewers, but the poster can recall and remove a review request after a reviwer has revied even if he don't have Write Premission. only manager , the poster and reviewer of a request review can remove it. The reviewers can be requested to review contain all readers for private repo , for public, contain all writers and watchers. The offical Review Request will block merge if Reject can block it. an other change: add ui otify for Assignees. Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Lauris BH <lauris@nix.lv> Signed-off-by: a1012112796 <1012112796@qq.com> * new change * add placeholder string * do some changes follow #10238 to add review requests num on lists also change icon for review requests to eye Co-authored-by: Lauris BH <lauris@nix.lv>
…o-gitea#10756) * add request review feature in pull request add a way to notify specific reviewers to review like github , by add or delet a special type review . The acton is is similar to Assign , so many code reuse the function and items of Assignee, but the meaning and result is different. The Permission style is is similar to github, that only writer can add a review request from Reviewers, but the poster can recall and remove a review request after a reviwer has revied even if he don't have Write Premission. only manager , the poster and reviewer of a request review can remove it. The reviewers can be requested to review contain all readers for private repo , for public, contain all writers and watchers. The offical Review Request will block merge if Reject can block it. an other change: add ui otify for Assignees. Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Lauris BH <lauris@nix.lv> Signed-off-by: a1012112796 <1012112796@qq.com> * new change * add placeholder string * do some changes follow go-gitea#10238 to add review requests num on lists also change icon for review requests to eye Co-authored-by: Lauris BH <lauris@nix.lv>
Add simple approvals counts to pulls lists
As #9274 appears to have slightly stalled this PR adds simple approvals counts to the pull lists.