did
did copied to clipboard
Add component/product support to bugzilla plugin
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.
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?
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.
Just an idea - what about allowing separate config sections for separate products? That way output format could stay more concise.
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