expand basebuglistfilter.py datereported functionality

Bug #254071 reported by Brian Murray
2
Affects Status Importance Assigned to Milestone
python-launchpad-bugs
Fix Released
Wishlist
Markus Korn

Bug Description

It'd be great if the datereported functionality was expanded to include other date transitions recorded in a bug task like date-confirmed. This would allow one to search for recently confirmed bug reports and move them to triaged and then developers could search for recently triaged bugs too!

Revision history for this message
Markus Korn (thekorn) wrote :

I agree, it would be nice to have such functionality, however I doubt we cannot implement this for the most date-attributes.
The datereported filter is depending on the ability of lp to sort buglists by "newest/oldest first", this makes this filter so *fast*. As lp can return us buglists ordered by "most/least recently changed" we can easily adopt the functionality of the datereported filter for date_updated.

For all other date related attributes the workflow should look like:
1.) getting the whole list,
2.) filtering the list
I think this should be implemented in the script which needs this functionallity and not in py-lp-bugs. Please see the attached example.

So IMHO, won't fix for most date attributes. I will work on a fix for date_updated.
Markus

Changed in python-launchpad-bugs:
assignee: nobody → thekorn
importance: Undecided → Wishlist
status: New → In Progress
Revision history for this message
Markus Korn (thekorn) wrote :

patch against .main rev 147 to add a dateupdated filter function to py-lp-bugs.
Needs some review and testing!

Markus

Revision history for this message
Brian Murray (brian-murray) wrote :

I've added a modified version of dateconfirmed_filter.py, and a similar datetriaged_filter.py, to the examples directory of python-launchpad-bugs. Thanks!

Revision history for this message
Brian Murray (brian-murray) wrote :

It seems to work well enough but I'm not certain what the use case for it would be, it seems to me that date_updated isn't particularly useful in bugnumbers unless it is compared with another date. For example, it'd be neat to find bugs where date-updated > date-incomplete but this isn't possible.

It's still worth adding though.

Revision history for this message
Brian Murray (brian-murray) wrote :

I've pushed this in revision 151.

Changed in python-launchpad-bugs:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.