/srv/irclogs.ubuntu.com/2016/12/23/#launchpad.txt

=== Spads_ is now known as Spads
=== JanC is now known as Guest61812
=== JanC_ is now known as JanC
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
vredervHow do I use the web API to fetch the version of a package?11:59
cjwatsoneasiest if you have it in the form of a source package name, then you'd use archive.getPublishedSources12:00
cjwatsonsomething like http://paste.ubuntu.com/23672829/12:01
cjwatsonhttps://launchpad.net/+apidoc/devel.html#archive-getPublishedSources12:01
cjwatsonyou can use archive.getPublishedBinaries if you really need to go by binary package name, in which case you also need to specify the architecture12:02
cjwatsonIn [1]: lp.distributions['ubuntu'].main_archive.getPublishedBinaries(binary_name='man-db', exact_match=True, distro_arch_series='/ubuntu/zesty/amd64', pocket='Release', status='Published')[0].binary_package_version12:02
cjwatsonOut[1]: u'2.7.6.1-1'12:02
vredervthank you ... I am not using the Python module12:03
cjwatsonyou'll have to derive the required requests from the above then, but it's a pretty regular transformation12:03
cjwatsonhttps://help.launchpad.net/API/Hacking12:04
vredervLet's take Ubuntu's apache2 package as an example, the site is https://launchpad.net/ubuntu/+source/apache212:05
vredervThe archive URL should be https://api.launchpad.net/1.0/ubuntu/+archive/apache212:06
cjwatsonno it shouldn't12:07
vredervalright what should it be?12:07
cjwatson/ubuntu/+archive/primary is the archive; apache2 is not an archive12:07
vredervSo https://api.launchpad.net/1.0/ubuntu/+archive/ubuntu/+archive/primary ?12:08
cjwatson$ curl -s 'https://api.launchpad.net/devel/ubuntu/+archive/primary?ws.op=getPublishedSources&source_name=apache2&exact_match=true&distro_series=/ubuntu/zesty&pocket=Release&status=Published' | jq '.entries[0].source_package_version'12:08
cjwatson"2.4.23-7ubuntu1"12:08
cjwatson(remove the duplicate /ubuntu/+archive segment from yours)12:08
vredervthank you!12:09
cjwatsonyou're welcome12:09
clivejoHi folks, can an existing LP bug be converted into an SRU, or should a brand new bug be submitted for the SRU?13:30
cjwatsonclivejo: that's an SRU team question rather than an LP question.  but anyway, usual practice is that if the existing bug is just for the one thing that's being changed in the SRU, then it's fine to reuse it, otherwise file a new bug13:32
smoserwhere do i configure webhooks for https://code.launchpad.net/cloud-init ?14:29
smoseri can't seem to find it poking around in the ui14:29
cjwatsonsmoser: some things are only on the repository page and not on the code index, somewhat confusingly14:37
cjwatsonsmoser: so follow the "lp:cloud-init" link and then "Manage webhooks" under there14:37
smoserhm.14:38
smoseri swear i looked there. or at least had some other view of that repo. thank you !14:38
cjwatsonnp14:38
cjwatsonthe code index has a sort of partial view - I have a batch of UI changes in progress to try to make things clearer there14:38
smoserok. i also looked https://code.launchpad.net/cloud-init14:39
smoseri did read the docs... so if they had some "git hooks configure at a url like ...." then i'd have probably not bothered you14:39
smoserthank you though.14:39
cjwatsonwell, it's a UI bug really.  there should just be a "Manage webhooks" link right there.14:40
=== davmor2 is now known as davmor2_EOY
rlaagercjwatson: No answer on https://answers.launchpad.net/launchpad/+question/407771 in three days. He is still unable to login.19:51
naccrlaager: could just be timing, holidays and all19:52
rlaagernacc: Sure. I have no idea what the commercial support process is supposed to look like. This is preventing him from pushing stuff to our paid-for private PPA.19:53
cjwatsonI've been the only LP staff person on duty and I've had a hellish deadline to meet before end of year19:53
cjwatsonalso not sure anyone said it was commercial ...19:54
naccrlaager: right, i'd never have known it was commercial myself :)19:54
rlaagercjwatson: It sounds like your other thing is more important. We can wait.19:55
cjwatsonI'm done for the year19:55
cjwatsonBut let me see if I can figure something out19:55
user0Hi, I've got the same problem as that 407771. I think this happened to me 3 months ago when I created the account, so I let it time :-) But still Oops-* all time now.19:56
user0can't access https://launchpad.net/people/+me/19:57
cjwatsonuser0: what's the OOPS ID?19:57
user0OOPS-8748ac6f6e9da2126007ef4659c66de4 , right now19:58
ubot5`https://oops.canonical.com/?oopsid=OOPS-8748ac6f6e9da2126007ef4659c66de419:58
cjwatsonok, will look into both once a sysadmin responds to my query19:59
rlaagerAlso for reference: My existing account can login (in new browser sessions) just fine. We tried a couple different browsers for his, and it reproduces in both of them.19:59
cjwatsonrlaager: yeah, it's specific to his account because he previously had an autocreated person record due to a translation import19:59
cjwatsonneither the behaviour of your account nor the browser is relevant - the OOPS uniquely identifies the problem20:00
cjwatsonthis is all https://bugs.launchpad.net/launchpad/+bug/1607242, just need to get a sysadmin to tell me what the new openid association in the DB is so that I can request the proper merge20:01
ubot5`Ubuntu bug 1607242 in Launchpad itself "Logging into a placeholder person OOPSes if email address already on another person" [Critical,Triaged]20:01
cjwatsonEr, s/translation/bug comment/ in my comment above.20:14
cjwatsonrlaager,user0: should work now20:34
cjwatsonsorry for the delay20:34
rlaagercjwatson: Thanks!20:39
=== JanC is now known as Guest57833
=== JanC_ is now known as JanC
user0Wow!!!21:02
user0thank you very much cjwatson21:02
user0Hopefully I found this IRC @ https://help.launchpad.net/Oops21:03
user0thumbs up21:03

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