[01:13:53] How do i set $wgParserOutputHooks in extension.json [01:13:59] ? [01:14:48] I found Extension:NoCat as an example, but i think its also broken [01:16:42] Maybe i should use an extension function, but then legoktm will give me a death glare [01:29:07] bawolff_: why can't you use https://www.mediawiki.org/wiki/Manual:Hooks/OutputPageParserOutput ? [01:29:45] I didn't think about that [01:30:23] But, I suppose I could use $parser->getExtensionData() to do the equivalent [01:30:41] Does this mean that ParserOutputHook's are semi-deprecated? [01:31:50] legoktm: Thanks :) [01:32:51] bawolff_: I think so, we should probably officially do that [01:34:36] legoktm: Althought, tbh, I don't understand what exactly happens here. $wgParserOutputHooks is an array, so it should be like the user set it to []. Wouldn't extension.json call array_merge in that case, and it would just merge it together? [01:37:36] putting core stuff in "config" is a big no-no, we normally try to throw exceptions for that [01:38:14] the behavior for that kind of stuff is very undefined [01:42:23] Sure, I just don't understand from a code perspective how it is distinguishing between "A user set this value in LocalSettings.php" vs "This value was set in DefaultSettings.php" [09:59:20] tgr|away: hey, tell me when you're around [10:07:05] Amir1: around but on a poor connection [10:08:43] tgr: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CentralAuth/+/458766 (Basically I'm running this script https://phabricator.wikimedia.org/T201009, Am I doing it right?) [10:14:36] Amir1: is it a good idea to run that now? the DC switchover starts next week [10:15:02] It is the test runs [10:15:18] oh, OK then [10:15:32] but won't go too serious until the dc is switched [10:16:13] you need to add the null password config first, I don't remember if I did that [10:17:27] thanks for picking this project up btw! [10:21:12] no worries, you have done the hard job, I'm just doing small things here and there [16:34:11] huh. https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/CheckUser/+/458715/ is kind of weird. It should be able to detect that User::newFromId() casts to an (int) and thus is safe [16:35:09] err, helps if i look at the right function. [16:40:44] I have seen these fancy BUG labels on Phabricator, and I believe I have seen Feature request as well. How are these labels assigned? Don't seem to be projects, and didn't find anything in the UI… [16:41:38] MGC: Example? [16:42:26] maybe you have https://phabricator.wikimedia.org/T93499 in mind [16:45:58] https://phab.wmfusercontent.org/file/data/vgzpvfdpgfaa3mqeb7hj/PHID-FILE-ipwqrdsvmcqcxgl3spwa/New-Readers_%C2%B7_Workboard.png < Yeah, this thing, just saying BUG instead of DEADLINE [16:48:14] they can only be set when creating tasks using custom forms [16:48:20] there's a bug about it somewhere [16:48:34] MGC: I don't see that. Instead it displays a date itself. [16:48:45] wherever that screenshot is from, steps to reproduce are welcome. [16:48:55] I looked at https://phabricator.wikimedia.org/project/board/2140/query/all/ and https://phabricator.wikimedia.org/maniphest/query/Nu1yG6lyXeAY/#R [16:49:32] I know, it isn't happening like that anymore [16:50:05] ah, alright :) [16:50:39] I was talking about this, just found that: https://phabricator.wikimedia.org/maniphest/query/k6FR08_EluLi/#R [16:52:32] It would be super useful if we could use that to mark task types (with options like Feature request, Maintenance and so on) manually [16:55:33] Well, ideally at creation, but it should be adjustable in a simple way afterwards. However, this seems to be impossible right now given what Matmarex says about it. [16:55:34] https://phabricator.wikimedia.org/T93499 I guess [16:56:08] I admit I have no idea how to set "subtypes". I'd hope it's documented :-/ [16:56:43] andre__: lol, if you don't know, there is no hope for the rest of us ;) [16:57:26] I know, but it seems to be implemented in part already, while I can't find any concrete discussion about which types should exist and how they should be used. [16:57:44] Messing with the Search a bit, I found we have these subtypes currently defined: [16:57:48] Administrative Request [16:57:49] Bug Report [16:57:49] Deadline [16:57:49] Feature Request [16:57:49] Goal [16:57:50] Release [16:57:51] Task [16:59:11] Ah, I just found the discussion way up above in the task you mentioned [17:48:16] bawolff, I don't follow everything, sorry to destroy your imagination :P [17:49:14] andre__: Next you're going to tell me santa clause isn't real [17:50:41] That's clearly not true! Don't believe the liberal media! ;) [18:56:58] http://thehill.com/blogs/blog-briefing-room/news/357454-air-force-retracts-tweets-claiming-that-santa-claus-isnt-real [20:40:37] In an extension, how can I know the current section depth? and trace back up super sections? (headers) [20:41:26] If in ==one== ===one-a=== ====one-a-1====, how can I see the path to me? [20:43:41] The level in a page... text for each level heading.... [20:44:19] i think you can't :( [20:47:53] Solifugus: you have to look at the semi-parsed or fully-parsed representation [20:48:01] no way to do it from looking at raw wikitext