[10:33:59] india [10:34:11] i want api interface from weekipedia [15:39:59] mdholloway: o/ [15:40:10] mdholloway: up for quick batcave about compilation caching? [15:40:17] sure [15:40:22] omw... [16:28:28] mdholloway: is the android app looking at a user’s permssions to see if they can edit an article? [16:29:08] coreyfloyd: yeah, it checks permission groups (e.g., autoconfirmed). are you seeing anything weird? [16:29:27] mdholloway: no… just figuring out some API stuff [16:29:33] hanks [16:29:49] no problem! [16:30:52] mdholloway: one other question… what API are you using to get the permission groups? [16:33:43] coreyfloyd: here's the call we use: w/api.php?action=query&format=json&formatversion=2&meta=userinfo&list=users&usprop=implicitgroups [16:33:57] usprop=implicitgroups gets the implicit groups for the logged in user [16:34:04] mdholloway: thanks - super helpful! [16:34:19] coreyfloyd: the class is https://github.com/wikimedia/apps-android-wikipedia/blob/master/app/src/main/java/org/wikipedia/login/UserExtendedInfoClient.java [16:34:32] (called during the login flow) [16:35:33] mdholloway: got it - thanks for the link [16:40:12] * mdholloway thinks there's actually a bug in that code... [16:41:08] also i'm not sure why we just check implicitgroups rather than groups|implicitgroups, but based on some quick testing it might be redundant [16:43:47] mdholloway: lol… I’ll have to peek at the docs and see whats up [16:49:50] mdholloway: looks like groups should be a superset of implicitgroups FWIW [16:50:19] Implicit groups looks to only return groups that a user is “automatically” a member of - whatever that means [16:50:22] yeah. not sure why implicitgroups is used here, looking for discussion... [16:53:06] mdholloway: you don't have to worry about it for me… but just a heads up for you [16:55:52] ah ok, i figured out my other point of confusion [16:56:02] i think that query could be simplified a bit but it isn't critical [16:56:59] i thought it had a typo and still worked for some bizarre reason, but it doesn't ;) [17:14:56] * pnorman is home [18:19:39] niedzielski: JoshM: reets_afk: climadeo: hey all i'm pausing on this https://phabricator.wikimedia.org/T171355 based on our chat earlier. lemme know how you'd like to handle it :) [18:19:58] okey dokey [19:42:58] mdholloway: fyi, there's a simple bump patch https://gerrit.wikimedia.org/r/#/c/367468/ in case you are around [19:43:28] bearND: bumped! [19:43:37] ty [19:44:07] i'll take a minute to double-check the app accept: headers while i'm at it [19:45:37] mdholloway: I think the disambiguation flag might be useful for the Android app, too [20:28:04] mdholloway: Luckily I read your message, because I was about to delete how to get a page summary for a given title :D [20:28:23] jcasariego: ah, i'm glad i took another look! [20:28:55] mdholloway: yes, thanks! [21:23:02] niedzielski: hey have a couple minutes for batcave? [21:23:37] omw [22:20:33] mdholloway|bbl: coreyfloyd : following up wrt your earlier discussion about getting group membership info. The earlier API example was missing the user name (parameters ususers) [22:20:33] for list=users (for an example user named "A"): https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&list=users&meta=userinfo&formatversion=2&usprop=implicitgroups&ususers=A [22:20:52] both implicitgroups and groups seem to return the same info [23:02:25] implicit means groups you're automatically in [23:35:28] bearND: thanks for the update