[04:50] <wkoszek> Hi guys. I just wondering if this channel is the right place to ask for some IT assistance wrt. login.launchpad.net ?
[04:52] <wkoszek> I send a merge account request to login-support@canonical.com ~14 days ago and a reminder several days ago, and I got no reply.
[06:50] <ePierre> Hi there!
[06:50] <ePierre> I have a question regarding the launchpad API
[06:50] <ePierre> I would like to retrieve all the bugs for a given project
[06:51] <ePierre> my understanding is that I have to use launchpad.project['my-project'].searchTasks() to do so
[06:51] <ePierre> it looks like the anser I get is 75 items long maximum.
[06:51] <ePierre> The doc says searchTasks returns “an iterable of matching results.”
[06:52] <ePierre> how can I retrieve all the elements?
[06:53] <ePierre> I also tried to filter by statuses to include all of the possible statuses (launchpad.project['my-project'].searchTasks(status=statuses) where statuses is a list of the different statuses)
[06:53] <ePierre> but I'm also limited to 75 items (which matches what you see in Launchpad for the first page of results – my project has 935 items)
[06:54] <wgrant> ePierre: Data is returned in batches of 75 items, but launchpadlib automatically iterates through all of the batches. Do you have code that reproduces the problem?
[07:04] <ePierre> wgrant, thanks for your help :)
[07:05] <ePierre> wgrant, another question: a bug_task doesn't have an 'id' property. Why? The only relation to a bug I can find is through the bug_link property, but this is rather complicated (bug_link is a string URL)
[07:08] <wgrant> ePierre: Tasks don't have external IDs; their only ID is the bug that they are a task on. In launchpadlib you want task.bug.id.
[07:11] <ePierre> wgrant, got it! Thanks!
[07:12] <ePierre> wgrant, so when you have a bug_task object and request bug_task.bug.id, launchpadlib finds the bug that is related to this bug_task, then grabs its id attribute and returns it?
[07:14] <wgrant> ePierre: launchpadlib applies magic on top of link and collection attributes provided by the Launchpad API. foo_link turns into foo, which will be automatically retrieved from the API when it's accessed, and foos_collection turns into foos, which is a normal Python iterator over the batched collection.
[07:14] <wgrant> ePierre: Do be aware that task.bug.id is going to be slow if you're calling it lots of times. If performance is a concern, consider int(task.bug_link.rsplit('/', 1)[1])
[07:15] <ePierre> wgrant, yes that's why I asked :) Thanks for the tip
[07:15] <ePierre> I was actually doing something similar in my code
[08:06] <ePierre> wgrant, I'm currently iterating over the different bugs of my project in order to retrieve some stats about their activity (I want to know how often they've been marked as Incomplete, for instance). This is slow because I need to retrieve the bug activity for each bug of the project, and that means as many requests to Launchpad as there are bugs. I was wondering if there would be a way to retrieve a batch of all the activities of a list of bugs or
[08:06] <ePierre> something like that in one request
[08:08] <wgrant> ePierre: Unfortunately not; there's no general bulk request support in the Launchpad API.
[08:14] <ePierre> wgrant, ok thanks
[12:58] <cjwatson> wkoszek_: login.launchpad.net is actually a separate system with a confusingly similar hostname, and support for that would be in #canonical-sysadmin.  However, to merge two accounts on login.launchpad.net, it's normally best to do that from the Launchpad side using https://launchpad.net/people/+requestmerge if possible, and that will be reflected on login.launchpad.net.
[13:53] <caribou> before I start a API query bomb, I should ask here first :
[13:53] <caribou> I want to get bugs with a specific tag (sts-sru-needed) which are either on openstack projects or ubuntu-cloud-archive
[13:53] <caribou> here is an example : https://bugs.launchpad.net/cloud-archive/icehouse/+bug/1323660
[13:54] <caribou> Am I right to think that I need to query each openstack project iteratively,then the same for cloud-archive in order to find those tagged bugs ?
[16:04] <wkoszek_> cjwatson: Your feedback is great. I'm in the process of merging. I *think* I had a Ubuntu One account created long time ago, without an e-mail. Then I somehow enedd with 2 launchpad.net accounts and the link you passed me: I never saw that in docs.
[16:06] <wkoszek_> Hm.. The Launchpad account named 'wkoszek-e-merged' was merged into the account
[16:06] <wkoszek_> named 'wkoszek'.
[16:06] <wkoszek_> There's some bug in here -- my account name was "wkoszek-e", and that's what I've typed into the web form.
[16:23] <orsonmmz> hi
[16:23] <orsonmmz> are there any lp moderators here?
[16:24] <orsonmmz> we are getting more and more spam in our bug reports, and I have no idea where it could be reported
[19:05] <saiarcot895> Hi,
[19:07] <saiarcot895> I'm attempting to compile recent versions of Chromium in my PPAs, but (most of the time) when I build it for amd64 and arm64 on 16.10 and newer, an internal GCC error occurs. I've tried to replicate the error in a local sbuild chroot, but have been unable to do so. Any suggestions for further debugging?
[19:09] <saiarcot895> The GCC error occurs when compiling the same file. Also, GCC appears to take up a lot of RAM (about 2 GB, I forgot the exact count). Do the builders not have this much RAM available, and could this be what is causing the crash?
[19:12] <dobey> saiarcot895: you might want to ping in #ubuntu-desktop perhaps about chromium. i'm pretty sure there are PPAs kept up to date, and there's even a nightlies PPA. not sure why you'd get gcc internal errors though
[19:18] <saiarcot895> dobey: I'm maintaining two PPAs, one for the latest Beta channel release and one for the latest Dev channel release. I'm not sure there is another PPA containing recent versions of Chromium (beyond stable)
[20:08]  * wkoszek_ is confused on launchpad.net and Ubuntu One relationship. Seems to have account in both.
[20:16] <dobey> Ubuntu One (login.ubuntu.com) is the SSO auth provider
[20:19] <wkoszek_> How come I be logged in to launchpad.net and be able to browse my profile etc., yet not be "in" at Ubuntu One. I believed that was the idea.
[20:23] <dobey> i don't understand what you're asking
[20:23] <dobey> you are only "logged in" to ubuntu one, once you go to login.ubuntu.com and log in there to manaage your account
[20:24] <dobey> for launchpad, ubuntu one is the authentication back-end, via OpenID
[20:25] <dobey> standard tokenized authentication
[22:58] <aleksander0m> any launchpad sysadmin here? some nasty spam happening in this bugreport in the last days https://bugs.launchpad.net/ubuntu/+bug/554099
[22:59] <wgrant> aleksander0m: Just the last four comments?