[13:46:52] hi [13:47:03] how to restore an expired oauth client? [13:47:06] such as https://www.mediawiki.org/wiki/Special:OAuthListConsumers/view/010a0e693ad8fd9b223e115440f48e3c [13:48:00] I already asked at https://www.mediawiki.org/wiki/Thread:Project:Current_issues/Workflow_for_OAuth_clients but only 1 reply [13:51:24] Request: GET http://git.wikimedia.org/, from 116.1.3.207 via cp1043 cp1043 ([208.80.154.241]:80), Varnish XID 1002773300 [13:51:24] Error: 503, Service Unavailable at Wed, 15 Apr 2015 13:50:50 GMT [13:52:16] gr there's another ip :( [13:53:18] liangent: yeah, known. fixed [13:55:59] do I have to propose another one? [13:56:27] https://www.mediawiki.org/wiki/Special:OAuthConsumerRegistration/update/010a0e693ad8fd9b223e115440f48e3c won't let me update it [14:03:05] anyone? [15:40:10] Does anyone know what to do with an expired OAuth client? [19:09:55] hi, I'm unable to reproduce an edit conflict via the Edit API. I have set "starttimestamp" which let's say is 5 minutes ago, "endtimestamp" which is 1 minute ago, and let's say the page was last edited 3 minutes ago [19:10:13] for me I still get a "success" and it just overwrites the changed content [19:10:55] endtimestamp? [19:10:59] anomie: ^ [19:10:59] I thought it was basetimestamp? [19:11:27] yes sorry, I meant basetimestamp [19:11:58] MusikAnimal: I'll take a look in probably 50 minutes, in a meeting at the moment. [19:12:18] okay, looks like I messed my code some and got those mixed, let me verify this is still a problem first [19:12:37] Ping me if you get it figured out [19:12:39] I think it said endtimestamp in one place and base in the other =P [19:12:44] ok will do thanks! [19:19:41] anomie: no dice, basetimestamp was 2015-04-15T04:23:03Z and starttimestamp was 2015-04-15T19:15:42Z, I edited the page via the web at 19:16 [19:20:06] https://test.wikipedia.org/w/index.php?title=Wikipedia:Requests_for_permissions/Rollback&action=history [20:18:43] MusikAnimal: Hrm. I just tried it on testwiki with my bot code and it properly detected the conflict with my simple test edit. [20:19:02] what does the response look like? [20:19:54] surely it still doesn't have a result with the value "Success"? [20:20:12] I'm having to deal with XML in Ruby which is a pain, not easy to inspect the response [20:22:15] MusikAnimal: https://phabricator.wikimedia.org/P524 [20:26:38] I must be missing something. My steps are to first run the script till it fetches the page, and hits the debugger, so now we have basetimestamp = last edit of page, and starttimestamp = now [20:27:14] which execution is still halted, I edit the page with a bunch of conflicting text and save it, then continue execution in the script [20:27:47] when the script goes to edit the page it passes in basetimestamp and starttimestamp, but evidently does not detect an edit conflict [20:27:59] under that scenario, an edit conflict should occur, no? [20:28:35] ^ anomie [20:28:52] MusikAnimal: Should, yes [20:29:52] and I'm not conflicting with the current user [20:31:21] ah, maybe it's the Ruby ediawiki API wrapper [20:45:00] yeah it was the Ruby gem I was using. It calls its Create method with the option overwrite=true, not helpful [20:45:42] anyways thanks for the help anomie! [20:46:07] MusikAnimal: No problem!