--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
> I've developed a number of phyton scripts that pull data from Gerrit
> using the JSON interface. These scripts are very handy when doing code
> reviews for a large group (I can filter for various criteria before
> opening a browser tab for selected commits to review).
>
> What I can't do is access Gerrit data that is shown in the browser
> interface but is not available via the 'gerrit query' command.
> Examples of this are:
> o review comments
> o previous review votes (those that have been replaced by an updated
> vote by a signed in user)
You can get previous patchset votes using the --all-approvals option to gerrit query. Previous votes on the same patchset aren't stored anywhere.
> o lists of reviewers that have not voted
>
> Is there an interface (or hack!) that will allow me to pull in data of
> this sort?
> ... if not... how is this data stored? SQL? Flat file?
> Where is it stored?
> I'm willing to build something (simple) to fetch the data via ssh
To get the review comments and lists of reviewers that haven't voted you'll need to access the SQL database (and you'll need to have access to it). Depending on your installation that database could be PostgreSQL, H2, or MySQL.
Adding further options to 'gerrit query' to return this information would be the preferred method of building something to fetch this data. Contributing those changes to the upstream Gerrit project on review.source.android.com would be further smiled upon. :-)
Nasser
>
> Thank you for any assist,
> Bruce
>
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum
-----Original Message-----
From: Nasser Grainawi [mailto:nas...@codeaurora.org]
Sent: Monday, April 25, 2011 1:48 PM
To: Beare, Bruce J