Add generic Bugzilla Python client API

RESOLVED WORKSFORME

Status

()

Core
Build Config
RESOLVED WORKSFORME
5 years ago
3 years ago

People

(Reporter: gps, Assigned: BYK)

Tracking

(Blocks: 3 bugs)

Trunk
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [mach])

(Reporter)

Description

5 years ago
Per email discussions, we want to check a unified and generic Bugzilla client API written in Python into mozilla-central. This bug will track getting that landed. Feel free to move to whatever component is appropriate.
(Reporter)

Updated

5 years ago
Blocks: 774149
(Reporter)

Updated

5 years ago
Blocks: 774150

Comment 1

5 years ago
So there are several tools already written in python that have significant overlap.  See http://k0s.org/toolbox/?usage=bugzilla&language=python  IMHO, doing this right == making a best of breed that hopefully existing projects can start to use, not just yet-another-...

While I'm not familiar with all of these, but I can say the following seem to have implemented some of what is needed:

* http://hg.mozilla.org/users/mozilla_kewis.ch/hg-bugzilla/
* http://k0s.org/mozilla/hg/bzconsole 
* http://hg.mozilla.org/users/tmielczarek_mozilla.com/bzexport/
* https://github.com/LegNeato/bztools
* https://github.com/toolness/pybugzilla
* http://hg.mozilla.org/users/robarnold_cmu.edu/qimportbz

It'd be nice to move towards a single officially maintained library and maybe some front-end so that we can replace proliferation with innovation
(Reporter)

Comment 2

5 years ago
(In reply to Jeff Hammel [:jhammel] from comment #1)
> It'd be nice to move towards a single officially maintained library and
> maybe some front-end so that we can replace proliferation with innovation

Definitely. I believe this is more or less what we discussed in our offline email thread.
(Assignee)

Updated

5 years ago
Assignee: nobody → madbyk
(Assignee)

Comment 3

5 years ago
We're on it with Berker Peksag. Will take some time but we'll do it! =)

Comment 4

5 years ago
I'm not sure how far you've gotten with this to date, but I came across https://github.com/toolness/pybugzilla while trawling through github. It could be a good project to expand upon.

Comment 5

5 years ago
(In reply to Josh Matthews [:jdm] from comment #4)
> I'm not sure how far you've gotten with this to date, but I came across
> https://github.com/toolness/pybugzilla while trawling through github. It
> could be a good project to expand upon.

Yep, this was mentioned in comment 1. I'd really like to see the several very similar libraries here combined to be a unified best of breed mozilla-official python client lib
(Assignee)

Comment 6

5 years ago
Work is underway here: https://github.com/berkerpeksag/pyresto/tree/bugzilla (anyone is welcome to contribute). The main work is happening on https://github.com/berkerpeksag/pyresto/blob/bugzilla/pyresto/apis/bugzilla/models.py

Read-only API is around the corner and we hope to bring modification actions available soon after that.
(Assignee)

Updated

5 years ago
Status: NEW → ASSIGNED
(Assignee)

Comment 7

5 years ago
Read-only api finished: https://github.com/BYK/pyresto/tree/master/pyresto/apis/bugzilla

Comments are welcome. Work continues for modify actions.
Status: ASSIGNED → NEW
(Reporter)

Comment 8

5 years ago
The end-user API is so clean \o/

I haven't dug into the core of pyresto yet. Looks like a very handy library! I love how it hides transport details from the end user. This is exactly what a client library should look like!

Comment 9

5 years ago
Agreed! I'm super pumped about what's already there so far.
(Assignee)

Updated

5 years ago
Status: NEW → ASSIGNED
(Assignee)

Comment 10

5 years ago
This is still underway. Just wanted to give a heartbeat. Now we are in the process of adding unit tests(https://github.com/BYK/pyresto/pull/41) and mutation support to the whole API(https://github.com/BYK/pyresto/pull/40). Open to any contributions and/or feedback!
(Reporter)

Comment 11

3 years ago
I just found https://github.com/rail/build-autoland/blob/master/utils/bz_utils.py.
(Reporter)

Comment 12

3 years ago
https://github.com/rail/build-autoland/blob/v2/autoland/bugzilla.py is a better version of the last comment.
Blocks: 1003236
See Also: → bug 990765
(Reporter)

Comment 13

3 years ago
David Burns created a package: http://www.theautomatedtester.co.uk/blog/2014/introducing-bugsy-client-library-for-interacting-with-bugzilla.html

It looks very similar to one I started a few months back when writing a very simple Bugzilla crawler: https://bitbucket.org/indygreg/python-bzrest/src

I vote for Bugsy being the future.
Status: ASSIGNED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.