Bugzilla:BzAPI: Difference between revisions

no edit summary
No edit summary
Line 62: Line 62:
== API Notes ==
== API Notes ==


* '''Getting bug history and details of users will only work on the above API when bugzilla.mozilla.org is upgraded to Bugzilla 3.4 :-( Features that depend on 3.4 are marked "3.4".'''
* The <id> parameter for bugs must be a bug number for now; aliases will be supported later.
* The <id> parameter for bugs must be a bug number for now; aliases will be supported later.
* Only bug time fields (creation/last_change) return timezone information. For the moment, for other time fields, you will need to know the timezone of the Bugzilla you are accessing.
* Only bug time fields (creation/last_change) return timezone information. For the moment, for other time fields, you will need to know the timezone of the Bugzilla you are accessing.
Line 352: Line 351:
==Your Own Installation==
==Your Own Installation==


If you want to install the API proxy on your own machine for your own Bugzilla, you will first need to upgrade your Bugzilla to the latest stable 3.4.x release and, if necessary, convert your database to use UTF-8 (this is the default on new installations). Then, install a copy of the API software - it does not have to be on the same machine. See the INSTALL file in the repository for some installation hints; feel free to send me tips from your experience.
If you want to install the API proxy on your own machine for your own Bugzilla, you will need:
 
* the latest stable 3.4.x release of Bugzilla (many features will not work on 3.2); and
* to be using UTF-8 (this is the default on new installations).
 
Then, install a copy of the API software - it does not have to be on the same machine. See the INSTALL file in the repository for some installation hints; feel free to send me tips from your experience.


You can get the code from the Mozilla Mercurial (hg) repository:
You can get the code from the Mozilla Mercurial (hg) repository:
Line 360: Line 364:
===Patches===
===Patches===


Even on top of the latest stable release, you will need to apply a few further patches. (Unfortunately, it was not possible to support all the necessary functionality without some changes to Bugzilla itself, which were considered either unnecessary or too intrusive for a stable release series.)  
Even on top of the latest stable release of Bugzilla 3.4, you will need to apply a few further patches. (Unfortunately, it was not possible to support all the necessary functionality without some changes to Bugzilla itself, which were considered either unnecessary or too intrusive for a stable release series.)  


*  [https://bugzilla.mozilla.org/show_bug.cgi?id=521398 Make legacy XML interface supply more data (flags, etc.)] - for 3.4 stable you'll need patch version 8a.
*  [https://bugzilla.mozilla.org/show_bug.cgi?id=521398 Make legacy XML interface supply more data (flags, etc.)] - for 3.4 stable you'll need patch version 8a.
* [https://bugzilla.mozilla.org/show_bug.cgi?id=523325 JSON template for config.cgi] (note: you'll need the original patch and then the updated config.json.tmpl)
* [https://bugzilla.mozilla.org/show_bug.cgi?id=523325 JSON template for config.cgi] (note: you'll need the original patch and then the updated config.json.tmpl)
Account confirmers, Anti-spam team, Confirmed users, Bureaucrats and Sysops emeriti
4,925

edits