[09:16] <caribou> Hi, is this channel a good place to ask questions about LP's API ?
[09:40] <cjwatson> caribou: sure
[09:40] <caribou> cjwatson: hey good morning
[09:40] <cjwatson> I'm not so sure about that
[09:40] <cjwatson> but go ahead
[09:40] <caribou> I'm trying to build a query to get all bugs that have a specific tag
[09:41] <caribou> if I use searchTasks, it doesn't seem to get some specific tags; is there a method on the bugs collection that would let me do that ?
[09:42] <caribou> looks like the tag I'm querying is attached to the bug,and not a specific task
[09:42] <cjwatson> Tags are always on bugs, not tasks, but you always search for tasks.
[09:43] <cjwatson> Do you have an example?
[09:56] <caribou> sure
[09:57] <caribou> cjwatson: ubuntu being distributions['ubuntu'], tasks = ubuntu.searchTasks(tags='sts', order_by=['id'], created_since='2016-01-01')
[09:57] <caribou> will return many bugs
[09:58] <cjwatson> when you said "it doesn't seem to get some specific tags", is it possible that you meant "it doesn't seem to get some specific tasks"?
[09:58] <caribou> if you look at launchpad.bugs[1640382].tags, sts is there but this bug is not returned by the searchTasks
[09:59] <caribou> and yes, that's what I meant, but if I search on 'sts-sru', it returns nothing even if I know that there are 41 bugs with that tag
[10:01] <caribou> I'm sure that the LP API can make my life much simpler in many cases, I just want to get my head around it correctly
[10:05] <longsleep> Hey folks, does launchpad have trouble with taking updates? I uploaded a package successfully but no email about the status and no entry on the web page of the ppa
[10:06] <cjwatson> caribou: It's related to the fact that the non-series-linked task there is Invalid; will need to wake up further and see if there's a reasonable way to avoid that
[10:07] <longsleep> ah, never mind no it reacted - seems it took just a bit longer than normal
[10:07] <cjwatson> caribou: though one easy workaround if you only care about specific series is to start from lp.load('/ubuntu/trusty') instead
[10:07] <cjwatson> longsleep: We're in the middle of a database update at the moment, which entails stopping some things for a bit
[10:08] <caribou> cjwatson: well, I wanted to break them down by series to that might do the trick
[10:08] <caribou> cjwatson: thanks!
[10:08] <longsleep> cjwatson: ah ok - thanks - seems to work fine again now
[10:08] <cjwatson> caribou: Right, maybe that's sufficient then.
[12:19] <caribou> cjwatson: btw, I haven't been able to get my query working. It fails even with bugs which are not Invalid
[13:24]  * smoser is happy launchpad is now linking bugs based on LP: # in git commit messages!
[13:25] <smoser> thanks! ie https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/310432 magically linked
[13:30] <cjwatson> caribou: Huh, I did test that it returned that qemu bug.
[13:30] <cjwatson> smoser: yw
[13:31] <caribou> cjwatson: maybe I didn't use the proper syntax; would you mind pasting your syntax somewhere?
[13:33] <cpaelzer> smoser: yeah while I like the reverse link from the bug more I totally appreciate the feature like on https://bugs.launchpad.net/ubuntu/+source/dovecot/+bug/1524526
[13:33] <ubot5`> Ubuntu bug 1524526 in dovecot (Ubuntu Xenial) "Crashes with undefined symbol" [High,Fix released]
[13:33] <cpaelzer> lp-team ++
[13:38] <cjwatson> caribou: lp.load('/ubuntu/trusty').searchTasks(tags='sts', order_by=['id'], created_since='2016-01-01')
[13:38] <caribou> cjwatson: thanks!
[13:38] <cjwatson> you can use lp.distributions['ubuntu'].getSeries(name_or_version='trusty') instead if you prefer to step through rather than hardcoding the URL and using lp.load
[13:39] <cjwatson> but I was being lazy
[14:02] <smoser> cpaelzer, yeah, i agree its more useful for the bug to get a reference to the mp, but i kind of assumed that was a given.  i just assumed 'link' was two way.
[14:04] <cjwatson> It is indeed.
[14:56] <caribou> cjwatson: Epilogue - my query will work only if I append version='devel' to the login statement
[15:02] <cjwatson> caribou: Ah, of course.
[15:02] <cjwatson> caribou: You basically always want to use devel anyway.
[15:03] <caribou> cjwatson: yeah, just found out by reading the launchpad help example :-/
[15:03] <caribou> cjwatson: anyway, thanks again for your help
[21:21] <jderose> Hello! There's a ~system76 user on Launchpad that has zero activity. This account was created by someone outside the company in 2009. Would it be possible to have this account transfered to System76 ownership?
[21:44] <cjwatson> jderose: If we did it it would more be a matter of renaming that account in order that you could claim the name, and we'd want some kind of traceability.  Could you please open a ticket at https://answers.launchpad.net/launchpad/+addquestion ?
[21:45] <jderose> cjwatson: can do, thank you!
[21:59] <jderose> cjwatson: https://answers.launchpad.net/launchpad/+question/403931 Thanks again!