Getting old approvals with JSONRPC?

9 views
Skip to first unread message

Jochen Seeber

unread,
Apr 26, 2012, 5:40:07 AM4/26/12
to Repo and Gerrit Discussion
Hi,

we're using JSONRPC to automate Gerrit, and need to access all "old"
approvals, i.e. approvals of patchsets that are not the newest one.

Using ChangeDetailService.changeDetails does not give us those, as it
returns only approvals for the newest patchset. If an earlier change
was reviewed with a +1 by a reviewer, the approvals only contain an
entry with value 0 for the newest patchset, not the +1 for the earlier
patchset.

We also tried using PatchDetailService.userApprovals, but the
approvals array is always empty in the result. Shouldn't this return
all approvals?

If not, is there a way to get the full approval data of older
patchsets?

Regards,
Jochen

Conley Owens

unread,
Apr 26, 2012, 11:52:04 AM4/26/12
to Jochen Seeber, Repo and Gerrit Discussion
Not sure what the best way is, but doing something like this will work:
curl -s "https://android-review.googlesource.com/query?patch-sets=true&comments=true&q=<you-change-id>"
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
Reply all
Reply to author
Forward
0 new messages