[07:24:34] is there a way of showing a $dbw raw sql query? [07:42:26] tkore: what do you mean? [08:38:00] legoktm, for example - a $dbw->select(`some query`)->raw() statement would result in 'SELECT * FROM some_table WHERE some_id = 2' [08:38:24] the raw sql result would show the output of the abstracted query done with $dbw->select() [08:51:32] tkore: I think legoktm was referring to where do you want it to show? for example on a page? in a special page? [08:52:42] p858snake, it's only for debugging purposes. I could use it on a special page and just var_dump() and exit(). I just want to see the final query I'm using [09:08:07] the closest thing I can see in Wikimedia\Rdbms\IDatabase is lastQuery() [09:08:20] so I guess I -could- use it before the $dbw->commit() ... [12:32:55] yup, used $dbw->lastQuery [12:33:11] now I just need to find out how to insert multiple records in one go 🤔 [13:49:07] tkore: Pass arrays [13:49:44] Reedy, aye, I looked at the Database class and figured it out [13:50:00] as usual, it wasn't documented anywhere ;P [13:51:09] tkore: Yes it is [13:51:30] https://github.com/wikimedia/mediawiki/blob/master/includes/libs/rdbms/database/IDatabase.php#L905 [13:53:24] Reedy: Well excuse me for going to the mediawiki.org docs ¯\_(ツ)_/¯ [13:53:47] But thanks, I'll keep a reminder to look in the repo. [13:53:55] It's also documented in https://doc.wikimedia.org/mediawiki-core/master/php/interfaceWikimedia_1_1Rdbms_1_1IDatabase.html#a085ba5d2ed85ad7f71d083760da67178 [13:54:07] Also, mediawiki.org is a wiki [13:54:09] Feel free to amend it :P [13:54:53] Huh. I looked at this very link but I missed the assoc array part. /facepalm [13:55:36] xD [13:57:18] The docs could -still- be a -lot- better though XD [13:57:28] {{sofixit}} [13:59:30] I will, once I get into the whole gerrit ecosystem [13:59:45] Why not use github is beyond me ¯\_(ツ)_/¯ [14:00:04] It's not free software... It's not controlled by us... [14:00:08] Numerous reasons [14:01:06] ah well [14:02:39] Gerrit isn't that much harder to use [14:02:47] Just a slightly different workflow [14:14:54] Reedy, yup, I guess I'll find out soon enough ;d [15:35:57] Greetings to all. I had MediaWiki 1.28.2, I migrated to the version 1.30: I exported the database. Then I imported the database through PhpMyAdmin by creating a new database, then in the LocalSettings file I changed the connection settings to the database and it all worked: the data on the main page was updated, but now I can not log in as a user with the nickname Admin (As on the "past" site) . When sending the login form, an er [15:37:01] When sending the login form, an error occurs (Quotation): An error occurred in the database. This may indicate an error in the software. [Wu8gh @ jnU-7Hu5WWRub4FQAAAAU] 2018-05-06 15:34:32: Unrecoverable exception of the type "Wikimedia \ Rdbms \ DBQueryError" [16:05:07] Hello, i would like to modify this code: https://pastebin.com/G7WFr1Kb which shows the toolbox in the foreground theme, to only show if the user is a sysop [16:31:28] Also, is there a way for me to embed a talk page inside another page [16:37:32] Is mediawiki 1.31 is officially declared as stable? [16:51:05] What is the stable MediaWiki version now? [19:33:02] Hmm. I really wish that template:Extension took info from extension.json [19:33:25] I'm kind of thinking of writing a bot that would copy all the extension.json files into mediawiki.org at regular intervals [19:36:04] although, I'm not sure if it would make sense to just throw them into Extension:extname/extension.json, or to make one big lua table in Module:Extensioninfo that could be loaded via mw.loadData() [20:50:18] bawolff: I think tgr has talked about similar things. Y'all should get together and make a plan. :) [20:50:48] Its silly to have all that data duplicated and manually updated