did icon indicating copy to clipboard operation
did copied to clipboard

Add component/product support to bugzilla plugin

Open hrw opened this issue 8 years ago • 4 comments

RedHat bugzilla tracks several components. I have some work done on Fedora and some on RHEL.

But when I run "did last week" I get list of bugs with their titles so it is hard to find out which are for Fedora and which for RHEL. Also info which product (aka package name) it was assigned to would be useful to have.

hrw avatar Oct 07 '15 09:10 hrw

Thanks for the idea. This should not be too complicated to implement. What about the format? Something like this?

* BZ#1265138 - Need five mouse clicks to select the wireless network [gnome-shell]
* BZ#1268255 - Tab switching keys are not passed through for tabless windows [gnome-terminal]

Or should this be rather displayed only when the --verbose mode is on? If we add product name as well the lines will become quite long:

* BZ#1265138 - Need five mouse clicks to select the wireless network [gnome-shell] [Red Hat Enterprise Linux 7]
* BZ#1268255 - Tab switching keys are not passed through for tabless windows [gnome-terminal] [Red Hat Enterprise Linux 7]

Perhaps we could make this configurable to allow selecting only those fields the user is interested in, something like:

[bz]
type = bugzilla
show = component, product

Thoughts?

psss avatar Oct 07 '15 19:10 psss

What about allowing user format?

default: format = BZ#{number} - {title}

user:

format = BZ#{number} - [{product}] {title}

I am fine with printing component/product only in verbose mode too. My terminal is 160 chars wide.

hrw avatar Oct 08 '15 07:10 hrw

Just an idea - what about allowing separate config sections for separate products? That way output format could stay more concise.

TomasHofman avatar Oct 09 '15 09:10 TomasHofman

Nice, we could combine both: Allow simple filtering and customizing the format. What about using the default python formatting syntax?

[bz]
type = bugzilla
format = %(id)s - %(summary)s [%(component)s]
filter = product: Fedora

psss avatar Oct 09 '15 14:10 psss