
Occasionally, I think it would be useful to know who added a tag to a bug report and when it happened. It’s possible to determine this information at a bug reports +activity page. However, this can be hard to parse as you have something like old value = “apport-bug i386 maverick”, new value = “apport-bug i386 kubuntu maverick regression-potential”. Then you have to manually figure out the diff.
Of course this would be much more useful if you could access it using python-launchpadlib. So I’ve exported bug.activity in the devel version of the API and now you can do interesting things like the following:
bug = launchpad.bugs[630580]
[(a.datechanged, a.person.display_name) for a in bug.activity if a.newvalue
and "regression-potential" in a.newvalue]
[(datetime.datetime(2010, 9, 5, 1, 50, 30, 602479, tzinfo=TimeZone(0)),
'Scott Kitterman')]
Now we know that Scott added the tag regression-potential to the bug on September 5th. Pretty neat!