[python-bugzilla] [PATCH] Bug cloning

Cole Robinson crobinso at redhat.com
Tue Mar 19 17:24:05 UTC 2013


On 03/19/2013 07:24 AM, Martin Cermak wrote:
> ----- Original Message -----
>> On 01/30/2013 02:24 AM, Martin Cermak wrote:
>>> Hi, I belive that cloning a bug is a useful feature. Below I'm
>>> attaching a patch that should do the trick. I attempted to follow
>>> the behaviour of Bugzilla's web UI:
>>>
>>
>> Thanks for the patch Martin! Idea sounds fine to me. But please
>> rebase this patch against the upstream code base which as changed 
>> quite a bit.
>>
>> git clone git://git.fedorahosted.org/git/python-bugzilla.git
>>
>> Also, stick all the clone logic into the the BugzillaBase class,
>> since the behavior is not specific to rhbugzilla.
>>
>> Make sure 'python setup.py test' and 'python setup.py pylint' don't
>> regress.
>>
>> After that I'll do a closer review.
>>
>> Thanks,
>> Cole
>>
> 
> Hi Cole,
> 
> Patch rebased. Regression tests are passing. Please review.
> 
> Thanks,
> Martin
> 

Sorry Martin, but after thinking about it some more, I don't think we should
carry this in python-bugzilla. Really the proper thing here is that the
bugzilla XMLRPC API should expose a clone method so we don't need to duplicate
all this logic internally. Not to mention getting this to work consistently
across bugzilla versions would suck.

If it's important for your work at RH, I'd suggest filing a bug against
Community -> Bugzilla -> WebService requesting an XMLRPC call for bug cloning.
RH bugzilla guys are pretty responsive and active upstream so that's your best
chance of getting it done quickly.

Thanks,
Cole


More information about the python-bugzilla mailing list