CandyShop / gerrit

Automatically exported from code.google.com/p/gerrit
Apache License 2.0
1 stars 0 forks source link

Reviewers per revision REST API returns wrong information #3202

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Affected Version: 2.10

What steps will reproduce the problem?
1. curl --silent -X GET 
'https://gerrit-review.googlesource.com/changes/gerrit~master~I2814434bdc5fb0e14
7d96b18b55163ec25164566/revisions/1b404f7e59c36be56e0cd11132adfb8940ebc38e/revie
w'|grep value

What is the expected output? What do you see instead?

The expected out put is that this revision [1] contains one +1 Code-Review and 
one +1 Verified vote. But it contains a +2 Code-Review and a +1 Verified vote. 
I suspect it uses the information from the latest revision (that would match in 
the given example).

[1]: https://gerrit-review.googlesource.com/#/c/63675/2

Original issue reported on code.google.com by volker.m...@gmail.com on 23 Feb 2015 at 3:47

GoogleCodeExporter commented 9 years ago
AFAIK the labels are not stored per revision but per change, so if that's the 
case it will be using the values from the latest revision and this is the 
expected behaviour.

Original comment by david.pu...@sonymobile.com on 26 Feb 2015 at 3:39