=== StevenK_ is now known as StevenK | ||
=== frankban|afk is now known as frankban | ||
sil2100 | o/ | 10:22 |
---|---|---|
sil2100 | What 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 |
wgrant | sil2100: There's no direct API for that. Can you explain your use case? | 10:25 |
sil2100 | wgrant: 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 tool | 10:26 |
wgrant | sil2100: Hm, why does that require the OpenID identifier? | 10:26 |
sil2100 | wgrant: not the openID identifier, just the user LP id, e.g. the username I meant | 10:27 |
sil2100 | Maybe I phrased this wrongly in my question | 10:27 |
wgrant | sil2100: Oh. lp.me.name | 10:27 |
sil2100 | wgrant: exactly what I need, thank you! | 10:27 |
wgrant | sil2100: 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 |
sil2100 | Yeah, will do, the lp.me was what I needed, completely forgot about it | 10:29 |
wgrant | sil2100: 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!