/srv/irclogs.ubuntu.com/2017/06/30/#launchpad-dev.txt

=== StevenK_ is now known as StevenK
=== frankban|afk is now known as frankban
sil2100o/10:22
sil2100What is the best/easiest way to get the lp login identifier of the person the user is currently logged as through Launchpad API?10:22
wgrantsil2100: There's no direct API for that. Can you explain your use case?10:25
sil2100wgrant: I'm just improving some sru-review tooling and I'd like to do 'something special' when a bug task is assigned to the person running the review tool10:26
wgrantsil2100: Hm, why does that require the OpenID identifier?10:26
sil2100wgrant: not the openID identifier, just the user LP id, e.g. the username I meant10:27
sil2100Maybe I phrased this wrongly in my question10:27
wgrantsil2100: Oh. lp.me.name10:27
sil2100wgrant: exactly what I need, thank you!10:27
wgrantsil2100: np. Consider using lp.me.self_link and comparing it to bug_task.assignee_link, rather than doing extra roundtrips to compare the username directly.10:28
sil2100Yeah, will do, the lp.me was what I needed, completely forgot about it10:29
wgrantsil2100: That's just launchpadlib sugar around lp.load('/~') or lp.load('/people/+me') -- all the paths match the web UI.10:31
=== frankban is now known as frankban|afk

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