Launchpad API "person" object can't get complete list of affected-by bugs

Bug #867985 reported by Alistair Buxton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

I am trying to get a list of every bug that affects me (as set on the top of the bug's page) using the LP API.

I can do me.searchTasks(affected_user=me) but this only returns bugs which I reported (and probably bugs that I am linked to in other ways, if I had any) - and which also affect me. That misses out a lot of bugs.

Test case attached. 863745 shows in results, because I reported it. 863038 does not.

Tags: api users
Revision history for this message
Alistair Buxton (a-j-buxton) wrote :
Revision history for this message
Alistair Buxton (a-j-buxton) wrote :

Background:

I'm trying to improve update-manager launchpad integration so that changelogs, in addition to linking LP# bugs, also list whether the bug affects you. I realise that could be an expensive operation, and that is probably the reason this API call did not work the way I expected it to. But I was asked to report this, so I have.

It has also been suggested that rather than fetching the whole list of bugs, a new API call is created which takes a list of bugs and returns which ones affect the user.

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 867985] Re: Launchpad API "person" object can't get complete list of affected-by bugs

You need to search the global bug collection for that, not your bugs.

Changed in launchpad:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Данило Шеган (danilo) wrote :

I am getting timeouts consistently trying to load https://bugs.launchpad.net/~a-j-buxton/+affectingbugs (eg. OOPS-2104BB52) - to be able to compare the web UI with the API output. If one is wrong, then it's likely that the other is too.

Revision history for this message
Данило Шеган (danilo) wrote :

Martin filed the timeout bug earlier (bug 868021)

Curtis Hovey (sinzui)
tags: added: api users
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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