[09:53:11] [[Tech]]; EddieGP; /* HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */; https://meta.wikimedia.org/w/index.php?diff=17297483&oldid=17296632&rcid=10644334 [11:34:43] For my better technical understanding: I edit a template. I purge a wiki page which uses/embeds that template. Still that page shows the old version of the template. How long do I have to wait to pick that change up? Until the JobQueue has picked it up? [11:46:32] andre__: do you have a jobqueue runner configured ? [11:46:51] I actually refer to www.mediawiki.org. :P [11:47:21] This is probably a very basic question but I've always wanted to understand this. [11:47:24] oh that usually should be instant. [11:48:32] if you specifically purge a page, then then noramlly, that forces the renderer, to fetch the latest version of a template. [11:49:02] Hmm, weird. Because I edited https://www.mediawiki.org/wiki/Template:API to remove the 6th bullet point in that box. And I have purged https://www.mediawiki.org/wiki/API:Main_page but the old one is still displayed for me. And passed my browser cache, yadda yadda. [11:49:33] same in a fresh (different) browser - "Tutorial" should not be listed anymore. [11:53:15] oh, this is possibly because of translations... [11:53:46] changing to elements that need to be translated require to be approved by a translation admin first. [11:55:37] eh. oops.. [11:56:10] i think i just approved it, but i have no clue if that was correct.. The translation extension is freaking dark magic to me. [11:56:24] Nemo_bis: help ? [11:56:28] join the club^ [11:59:09] thedj: Uh, now that is interesting. And funny, as I basically /removed/ a translation. [11:59:20] But good to know. That finally explains my confusion a bit. Thanks! [11:59:40] and yes, https://www.mediawiki.org/wiki/API:Main_page looks like expected now. Heh. [12:16:12] hmm, shouldn't translation pages use a different content model btw.... [13:23:17] thedj: there are worse extensions to wikitext :) [13:23:30] WFM, I don't see a link to the tutorial any longer in the navigational box at https://www.mediawiki.org/wiki/API:Main_page [13:24:04] maybe slow purges for the long job queue? O_o [13:31:59] DJ wrote "i think i just approved it" above. And that helped. [14:32:33] Technical Advice IRC meeting starting in 30 minutes in channel #wikimedia-tech, hosts: @addshore & @Andrew-WMDE - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [15:00:39] Technical Advice IRC meeting starting now in channel #wikimedia-tech, hosts: @addshore & @Andrew-WMDE - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [15:00:46] ok [15:00:47] * andre__ waves [15:02:33] \o [15:02:44] Hi addshore [15:02:45] Hi All, here starts this weeks installment! [15:03:49] I have 2 questions today and both are blockers. Will need your help :) [15:04:53] 1) I wanted to know as to how can I edit the captcha logic for simple captcha used on the mediawiki account creation page? [15:05:21] I have installed the Confirm edit extension and it works as well! [15:06:23] I am using Simple Captcha for this [15:07:34] According to me, these edits can be made if I change something here https://goo.gl/W4PxSS right? [15:07:49] So, it doesnt look like you can change the logic of SimpleCaptcha specifically [15:08:00] Ahh, yes, well you can change the code or make your own captcha class [15:09:10] Addshore: As a starter, I was trying to change the code for it(later I will create my own class) but is there anything we have to doafter modifying the PHP file? [15:09:30] smartyrad: there shouldnt be no [15:09:43] smartyrad: I'm curious, in what way are you changing it? [15:10:36] addshore: Ah , good question! I am trying to complete an issue on Phabricator located here https://phabricator.wikimedia.org/T177034 [15:10:42] *looks* [15:11:18] I figured that the first thing to try out would be to modify the existing file and understand how it works [15:12:54] Basically , I am still unable to figure out as to modify the existing code on the account creation page [15:13:40] Even wihtout modifying the captcha , I guess I can pull that off provided I know where the Html for the SignUp page is [15:15:22] addshore: FOr starters, I tried changing it by removing it altogether and seeing whether it still loads! [15:16:46] But somehow , magically it still loads even after I delete that function. i tried looking for other functions that might be responsible for the captcha but this seems like the only one [15:17:15] addshore: Any ideas? [15:19:19] which function in particualr? [15:19:28] do you have a patch somewhere i can look at? [15:20:05] https://github.com/wikimedia/mediawiki-extensions-ConfirmEdit/blob/499f9a71b3e9a461b18571d7909709f5217d2dd4/SimpleCaptcha/Captcha.php#L120 [15:20:51] addshore: Sure, I'll add a link to pastebin in a bit [15:23:29] addshore: Basically deleted the content https://pastebin.com/yRmXY1Ns (It still works) [15:25:29] hmm, smartyrad interesting [15:25:39] Did you try changing it instead of deleting it? what happened then? [15:25:49] It could be there is some sort of caching, but i hihgly doubt it [15:26:35] addshore: I strongly believe that this isn't the responsible function but could not find anything else [15:27:06] addshore: As far as caching is concerned , I ensured that I hard reload the page in chrome [15:31:25] Yup, after looking through the whole class it does look like that is the correct method [15:34:22] addshore: Any idea what it might be? I have found the call that's responsible for displaying stuff on that page [15:36:09] I'll add the link https://github.com/wikimedia/mediawiki/blob/79f24aece16d61f228db21e1b7f7b56a152cd9a1/includes/specialpage/LoginSignupSpecialPage.php#L581 [15:36:54] That's the exact line that loads the whole html on that page but I am not able to figure the location from where it gets all the data [15:41:07] smartyrad: so the form comes from getAuthForm [15:41:24] when you say "all the data" what exactly do you mean? [15:42:37] addshore: By that I meant as to where is the form being defined along with the captcha? [15:43:40] I mean some syntax/html should be there right? All I could see is $getform() everywhere but no origin :( [15:44:30] $formDescriptor = static::fieldInfoToFormDescriptor( $requests, $fieldInfo, $this->authAction ); [15:44:57] or even $fieldInfo = AuthenticationRequest::mergeFieldInfo( $requests ); [15:45:34] addshore: Thanks ,How can I edit the form then? [15:46:44] addshore: Sorry if my questions are lame but I am quite new to this as of now [15:51:42] smartyrad: maybe CaptchaAuthenticationRequest::getFieldInfo [15:52:48] smartyrad: https://github.com/wikimedia/mediawiki-extensions-ConfirmEdit/blob/master/includes/auth/CaptchaAuthenticationRequest.php#L52 [15:54:16] addshore: Thanks a ton! I'll just check it out [15:54:22] :) [15:54:30] Right, 5 minutes left! :D [15:56:10] addshore: In that case I'll check it after this meeting [15:56:23] THe second question is easy I guess [15:56:41] https://www.mediawiki.org/wiki/Extension:EventLogging/Programming#How_it_works [15:57:03] In that link , the first line mentions After you have created a schema, you must register it, by using the $wgEventLoggingSchemas [15:57:15] WHere will I add the $wgEventLoggingSchemas ? [15:57:52] addshore: Sorry for bothering you so much [15:58:03] smartyrad: no worries, thats why im here [15:58:32] smartyrad: you can do it in extension.json [15:59:18] I tried to adding it to the extension.json of the Eventloggin module [15:59:28] But it doesn't seem to work [15:59:41] I have confirmed that the module is loaded and working [15:59:55] smartyrad: for example https://github.com/wikimedia/mediawiki-extensions-NavigationTiming/blob/b3d878d680cba3e333f33c1dc4162944191b1737/extension.json#L51 [15:59:55] I just somehow need to get it registered [16:01:49] addshore: That adds it to the extension.json of another module [16:02:05] I want to use it within the COre module. [16:02:29] Or more specifically, call it on the Signup page that we were just discussing about [16:04:00] andre__, thedj, for translations, even once approved by translation-admin, there's still the 5-30 second pause whilst fuzzybot does its thing. e.g. https://www.mediawiki.org/w/index.php?title=Template:API/en&action=history [16:04:45] Would you perhaps know where to add https://www.mediawiki.org/wiki/Manual:$wgEventLoggingSchemas ? I tried adding it to localsettings.php but doesnt seem to help [16:05:45] localsetting.php of mediawiki core [16:06:07] smartyrad: aaaah [16:07:54] addshore: Dont wish to keep you waiting if you're busy now since the meeting has technically ended :) [16:08:21] smartyrad: hmm, for eventlogging in core I'm actually not sure [16:08:57] I have to dash now unfortunately :/ [16:09:02] That wraps up this hour! [16:09:20] addshore: Sure thing, no problem . Thanks a ton for your help!