Gerrit 3.7.0 bulk voting

90 views
Skip to first unread message

Cory Todd

unread,
Feb 16, 2023, 5:44:04 PM2/16/23
to Repo and Gerrit Discussion
Hi all,

We are having some trouble with bulk voting and I am hoping it is something I am doing wrong or misunderstanding. This issue affects users without the Code Review permission (we know that Code Review cannot be done in bulk because of [0]).

The scenario is that we a project_foo and two changes change_a and change_b.

- a user selects these two changes from the open changes list using the check boxes
- user clicks vote
- user is give the option to cancel or vote
- user clicks vote (there is no option for -1/+1)
- success message is shown but no votes are cast

Is there a configuration that affects this that I should be looking at?

Dhruv Srivastava

unread,
Feb 17, 2023, 4:35:53 AM2/17/23
to Cory Todd, Repo and Gerrit Discussion
- user clicks vote (there is no option for -1/+1)

User clicks vote when there are no labels shown to them?

Can you attach a screenshot of what the vote dialog looks like?



--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/33563918-e062-4963-9258-b0d57eb1ff04n%40googlegroups.com.

Cory Todd

unread,
Feb 17, 2023, 10:12:52 AM2/17/23
to Dhruv Srivastava, Repo and Gerrit Discussion
Correct, this is what I see

image.png

Dhruv Srivastava

unread,
Feb 17, 2023, 12:35:09 PM2/17/23
to Cory Todd, Repo and Gerrit Discussion
image.png

This is what the dialog is supposed to be, with the warning explaining why CR is not possible.
I am not sure why you do not see this warning.

> - user clicks vote (there is no option for -1/+1)

I am a bit surprised why the user is clicking vote in this case(what are they expecting to happen).
Looking at the dialog, it should be clear that no voting is possible. :)

Nevertheless, it is a bug. Here is the fix. Thanks for reporting. :D

359020: Disable bulk vote flow button if no votes possible | https://gerrit-review.git.corp.google.com/c/gerrit/+/359020



Dhruv Srivastava

unread,
Feb 17, 2023, 12:40:57 PM2/17/23
to Cory Todd, Repo and Gerrit Discussion
Maybe the user does not see the warning because they don't have the permission.
(Should have read closely :D)

Cory Todd

unread,
Feb 17, 2023, 2:01:38 PM2/17/23
to Dhruv Srivastava, Repo and Gerrit Discussion
> This is what the dialog is supposed to be, with the warning explaining why CR is not possible.
> I am not sure why you do not see this warning.
> Maybe the user does not see the warning because they don't have the permission

We see that explanation/warning if the user has Code Review -2/+2 privileges but not -1/+1. 
Permissions seem to be the cause of the missing text problem, thank you :)

> 359020: Disable bulk vote flow button if no votes possible

Under what conditions are bulk votes possible? That's really what we're after here since we deal with pretty 
large patch sets so bulk votes would be a nice feature. I don't have visibility into that bug report to learn more.


Dhruv Srivastava

unread,
Feb 20, 2023, 3:10:54 AM2/20/23
to Cory Todd, Repo and Gerrit Discussion
359020: Disable bulk vote flow button if no votes possible | https://gerrit-review.googlesource.google.com/c/gerrit/+/359020

This URL should work for you. :)

Dhruv Srivastava

unread,
Feb 20, 2023, 3:17:17 AM2/20/23
to Cory Todd, Repo and Gerrit Discussion
359020: Disable bulk vote flow button if no votes possible | https://gerrit-review.googlesource.com/c/gerrit/+/359020 (3rd time's the charm?).

Matthias Sohn

unread,
Feb 20, 2023, 3:47:46 AM2/20/23
to Dhruv Srivastava, Cory Todd, Repo and Gerrit Discussion
I guess you meant

you changed the displayed text but not the URL ;-)

Cory Todd

unread,
Feb 22, 2023, 1:03:48 PM2/22/23
to Matthias Sohn, Dhruv Srivastava, Repo and Gerrit Discussion
Thanks for the url and the quick fix on that! We tested locally and that does disable the vote button for us.

I see now that we would need to introduce some other label against which bulk votes could be cast.
Reply all
Reply to author
Forward
0 new messages