Bugzilla REST API?

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

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:

bugz (64.4 KB)

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

    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?

Is there something I could contribute to help move this along, say an upgrade on the server?

I'd like to cross-reference outstanding PRs against the codebase and most library/tool support out there today is set up for the more modern Bugzilla REST API.

Alp.

    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?

Is there something I could contribute to help move this along, say an
upgrade on the server?

This is something that I think everyone would appreciate. Our bugzilla is
in a really calcified state. Breathing some vitality into it would be
great. The thing is that I don't think that any of us have any experience
with running/upgrading bugzilla; if you have some background in this and
want to try your hand at it I think it's a no-brainer.

If bugzilla has some sort of mirroring capability, I think that a natural
first step would be to try to run a mirror with the target version (not on
LLVM's servers (server? our web presence is pretty pathetic...)), make sure
everyone is onboard with the upgrade (I don't expect any issues), then do
the upgrade to llvm.org/bugs (and take down the mirror).

-- Sean Silva

This is something that I think everyone would appreciate. Our bugzilla is
in a really calcified state. Breathing some vitality into it would be
great. The thing is that I don't think that any of us have any experience
with running/upgrading bugzilla; if you have some background in this and
want to try your hand at it I think it's a no-brainer.

+1

If bugzilla has some sort of mirroring capability, I think that a natural

first step would be to try to run a mirror with the target version (not on
LLVM's servers (server? our web presence is pretty pathetic...)), make sure
everyone is onboard with the upgrade (I don't expect any issues), then do
the upgrade to llvm.org/bugs (and take down the mirror).

Sounds like a plan!

--renato