Bug 971202 - Bugzilla plugin doesnt work even with pybugz installed
Summary: Bugzilla plugin doesnt work even with pybugz installed
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: gtg
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ankur Sinha (FranciscoD)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-06 01:43 UTC by Ankur Sinha (FranciscoD)
Modified: 2013-06-22 02:55 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-06-06 08:45:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1075703 0 None None None Never
Launchpad 1188075 0 None None None Never

Description Ankur Sinha (FranciscoD) 2013-06-06 01:43:12 UTC
Description of problem:
Even after installing pybugz, the bugzilla plugin still gives a message asking me to install the "bugz" python module.

Version-Release number of selected component (if applicable):
[asinha@localhost  gtg]$ rpm -q pybugz gtg
pybugz-0.10-4.git683dd.fc19.noarch
gtg-0.3-3.fc19.noarch
[asinha@localhost  gtg]$

How reproducible:
Always

Steps to Reproduce:
1. Install gtg, pybugz
2. Try to enable bugzilla plugin
3. 

Actual results:
Is greyed out. Still asks you to install bugz module

Expected results:
Should work.

Additional info:

Comment 1 Ankur Sinha (FranciscoD) 2013-06-06 01:45:55 UTC
I also have python-bugzilla installed. 

Seems like it's been reported upstream already.

Does this require the bugz module or the bugzilla module, and are they the same and interchangeable??

Comment 2 Ankur Sinha (FranciscoD) 2013-06-06 02:17:08 UTC
The upstream quick fix didn't work for me either. Just tried it:

--- ../gtg-0.3.orig/GTG/plugins/bugzilla/bug.py	2012-11-02 03:22:32.000000000 +1100
+++ GTG/plugins/bugzilla/bug.py	2013-06-06 12:01:06.795550142 +1000
@@ -15,10 +15,7 @@
 # this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #this handles old versions of pybugz as well as new ones
-try:
-    from bugz import bugzilla
-except:
-    import bugz as bugzilla
+import bugzilla
 
 #changed the default action to skip auth
 
There are changes in the trunk that hopefully fix this, but I haven't been able to test them out yet.

Comment 3 Izidor Matušov 2013-06-06 06:44:03 UTC
Hi, GTG maintainer here,

lately there was a contribution from Chenxiong Qi who refactored the plugin. Does the modified plugin work for you? You can play with the development version of GTG without destroying your own data:


bzr branch lp:gtg
cd gtg
./scripts/debug.sh

Please confirm or disconfirm that it works for you. Thanks.

Comment 4 Ankur Sinha (FranciscoD) 2013-06-06 08:07:58 UTC
Yep. I tested it and it works :)

I've built an rpm from the brz checkout. You can find the spec, srpm and f19 rpm here. It might help you when you update to the new release :)

http://ankursinha.fedorapeople.org/gtg-1301/gtg.spec
http://ankursinha.fedorapeople.org/gtg-1301/gtg-0.3.bzr1301-1.fc19.src.rpm
http://ankursinha.fedorapeople.org/gtg-1301/gtg-0.3.bzr1301-1.fc19.noarch.rpm


Would it be possible to add some configuration options to this plug-in?

For instance:

* Create new tag with component [Y/N] (It does this at the moment)
* Create new task under tag: XXXX (Let the user specify what tag these bugs should be added as instead)

I have a lot of bugs on various bugzillas. It won't exactly be organised if each new bug created a *new* tag (It'll become unmanageable actually :( ). I'd like to just have a "bugz" tag and all these bugs can be added as tasks under that tag?

Should I file an RFE upstream for this?


(PS: When you update to a new release, you might want to add pybugz as a Requires: to the spec so it's pulled in by default)

Thanks for your quick reply,
Warm regards,
Ankur

Comment 5 Izidor Matušov 2013-06-06 08:16:56 UTC
Please, fill RFE upstream.

Comment 6 Fedora Admin XMLRPC Client 2013-06-06 08:42:23 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Ankur Sinha (FranciscoD) 2013-06-06 08:45:08 UTC
(In reply to Izidor Matušov from comment #5)
> Please, fill RFE upstream.

Sure. I'll do that. I'm closing this bug as it's fixed upstream. I've also taken ownership of the package in Fedora. Hopefully I'll keep it up to date :)

Thanks,
Warm regards,
Ankur

Comment 8 Ankur Sinha (FranciscoD) 2013-06-06 08:55:06 UTC
RFE filed.

Comment 9 cqi 2013-06-22 02:55:50 UTC
Bugzilla plugin just uses xmlrpclib of standard Python library in the upstream codebase, now. Neither pybugz nor python-bugzilla is required.


Note You need to log in before you can comment on or make changes to this bug.