[07:55:34] [[Tech]]; ArchiverBot; Bot: Archiving 2 threads (older than 30 days) to [[Tech/Archives/2016]].; https://meta.wikimedia.org/w/index.php?diff=15730061&oldid=15716121&rcid=7963063 [13:23:47] brion: Want to close/merge that ticket? [14:38:44] anyone with prod DB access able to double check the results of a query? i suspect labs DB corruption [14:40:34] Yeah [14:42:01] select count(*) from imagelinks left join page on il_from = page_id where il_to = 'State_Railway_of_Thailand_Logo.png'; [14:42:09] Im getting 37 on labs [14:42:16] on wiki Im getting 1 [14:43:19] which wiki? [14:43:26] enwiki sorry [14:45:33] 2 [14:46:32] State_Railway_of_Thailand [14:46:35] Ok, looks like one poped up [14:46:37] Mass_Rapid_Transit_Master_Plan_in_Bangkok_Metropolitan_Region [14:46:59] thanks, definitely a labs DB corruption then [18:35:33] is it possible to change a user's email via the API? [18:35:57] nothing about email seems to be in the 'options' data. [18:36:59] Its technically not a normal "option" [18:38:22] So I don't think that module can set it [18:38:37] Similar to how you can't set passwords with that module [18:39:34] I wonder if changeauthenticationdata would work for that [18:40:50] * bawolff doesn't see how [18:42:59] grep seems to suggest the only way to change an email is via Special:ChangeEmail [19:35:54] bawolff: thanks [19:55:19] I'm trying to update user preferences via OAuth, and I'm running into 'badsession' : "Can only obtain a centralauthtoken when using CentralAuth sessions" [19:57:12] tgr: is it possible to obtain a centraltoken via OAuth? Or is there some other way besides action=options to update options via OAuth? [19:58:23] ragesoss: probably not possible, why do you need a centralauthtoken with OAuth? [19:58:40] I would like to update preferences (enable visualeditor) [19:58:53] the OAuth consumer permissions imply that this is possible. [19:58:56] oh right, we don't have a view/edit private prefs grant [20:00:41] tgr: does this mean something else? https://meta.wikimedia.org/wiki/Special:ListGrants#editmyoptions [20:00:53] or is there just not an actual implementation of that option? [20:03:24] ragesoss: no, I thought the viewmyprivateinfo right is needed to see your user settings but apparently not [20:03:33] in that case, it should just work [20:03:59] an OAuth header does the same thing a central token would [20:04:26] except that central tokens are not limited by grants, so allowing them to be fetched via OAuth would be unsafe [20:47:16] tgr: whenever I try to do an action=options update via oauth, using the same flow that works fine for edits, I get that error message. [20:48:47] ragesoss: you mean badsession? [20:48:54] tgr: yes. [20:57:15] tgr: ah, perhaps that error was misleading, caused by a misformed request. [21:12:25] ragesoss: the only API in the code of which 'badsession' appears is centralauthtoken, so maybe you used the wrong action [22:00:57] tgr: I'm using action=options and still getting that badsession error. [22:01:52] if I try to change the 'visualeditor-enable' preference, I get a success message but with this warning: {"warnings"=>{"options"=>{"*"=>"Validation error for 'visualeditor-enable': not a valid preference"}}, "options"=>"success"} [22:02:28] but if I try something like hideminor=1 (like in the examples), I get that badsession error.