[LLVMdev] Bugzilla REST API?

Sean Silva silvas at purdue.edu
Thu Nov 7 21:56:04 PST 2013


On Thu, Nov 7, 2013 at 4:58 PM, Daniel Dunbar <daniel at zuster.org> wrote:

> I don't know the answer to this question, but I've attached an (old)
> version of pybugz that I tweaked a little to work with LLVM bugzilla. You
> can probably write such queries on top of this if you feel like figuring
> out its API:
>


Thanks. Looks like most of the pages have some way to get them to spit out
XML. Not quite as nice as a (well-documented) JSON REST API, but it's
workable.

I guess the REST API is a newer feature and our bugzilla is just old?

-- Sean Silva


> --
>
> $ ./bugz get -n 1000
>
>  * Using http://llvm.org/bugs/
>
>  * Getting bug 1000 ..
>
> Title       : Chris Is Buggy
>
> Assignee    : tonic
>
> Reported    : 2006-11-10 18:40:00 -0600
>
> Updated     : 2011-05-24 11:55:13 -0500
>
> Status      : RESOLVED
>
> Resolution  : WONTFIX
>
> Severity    : normal
>
> Priority    : P
>
> Reporter    : rspencer
>
> Version     : trunk
>
> Platform    : All
>
> OS          : All
>
> Product     : tools
>
> Component   : analyze
>
> Keywords    : regression
>
> CC          : brukman+bugs
>
> CC          : clattner
>
> CC          : isanbard
>
> CC          : llvmbugs
>
> CC          : stuart
>
> DependsOn   : 10000
>
> Comments    : 21
>
> Attachments : 0
>
> URL         : http://llvm.org/bugs/show_bug.cgi?id=1000
> --
>
>  - Daniel
>
>
> On Wed, Nov 6, 2013 at 10:59 PM, Sean Silva <silvas at purdue.edu> wrote:
>
>> Does anybody know if we have bugzilla's REST API enabled, and if so how
>> to access it? <https://wiki.mozilla.org/Bugzilla:REST_API:Methods>. I
>> tried e.g. http://llvm.org/bugs/bug/count but there doesn't seem to be
>> anything there.
>>
>> I'd like to write a script that tracks various statistics e.g. how many
>> bugs were filed in the last week, how many were closed, etc. and a REST API
>> seems like the simplest way to automate (most of the methods corresponds
>> directly to things in the Web UI, e.g. searches)
>>
>> -- Sean Silva
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131108/7c6546db/attachment.html>


More information about the llvm-dev mailing list