Comment 56 for bug 499113

Revision history for this message
Graham Binns (gmb) wrote : Re: should only add downstream link to current upstream bug task

I think, if I'm understanding the problem right (and it's possible that I'm not because I've only just woken up) that this and the ever-so-delightful bug 491549 are actually symptoms of the same problem, namely that Launchpad treats all bug watches the same way instead of differentiating between those that are linked to a bug task (i.e. those that appear as 'assigned to foo.com bugzilla...' in the bug task table) and those not.

It's actually a relatively simple fix. The condition on line 870 of lib/lp/bugs/scripts/checkwatches.txt should be updated to also check that `bug_watch.bugtask is not None` and the tests should be updated accordingly. This will prevent syncing happening for all but those bug watches attached to bug tasks.

There's already work being done on checkwatches this cycle, so I wonder if we can include this in the mix, too.