[02:21:59] Block: https://www.mediawiki.org/wiki/Special:Contributions/223.24.158.118 [02:22:40] done [02:24:46] tyranny12 - you should consider doing the identify before joining channels [02:26:05] otherwise the cloak's not ... particularly useful [04:24:00] DSquirrelGM: cloaks don't effectively hide your IP anyway; it's trivial to obtain the IP of a cloaked nick [04:24:57] not really sure WHAT they were trying to do here - but it's not a translation or a valid language code afaik - should be deleted - https://www.mediawiki.org/w/index.php?title=Extension:GoogleLogin/es-formal&oldid=3691842 [04:27:56] done [08:00:47] hi there, (bug) in translation extension it's eating a text if i use expand/collapse [08:03:06] example https://i.imgur.com/b00IDve.png [08:51:37] * translate extension, [11:54:42] addshore: hey. i can't get xdebug to work with phpunit on the latest version of mwdd [11:54:45] can you help me debug this? [11:55:04] oooh, what happens? [11:55:09] using phpstorm? [11:55:10] nothing [11:55:12] what version? [11:55:13] doesn't connect [11:55:16] works for web requests [11:55:22] version of what? [11:55:28] oh works for web requests.... [11:55:29] hmmm [11:55:52] seems like it's just not enabled. or using the wrong port, or ip [11:56:03] something probably isn't right with the environment [11:56:17] im guessing this was caused by https://github.com/addshore/mediawiki-docker-dev/commit/135c51e5ceca511bfd0952723221ad3c8d596ceb ? [11:56:35] possibly? [11:56:47] if i change the .env file, do I have to restart the containers? [11:57:15] yup [11:59:19] suspend/resume, or something more radoical? [11:59:38] php -d xdebug.remote_enable=on /usr/bin/phpunit XYZTestCase.php ? [11:59:45] could also work [11:59:57] if you dont always want to have the debugger running [12:00:07] setting XDEBUG_REMOTE_AUTOSTART=1 in .env does not help [12:00:17] interesting [12:01:46] xdebug.remote_enable=on makes no difference either [12:01:56] mmm, very interesting [12:01:59] btw, I had to add -T to the exec command. [12:02:01] in which case, im afraid i dotn know :D [12:02:10] otherwise, it wouldn't run from within phpstorm [12:02:21] it's probably the IP and port being wrong as well [12:02:34] does it work for youP? [12:03:07] So, when i updated my docker my IP did change [12:03:16] (docker things are in a VM for me) [12:03:28] no vm here [12:03:28] but host.docker.internal got introduced, which is what I now have IDELOCALHOST set to [12:03:39] but if debugging is working for web requests, then thats probably not the issue [12:03:50] I make sure I'm setting IDELOCALHOST to my machine's external IP [12:14:47] addshore: even this doesn't work: [12:14:48] docker-compose exec -T "web" php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=172.16.67.176 //var/www/mediawiki/tests/phpunit/phpunit.php --wiki $1 //var/www/mediawiki/${*:2} [12:14:59] i don't get it. [12:15:19] i guess i'll try to turn it off and on again... [13:06:44] Hi, i have some categories with some prefix, i want to show all of them order by the amount of pages in any of them, what is the best way to do this? [13:22:55] I can extract all of the relevant categories with dpl, but cant find a way to sort it [14:41:30] NDKilla Hi!! [14:43:04] wpirc31 Hello [14:45:06] STUPID [14:45:27] openstack2020: ? [14:45:35] PLEASE BAN TO openstack2020, THIS USER WAS SAID STUPID. [14:45:46] Please stop shouting [14:46:32] Waggie BAN TO openstack2020 [14:48:08] NDKilla I can help you??? [14:48:22] openstack2020: Did you need assistance of some sort? [14:48:25] openstack2020 I CANNOT HELP YOU!!! [14:48:49] Waggie STUPID [14:49:02] Waggie BAN O @openstack2020 [14:49:05] TO [14:49:45] NDKilla: We don't follow orders very well here, and you've already been asked to stop shouting. [14:52:38] Hi, i have some categories with some prefix, i want to show all of them order by the amount of pages in any of them, what is the best way to do this? i can find all of the categories with dpl (titlematch) but how to srot them? [14:53:37] Nik80 Banned. [14:53:52] Waggie: Want to just get rid of them all? :) [14:56:48] Nik80: Which DPL extension? As we have a few that masquerade under a similar name [14:58:31] dpl3 (if i need to switch for that ill do it, but as i saw this is the maintained one?) [14:58:42] And im ok to combine some dpl code with wikicode to do that [14:59:56] https://help.gamepedia.com/Extension:DPL3/Manual [15:00:02] "The data displayed may be selected and sorted based on factors like author, namespace, date, name pattern, usage of templates, or references to other articles, with a variety of custom formatting possibilities." [15:00:13] It sounds like it shouldn't be difficult... But I haven't really used that one [15:00:56] Yea, but all of these talking about the property of that page as a page (size, last edit and so on), not as a category (how many pages that one includes) [15:01:25] I don't know if any of the authors hang around in here... [15:03:22] If you think on a way even without dpl im ok with it, dpl is just what i know and was intuitive ^_^ [15:11:37] https://www.mediawiki.org/wiki/Extension:DynamicPageList_(Wikimedia)#ordermethod [15:11:43] popularity — by number of hits [15:11:46] Would that work? [16:02:58] numberofhits - iguess that relevant to the categor page itself, so i think not :S [18:36:54] I've installed Invisible Captcha for a client to protect a form on Wordpress. Anyone know if I can get that working for Extension:ConfirmEdit brief searching with ecosia.org did not tell [18:38:07] I have a wiki where it would be nice if the checking to weed out bots would be done in the background and not requiring human effort from the user. [18:56:50] jukebohi: what is an invisible captcha? a honeypot? [19:08:31] jukebohi: see T160262 [19:08:32] T160262: Add support for Google's new Invisible reCAPTCHA - https://phabricator.wikimedia.org/T160262 [19:15:09] Thanks tgr_ [19:15:12] I subscribed [19:16:24] harmaahylje: invisible captcha from what I've read looks at user behaviour such as moving the cursor to determine that it does not seem like a bot without user being asked to solve anything [19:34:48] jukebohi: ok, thanks! [19:36:26] ole hyvä [20:32:17] hey guys how can I get the actor_id of an user? Is there a simply way without making a query to the actor table? [20:33:43] Probably not [20:34:06] It's an internal representation of a user... [20:34:39] because I see recentchanges has only rc_actor [20:36:03] The table? Or some public representation? [20:36:09] table [20:36:15] internally, things get joined to actor, and then to user if you need to somehow get the user id from the actor. This is an implementation detail that is not exposed on wiki [20:36:17] sorry forgot to write [20:36:55] OK, I thought I ask [20:37:14] Sometimes the docs are not updated [20:37:49] all the actor stuff is fairly recent; if you see docs that still reference the old (no longer in use) fields, feel free to be bold and update it :) [20:38:12] ok thanks guys [20:42:15] Hello all, some days ago I asked about onPageContentSave and someone told that you can't edit the content. I wanted to ask again to be sure. Reedy if you are here, can you say something regarding this topic, you seem to know a lot [20:45:30] I'm guessing they're possibly meaning because it's immutable? [20:45:42] But it's pass by reference, so you could change the context object being used... [20:48:26] Reedy: the variable being passed by reference is never used anywhere after the hook execution [20:48:32] and can't be used to modify the slot contents [20:48:33] Reedy and how? [20:49:03] Why is it passed by reference then? o_0 [20:49:27] before MCR was a thing, modifying it *did* let you change the contents of the page [20:49:44] as to why the ref wasn't dropped, idk? [20:49:48] Never mind it passes in a copy of the content... [20:49:49] dk12345699: Yeah, Skizzerz is definitely right [20:50:11] hmmm [20:50:52] do you have an idea how I could append something to the content after it was saved? [20:51:22] ooh I think Skizzerz was the one how told me that :) [20:51:29] who [20:51:32] I mean [20:51:33] it was :< [20:57:53] Don't we have some hooks earlier in the process? [21:10:54] depends I think? If you just care about people editing via the main edit page, you can use an EditPage hook I think [21:11:27] if you care about all forms of edit (e.g. including the API), then maybe one of the parser hooks? But idk how much leeway those give into injecting content [21:11:49] iirc it wasn't enough for my uses [21:11:58] Reedy I only know of onOutputPageBeforeHTML and with this hook it's not working properly. When the last thing is a n item of a list and the tag is automatically inserted. Now if we try to put a heading over the tag, then the heading is inside the above list [21:13:31] withe the js solution on mediawiki it's the same problem [21:14:12] and the same with a css :before solution [21:14:50] why do you want to change the edited content? [21:15:50] to append the tag with a line break before so that problem does not appear [21:15:57] Platonides [21:17:14] maybe there is a message you can edit to avoid that? [21:17:53] what message? [21:45:34] hello i have some problems with installing parsoid. when running parsoid test i'm getting errors; "-->40 unexpected results<--", "npm ERR! code ELIFECYCLE"; "npm ERR! errno 2";... "failed at the parsoid@0.11.0 parserTests script." [21:46:07] what could be the problem?