Bastian Venthur: New queries for reportbug-ng
Instead of the boring “package” queries, rng used to support ’till now, rng now supports all the queries our BTS supports:
package- Returns all the bugs belonging to the PACKAGE
bugnumber- Returns the bug with BUGNUMBER and loads it into the built in browser immediately
maintainer@foo.bar- Returns all the bugs assigned to MAINTAINER
src:package- Returns all the bugs belonging to the SOURCEPACKAGE
from:submitter@foo.bar- Returns all the bugs filed by SUBMITTER
severity:foo- Returns all the bugs of SEVERITY. Warning this list is probably very long. Recognized are the values: critical, grave, serious, important, normal, minor and wishlist
tag:bar- Returns all the bugs marked with TAG
rng [QUERY], where query is one of the above (and rng a convenient shortcut to reportbug-ng).
An example: if you start rng from:venthur@debian.org, you’ll get the full list of all bugreports I’ve ever reported. Now you can filter the list to find all bugreports I’ve filed against, say: qgo… voila. It doesn’t get any easier than that, does it?
Those new queries and a few changes under the hood required quite a lot of refactoring in the code and I’m somewhat scared that I’ve introduced some new bugs. So I guess I should stop releasing so often (or for at least 10 days so rng can finally enter testing) and use the time to start writing some unit tests.
I’m also very proud to say that yesterday — exactly 3 weeks after I wrote the first line of R-NG — R-NG received it’s 100th
It’s still in a very early stage (I’ve started coding it yesterday), but it’s basic functionality is already there: You can query the BTS, filter the list of bugreports in realtime by typing something and view the full bugreports in HTML. You can even provide additional information for existing bugs or create new bugreports. It currently only supports icedove and mutt as mailclient but adding other clients is very easy.
This tool is not designed to replace reportbug, it rather aims for the newbie users feeling uncomfortable typing their mails in vi and would rather have something to point and click. Maybe I can merge the code with reportbug, but after a quick look at it’s code it seems that this will not be as easy as I thought in the beginning.
The code is available