[05:18:12] hi, all! [05:18:14] how to pass value from php to javascript? [05:18:20] this for extension, I need to pass the value from localsettings in javascript [05:41:44] pastakhov: you can use a MakeGlobalVariablesScript hook [05:41:58] $wgHooks['MakeGlobalVariablesScript'] = 'MyClass::myFunc'; [05:42:02] class MyClass { [05:42:13] static function myFunc( &$vars ) { [05:42:25] global $wgMyConfVar; [05:42:34] $vars['wgMyConfVar'] = $wgMyConfVar; [05:42:35] } [05:43:15] maybe with "return true" in there before the closing brace [06:10:34] TimStarling: thanks! [07:55:22] New review: Hashar; "That should already be in your local / personal git ignore. When ever you used vim and various git r..." [integration/jenkins-job-builder-config] (master); V: 0 C: -1; - https://gerrit.wikimedia.org/r/44852 [07:59:16] New patchset: Hashar; "whitelist Semantic MW authors" [integration/zuul-config] (master) - https://gerrit.wikimedia.org/r/44854 [08:00:21] New review: Hashar; "PS2:" [integration/zuul-config] (master); V: 0 C: 0; - https://gerrit.wikimedia.org/r/44854 [08:02:57] New patchset: Hashar; "jobs for mw/ext/Maps" [integration/jenkins-job-builder-config] (master) - https://gerrit.wikimedia.org/r/44958 [08:03:39] New review: Hashar; "Will rebase on top of https://gerrit.wikimedia.org/r/44958 which is the change adding Maps. I for..." [integration/jenkins-job-builder-config] (master); V: 0 C: -1; - https://gerrit.wikimedia.org/r/44853 [08:04:45] New patchset: Hashar; "jobs for mw/ext/Maps" [integration/jenkins-job-builder-config] (master) - https://gerrit.wikimedia.org/r/44958 [08:05:23] New review: Hashar; "Deployed that last friday :-]" [integration/jenkins-job-builder-config] (master); V: 2 C: 2; - https://gerrit.wikimedia.org/r/44958 [08:05:23] Change merged: Hashar; [integration/jenkins-job-builder-config] (master) - https://gerrit.wikimedia.org/r/44958 [08:10:02] New patchset: Hashar; "dependencies for Semantic{Maps,ResultFormats}" [integration/jenkins-job-builder-config] (master) - https://gerrit.wikimedia.org/r/44853 [08:10:51] New review: Hashar; "Rebased on top of the change that build the Maps jobs: https://gerrit.wikimedia.org/r/#/c/44958/2" [integration/jenkins-job-builder-config] (master); V: 2 C: 2; - https://gerrit.wikimedia.org/r/44853 [08:10:51] Change merged: Hashar; [integration/jenkins-job-builder-config] (master) - https://gerrit.wikimedia.org/r/44853 [08:14:15] hello [08:24:49] hi hashar [08:24:53] https://integration.mediawiki.org/ci/job/mwext-Translate-testextensions-master/184/console what is this about? [08:26:29] that is the console for the Translate unit tests ? :-D [08:26:35] good morning [08:27:10] need to verify [08:27:28] apparently we have some sanitization tests that verify the value passed to @group in commnets [10:21:52] New review: Jeroen De Dauw; "Huh. Thanks for the tip. That seems like an argument against most gitignore files we have in wmf hos..." [integration/jenkins-job-builder-config] (master) C: 0; - https://gerrit.wikimedia.org/r/44852 [10:26:20] JeroenDeDauw: I guess so :-] [10:26:36] JeroenDeDauw: we can merge it in though :] [10:27:13] hashar: I guess it's usefull for those poor people that don't know about the global thing like me [10:27:23] indeed [10:27:24] New patchset: Hashar; "Added gitignore" [integration/jenkins-job-builder-config] (master) - https://gerrit.wikimedia.org/r/44852 [10:27:48] do we really want to ignore any dot file ? [10:28:19] JeroenDeDauw: hi, where uses function removeLine (), removeMarker (), etc in jquery.googlemap.js? they needed? [10:29:38] New patchset: Hashar; ".gitignore (for dotfiles and editor temp files)" [integration/jenkins-job-builder-config] (master) - https://gerrit.wikimedia.org/r/44852 [10:30:04] New review: Hashar; "* added comment in .gitignore" [integration/jenkins-job-builder-config] (master); V: 0 C: 0; - https://gerrit.wikimedia.org/r/44852 [10:30:35] JeroenDeDauw: I have added comments in .gitignore / updated summary https://gerrit.wikimedia.org/r/#/c/44852/4 [10:30:46] JeroenDeDauw: if that works for you, I merge it :-] [10:31:03] I have set the -1 just to make sure you learn about the global .gitignore trick :-] [10:31:37] JeroenDeDauw: I'm talking about expansion maps. services\googlemaps3 [10:34:03] hashar: sure, and ty [10:34:18] hashar: did not expect that one to end up with 4 patchsets tho ;p [10:34:32] JeroenDeDauw: patch sets are cheap [10:34:42] just +1 and I merge https://gerrit.wikimedia.org/r/#/c/44852/4 ;-] [10:35:20] pastakhov: I have no idea, I did not write those [10:36:34] New review: Hashar; "Per discussion with Jeroen. Not everyone knows about the global .gitignore :-]" [integration/jenkins-job-builder-config] (master); V: 2 C: 2; - https://gerrit.wikimedia.org/r/44852 [10:36:34] Change merged: Hashar; [integration/jenkins-job-builder-config] (master) - https://gerrit.wikimedia.org/r/44852 [10:36:38] thanks ! [10:37:33] JeroenDeDauw: @author Jeroen De Dauw [10:37:48] hashar: slightly odd that in order to put global config you need to set some global config pointing to a second config file [10:38:03] pastakhov: i created the file and original code [10:38:12] but assure you that it changed plenty since [10:38:19] just do a git blame :p [10:38:34] probably writen by kim/netbrain [10:40:12] JeroenDeDauw: ok, thanks [11:19:56] JeroenDeDauw: git said blame you https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/Maps.git;a=blob;f=includes/services/GoogleMaps3/jquery.googlemap.js;h=46bee15a7978fa8dbdfa91a5203e85d0f6705fb3;hb=1abf9b5ce6c01f154621d8df521cbc6180cc31d1#l55 [11:21:10] pastakhov: ???? [11:21:58] pastakhov: https://github.com/wikimedia/mediawiki-extensions-Maps/blame/master/includes/services/GoogleMaps3/jquery.googlemap.js [11:22:11] looks like its blamed on me yes, since I applies someone else his patch [11:22:12] JeroenDeDauw: about function removeMarker [11:22:23] netbrain wrote those [11:22:32] Anyway, why are you caring who wrote them? [11:22:44] I don't have the answer to your question either way [11:22:52] Even If I'm wrong and did write it [11:22:54] ... [11:23:01] JeroenDeDauw: it seems they are not needed [11:23:17] pastakhov: them kill them if they annoy you :) [11:23:52] JeroenDeDauw: ok :-) [12:33:49] Reedy: can you do me a favor and review something for me? https://gerrit.wikimedia.org/r/#/c/38689/5 [12:34:04] this has been sitting there for a month now. it fixes a fatal error on the live site. [13:44:43] DanielK_WMDE: Sure [14:58:22] Change merged: Hashar; [integration/zuul-config] (master) - https://gerrit.wikimedia.org/r/44855 [15:04:32] JeroenDeDauw: around ? :-D [15:04:51] JeroenDeDauw: for the Wikibase entry point at https://gerrit.wikimedia.org/r/#/c/44863/ just wondering if that is not a biit too much complicated [15:04:53] :-] [15:05:05] JeroenDeDauw: also I am wondering if that would work both for a client and a server install [15:05:18] I believe the difference between both is based on some $wg setting [15:07:05] New review: Hashar; "ah great :-]" [integration/jenkins-job-builder] (master); V: 0 C: -2; - https://gerrit.wikimedia.org/r/44836 [15:27:23] hashar: eeewww... do we really need this?... [15:27:58] i mean, i guess it's needed for jenking to treat it as one extension [15:28:40] But it's three extensions. It will not work like one extension. If you load all three extensions at once, it's likely to cause trouble. [15:28:44] DanielK_WMDE: not really needed [15:28:47] (i guess we should check for that) [15:28:48] we can hack the jenkins extension loader [15:28:56] I have exchanged a few mails with Jeroen yesterday about that [15:29:23] i'd prefer that. if it doesn't cost too much time, that is. [16:03:00] * hashar waves [16:03:03] might connect tonight [17:01:30] Hmm [17:01:36] mediawiki-config tests might be broken [17:01:39] https://integration.mediawiki.org/ci/job/operations-mw-config-tests/905/console [17:01:43] 16:26:57 1) dbconfigTests::testDbAssignedToAnExistingCluster [17:01:44] 16:26:57 Invalid argument supplied for foreach() [17:02:09] foreach( $this->lb['sectionsByDB'] as $dbname => $cluster) { [17:07:07] DanielK_WMDE: if you load all 3 at once it causes trouble??? should not :) [17:07:17] DanielK_WMDE: and like my comment on gerrit says [17:07:21] this is not perfect [17:07:33] its just going after the low hanging fruit with a rough approach [17:07:36] that works [17:07:47] which is better then not having anything work just because it could be better [18:10:17] Any issues? [18:13:03] Hello kaldari, I just got here, is there talk about the wiki being down? [18:13:32] in this channel? [18:13:39] Not this channel [18:13:43] But yes, it's down for most people [18:14:17] What is the tech channel too watch discussions? [18:14:40] #wikimedia-operations [18:14:50] though #wikimedia-tech is also relevant [18:15:20] if you go to -operations it really is a watch-only channel though because people work in there. [18:15:35] Right, I'll be opening this, and the other one at startup from here. [18:16:34] I don't mind watching, and I was surprised to see such calm, in a place I imagined would be abuzz. [18:17:05] should be sorted now [19:45:19] New patchset: Hashar; "whitelist Semantic MW authors" [integration/zuul-config] (master) - https://gerrit.wikimedia.org/r/44854 [19:45:29] Change merged: Hashar; [integration/zuul-config] (master) - https://gerrit.wikimedia.org/r/44854 [20:14:28] New review: Krinkle; "How is that a do-not-submit reason? The entire purpose of our fork is so that we can experiment and ..." [integration/jenkins-job-builder] (master); V: 1 C: 1; - https://gerrit.wikimedia.org/r/44836 [21:20:55] New review: Ori.livneh; "- Use 'is' to compare w/None (x is None, x is not None, etc.)" [integration/jenkins-job-builder] (master); V: 0 C: 0; - https://gerrit.wikimedia.org/r/44836 [21:27:28] New patchset: Hashar; "PHP CodeSniffer macros and templates" [integration/jenkins-job-builder-config] (master) - https://gerrit.wikimedia.org/r/45063 [21:27:28] New patchset: Hashar; "phpcs jobs for mediawiki/core" [integration/jenkins-job-builder-config] (master) - https://gerrit.wikimedia.org/r/45064 [21:28:28] New patchset: Hashar; "phpcs jobs are non voting for now" [integration/zuul-config] (master) - https://gerrit.wikimedia.org/r/45065 [21:28:29] New patchset: Hashar; "triggers for PHP CodeSniffer" [integration/zuul-config] (master) - https://gerrit.wikimedia.org/r/45066 [21:36:38] so I found out that PHP has some coding standards [21:36:51] named PSR1 and PSR2 https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md [21:36:53] reading PSR2: [21:36:57] Code MUST use 4 spaces for indenting, not tabs. [21:37:00] There MUST NOT be a hard limit on line length; the soft limit MUST be 120 characters; lines SHOULD be 80 characters or less. [21:37:04] Opening braces for classes MUST go on the next line, and closing braces MUST go on the next line after the body. [21:37:08] Opening braces for methods MUST go on the next line, and closing braces MUST go on the next line after the body. [21:37:14] that is enough read [21:37:21] we are never going to support PSR2 :-] [21:37:24] oh god [21:37:31] standard are a good thing [21:37:38] oh no, tabs! [21:37:50] except the tab / space bikeshed [21:37:54] some other points are a good things [21:38:05] The only thing I like it the line length limits [21:38:29] i do everything in terminals which are 80 chars wide [21:38:41] * aude has a bright red line in vim at 80 chars [21:38:42] Are you from the 90s? [21:38:45] do not cross it! [21:38:52] Krenair: kind of :-] [21:39:25] 80 col + sometime 40 lines [21:39:36] I manage to have 3 split windows in such a small term hehe [21:39:51] then C+w, arrows to navigate [21:39:57] :) [21:40:00] * hashar reads PSR1 [21:40:05] anyway [21:40:18] I looked a bit at CodeSniffer again [21:40:26] and might cherry-pick some rules from PSR1 / PSR2 [21:40:31] to start reporting about them [21:41:04] Files MUST use only UTF-8 without BOM for PHP code. [21:41:05] hehe [21:42:54] will look at that later on [21:42:55] :-] [21:42:57] beeed time [21:45:50] beeed time [21:45:52] * hashar waves