[06:22:15] Hey, Anybody here who know HTMLForms in MediaWiki? (For Special Pages) [11:38:08] Hey, I found that I might want to use the extension "Variables", it doesn't seem to be found with composer. Are there anything else that I could use instead? [11:39:06] I would like to have temporary variables in pages, so that I don't have to repeat everything all the time. For example when doing if statements, I have to do #ifeq 'statement', and then wrtie the whole thing again when I want to print that 'statement' [11:39:19] It kills my soul inside for doing stuff like that [11:40:04] I don't want any extensions that I have to download manually (please remove the ones that aren't offered in package managers, so that users/admins will update their extensions) [11:42:39] wow, basically a few of the extensions are available via composer [11:43:26] what a mess, so there are n+1 ways of acquiring extensions, it is pretty hard for anyone to maintain this in the long run [11:44:20] I guess I'll just stick to writing overly complicated and long 'formulas' on templates then [11:44:57] Most extensions aren't available via composer [11:45:04] Because it's not really a supported method of installing extensions [11:46:45] If you don't want to install an extension "manually" (whether from tarball, or git or similar), and such, make your life harder in one way or another, that's your decision [11:46:57] https://www.mediawiki.org/wiki/Composer/For_extensions [11:47:03] https://www.mediawiki.org/wiki/Composer/For_extensions#Current_status [11:47:14] Why is composer introduced if it isn't supported? [11:47:20] https://phabricator.wikimedia.org/T467#1343633 [11:47:37] For managing third party libraries [11:47:47] https://www.mediawiki.org/wiki/Composer [11:47:52] "Composer is a dependency manager for PHP libraries." [11:48:00] a MW extension isn't a PHP library [11:48:07] https://www.mediawiki.org/wiki/Composer [11:48:56] Reedy: thanks [11:51:48] Quite a mess for MW it seems [11:52:29] I will just stick to composer and get rid of other extras that need to be manually installed. It is not maintainable if one has to download files by hand [11:52:54] Hopefully the issue will be solved and a migration path will be delivered [11:53:30] You can install them by cloning the extensions git repository [11:55:00] That's a nice workaround, but I can't do that. I don't know who will maintain this in the future, I am here to fix this mess. The one continuing in later years might not know git [11:55:45] It's a reasonably standard tool... [11:55:53] It's not really a workaround [11:57:14] could I use composer to install from git? [11:58:07] Git surely is a standard tool for any serious programmer, but I doubt many mediawiki users are familiar with it [11:59:48] https://github.com/wikimedia/mediawiki-extensions-Variables/blob/master/composer.json [11:59:52] so there it is [13:04:23] well didn't get composer to install variables from git, I guess the composer.json is missing version or smth [15:36:58] Technical Advice IRC meeting starting in 25 minutes in channel #wikimedia-tech, hosts: @addshore & @chiborg - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [22:21:29] anomie: any idea why "[Wo3vKwpAEDUAAI5M8FQAAAAK] Exception caught: Internal error in ApiQueryAllUsers::execute: Saw more duplicate rows than expected" happens/might indicate? [23:37:06] Hauskatze: Best guess I have is duplicate rows in the querycachetwo table. You might see if SELECT qcc_namespace, qcc_title FROM querycachetwo WHERE qcc_type = 'activeusers' GROUP BY qcc_namespace, qcc_title HAVING COUNT(*) > 1; returns any rows. [23:37:39] anomie: would that work on a replica? I don't have shell. [23:38:02] Hauskatze: Is this happening on a WMF wiki? Which one, I can check it. [23:38:02] curiously other users can add me, while I cannot query my own username [23:38:17] anomie: added you to the ticket, it's happening on mediawikiwiki [23:38:35] https://phabricator.wikimedia.org/T187834 [23:42:14] Hauskatze: Hmm. I can't reproduce it from the queries in that task. [23:43:07] anomie: neither qgil either, but it's happening only to me then? What a weird error. [23:43:16] there are logstash codes afaics [23:45:26] Hauskatze: Is it still happening right now? [23:49:17] anomie: let me retest, I logged out [23:50:31] I see the error on there. Hmm. [23:50:41] anomie: cannot add my username, nope, The API fails. [23:51:13] VM218:54 XHR finished loading: GET "https://www.mediawiki.org/w/api.php?action=query&format=json&list=allusers&auprefix=MarcoAur&aulimit=10". [23:52:27] now it works, somewhat [23:52:54] Hauskatze: Do you have the X-Wikimedia-Debug extension? [23:53:58] anomie: sure [23:55:17] Hauskatze: Load that https://www.mediawiki.org/w/api.php?action=query&format=json&list=allusers&auprefix=MarcoAur&aulimit=10 URL using the extension to target mwdebug1002, please. I'll probably be having you do this a few times as I try different things. [23:55:48] ok, do you want me to check "log", "profile" or "read only" ? [23:56:03] log, yes. I don't think the other two will help us. [23:56:25] code: "internal_api_error_MWException", info: "[Wo4HFgpAIDMAAEoADVoAAAAQ] Exception caught: Inter…s::execute: Saw more duplicate rows than expected"} [23:56:29] with &debug=true [23:56:38] activating x-wikimedia-debug now [23:56:53] and we're on [23:59:31] trick: if I write "MarcoAurelio" (which is not recognized) but I hit "Enter" it lets me [23:59:45] but if instead I do the "submit" thing, it errors