Comment 5 for bug 291968

Revision history for this message
Chris Cheney (ccheney) wrote :

So I dug a bit more today along with using launchpadlib to pull out the bug that was effectively hidden.

It appears the web interface does this:

If a bug is upstream it hides it with hide_upstream
If a bug is upstream but not have a bug watch then Invalid status is not considered for resolved_upstream.
If a bug is upstream and has a bug watch then even Invalid status is considered resolved_upstream.

I think probably it would be best to have bugs whether bug watched or not that are Invalid upstream to be not hidden by hide_upstream. Or at the very least treat them both the same way, whichever way you want to treat them.

Using launchpadlib I had to do this to get the equivalent information:

for pkgbug in package.searchTasks(status=['Triaged']):
  for task in pkgbug.bug.bug_tasks:
    if task.target.resource_type_link.split('#')[1] == 'project':
      if task.status == 'Invalid':
        if task.bug_watch is None:
          print task.bug.id, "-", task.bug_target_name

This is a very heavy process, it takes roughly 12m, just to get information that ought to be accessible already.