How to get all code reviews( +1, +2 or whatever) for a particular change or patchset

25 views
Skip to first unread message

Sharath Gupta

unread,
Jun 28, 2016, 2:51:46 PM6/28/16
to Repo and Gerrit Discussion
Hi 

I am developing a plugin which requires this : 
I have an object of the type ChangeInfo(com.google.gerrit.extensions.common.ChangeInfo) and also have the changeID. I need the code reviews by all the reviewers for that particular change. How do I retrieve that.

Thanks in advance

-Sharath

Dave Borowitz

unread,
Jun 28, 2016, 3:28:53 PM6/28/16
to Sharath Gupta, Repo and Gerrit Discussion
How did you get that ChangeInfo? If it came from the extension API, typically what you would do is pass the CURRENT_APPROVALS or ALL_APPROVALS option to ChangeApi#get(EnumSet<ListChangeOption>). Documentation of all the options is here:

--
--
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.
For more options, visit https://groups.google.com/d/optout.

Sharath Gupta

unread,
Jun 28, 2016, 4:37:24 PM6/28/16
to Dave Borowitz, Repo and Gerrit Discussion
I am not able to find the options CURRENT_APPROVALS or ALL_APPROVALS in the document you sent.


Is it that I am missing something ?

-Sharath
--
-Sharath P S
Believe you can and you're halfway there.

Dave Borowitz

unread,
Jun 28, 2016, 4:46:05 PM6/28/16
to Sharath Gupta, Repo and Gerrit Discussion
Sorry, I wrote that from memory and didn't even read the link I sent...you want DETAILED_LABELS
Reply all
Reply to author
Forward
0 new messages