/srv/irclogs.ubuntu.com/2016/04/24/#launchpad.txt

=== maclin1 is now known as maclin
=== pavlushka_ is now known as pavlushka
LaibschCan I drop a distro-targetting task with the Launchpad API?11:39
cjwatsonLaibsch: What do you mean exactly?12:24
cjwatsonLaibsch: Delete the task, you mean?12:24
cjwatsonLaibsch: If so, IBugTask exports a destructor operation, so you can do bug_task.lp_delete()12:26
LaibschLet's take bug 1249272 for example.  I'd like to remove the utopic tasks (in the past I closed those EOL tasks as wontfix, but removing the task results in less clutter).12:32
ubot5bug 1249272 in linux-mako (Ubuntu Xenial) "CVE-2013-4513" [Low,New] https://launchpad.net/bugs/124927212:32
LaibschThe tasks that are still in New state12:33
cjwatsonLaibsch: Right, so you can do .lp_delete() on those tasks.  Do double-check with the kernel team though; at least some of the non-utopic New tasks are probably still interesting.12:34
cjwatson(can do> assuming you have permission, that is)12:34
LaibschI have bug privs12:34
LaibschBut I just tried .lp_delete and got "lazr.restfulclient.errors.MethodNotAllowed: HTTP Error 405: Method Not Allowed". I can delete the tasks manually via the web interface.12:35
cjwatsonCan you show me your code?12:35
LaibschI can also set them to wontfix.  How can utopic tasks still be relevant now?  utopic is EOL.12:36
cjwatsonI said "at least some of the non-utopic New tasks ..."12:36
cjwatsonFor example, vivid tasks are still relevant even though vivid is mostly EOL, because the Ubuntu phone codebase hasn't yet moved off it.12:36
cjwatsonHence suggesting some cautiojn.12:36
cjwatson*caution12:36
LaibschOh, sorry.  I am strictly dealing with release-targetting tasks only12:37
Laibschhttp://paste.debian.net/hidden/dcf15fda/12:37
cjwatsonWell, you don't want the lp_save12:38
cjwatsonBut let's see12:38
Laibschand only utopic.  did some k-o series tasks earlier today as well12:38
* cjwatson tries on qastaging12:39
cjwatsonWorks fine for me.12:40
cjwatsonTry adding the httplib2.debuglevel thing from https://help.launchpad.net/API/launchpadlib#Three_things_to_make_your_client_faster temporarily so that you can see exactly which request is failing.12:41
LaibschHere's the last few lines with debugging turned on: http://paste.debian.net/hidden/e2e207c3/  Maybe I'm not allowed to do it via the API?  I can do it via the web interface.12:47
LaibschI can also set the task to wontfix12:47
cjwatsonLaibsch: Er, thanks but you might want to immediately revoke that token (https://qastaging.launchpad.net/~/+oauth-tokens) and get launchpadlib to generate a new one12:49
LaibschI noticed12:49
cjwatsonSorry, I'd forgotten that oauth_token was exposed there or I'd have warned you12:49
LaibschI also only realized after posting12:49
Laibschbut the token is only for QA and the pastebin was hidden. token is only valid for an hour.12:50
Laibschwould that still be a problem, for example for production?12:50
LaibschI'll revoke the key to be safe now12:50
cjwatsonIt wouldn't be a problem for production, but best to revoke anyway.12:51
Laibschyeah, it's already done12:51
cjwatsonI don't immediately see why this isn't working if you can delete in the web interface.  Needs a bit more investigation than I can give it at the weekend, I'm afraid.12:51
LaibschThat's fine12:51
LaibschI'll simply set to wontfix with no comment instead of removing the task when the status is new12:52
LaibschI'll add a comment for status Confirmed, Triaged, etc.12:52
LaibschThank you for your time.12:52
=== JanC_ is now known as JanC

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