/srv/irclogs.ubuntu.com/2016/11/09/#launchpad.txt

=== JanC is now known as Guest19389
=== JanC_ is now known as JanC
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
caribouHi, is this channel a good place to ask questions about LP's API ?09:16
cjwatsoncaribou: sure09:40
cariboucjwatson: hey good morning09:40
cjwatsonI'm not so sure about that09:40
cjwatsonbut go ahead09:40
caribouI'm trying to build a query to get all bugs that have a specific tag09:40
caribouif 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:41
cariboulooks like the tag I'm querying is attached to the bug,and not a specific task09:42
cjwatsonTags are always on bugs, not tasks, but you always search for tasks.09:42
cjwatsonDo you have an example?09:43
caribousure09:56
cariboucjwatson: ubuntu being distributions['ubuntu'], tasks = ubuntu.searchTasks(tags='sts', order_by=['id'], created_since='2016-01-01')09:57
caribouwill return many bugs09:57
cjwatsonwhen 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
caribouif you look at launchpad.bugs[1640382].tags, sts is there but this bug is not returned by the searchTasks09:58
caribouand 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 tag09:59
caribouI'm sure that the LP API can make my life much simpler in many cases, I just want to get my head around it correctly10:01
longsleepHey 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 ppa10:05
cjwatsoncaribou: 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 that10:06
longsleepah, never mind no it reacted - seems it took just a bit longer than normal10:07
cjwatsoncaribou: though one easy workaround if you only care about specific series is to start from lp.load('/ubuntu/trusty') instead10:07
cjwatsonlongsleep: We're in the middle of a database update at the moment, which entails stopping some things for a bit10:07
cariboucjwatson: well, I wanted to break them down by series to that might do the trick10:08
cariboucjwatson: thanks!10:08
longsleepcjwatson: ah ok - thanks - seems to work fine again now10:08
cjwatsoncaribou: Right, maybe that's sufficient then.10:08
=== chihchun is now known as chihchun_afk
=== chihchun_afk is now known as chihchun
cariboucjwatson: btw, I haven't been able to get my query working. It fails even with bugs which are not Invalid12:19
* smoser is happy launchpad is now linking bugs based on LP: # in git commit messages!13:24
smoserthanks! ie https://code.launchpad.net/~smoser/cloud-init/+git/cloud-init/+merge/310432 magically linked13:25
cjwatsoncaribou: Huh, I did test that it returned that qemu bug.13:30
cjwatsonsmoser: yw13:30
cariboucjwatson: maybe I didn't use the proper syntax; would you mind pasting your syntax somewhere?13:31
cpaelzersmoser: 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/152452613:33
ubot5`Ubuntu bug 1524526 in dovecot (Ubuntu Xenial) "Crashes with undefined symbol" [High,Fix released]13:33
cpaelzerlp-team ++13:33
cjwatsoncaribou: lp.load('/ubuntu/trusty').searchTasks(tags='sts', order_by=['id'], created_since='2016-01-01')13:38
cariboucjwatson: thanks!13:38
cjwatsonyou 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.load13:38
cjwatsonbut I was being lazy13:39
smosercpaelzer, 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:02
cjwatsonIt is indeed.14:04
cariboucjwatson: Epilogue - my query will work only if I append version='devel' to the login statement14:56
cjwatsoncaribou: Ah, of course.15:02
cjwatsoncaribou: You basically always want to use devel anyway.15:02
cariboucjwatson: yeah, just found out by reading the launchpad help example :-/15:03
cariboucjwatson: anyway, thanks again for your help15:03
=== chihchun is now known as chihchun_afk
=== JanC_ is now known as JanC
=== thomi_ is now known as thomi
jderoseHello! 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:21
cjwatsonjderose: 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:44
jderosecjwatson: can do, thank you!21:45
jderosecjwatson: https://answers.launchpad.net/launchpad/+question/403931 Thanks again!21:59

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!