[02:27:21] https://meta.miraheze.org/wiki/Community_Wishlist_Survey_2023/proposals could use some cleanup [03:07:50] @blankeclair hi how does one access a logger in a maint script [03:07:57] https://github.com/miraheze/CreateWiki/pull/605#discussion_r1997868090 [03:07:58] uhhh good q [03:08:18] ay caramba [03:08:29] you want to output to stderr right? [03:08:49] probably? [03:08:54] $this->output() should do then [03:08:59] well, idk if it does stdout or stderr [03:09:07] but i assume that you don't want to log to greylog [03:09:14] Well I was trying to use MW's logger function [03:09:25] to put into greylog? [03:09:34] [1/4] ```php [03:09:34] [2/4] $this->logger()->warning( [03:09:34] [3/4] 'No edits state config not found, using default instead.' [03:09:35] [4/4] );``` [03:09:38] idk how logs work [03:09:44] this should prob be in output [03:10:03] too much dev [03:10:41] [1/4] ```php [03:10:41] [2/4] $this->output( [03:10:42] [3/4] 'No edits state config not found, using default instead.' [03:10:42] [4/4] );``` [03:10:45] look [03:10:46] sane? [03:10:50] https://doc.wikimedia.org/mediawiki-core/master/php/classMediaWiki_1_1Maintenance_1_1Maintenance.html#a5bb95efe5ddccc8e52a6e6072097a209 [03:10:53] yeah that lgm [03:10:55] lgtm [03:11:53] actually [03:11:55] add trailing new line [03:12:17] ble [03:12:42] my IDEs reformat is supposed to be set to use mw standards [03:14:12] oki? [03:14:16] want me to do CR? [03:14:36] sure [03:14:51] btw, i figured out the bug in my custom tar write impl [03:14:52] push the output change [03:15:08] turns out that if the file is already aligned to 512 bytes, it would write an extra padding xD [03:15:12] which tools interpret as eof [03:15:18] reformat does this [03:15:24] [1/50] ```patch [03:15:25] [2/50] diff --git a/maintenance/ManageInactiveWikis.php b/maintenance/ManageInactiveWikis.php [03:15:25] [3/50] index c58cb54..dcd83f7 100644 [03:15:25] [4/50] --- a/maintenance/ManageInactiveWikis.php [03:15:26] [5/50] +++ b/maintenance/ManageInactiveWikis.php [03:15:26] [6/50] @@ -18,9 +18,11 @@ class ManageInactiveWikis extends Maintenance { [03:15:26] [7/50] public function __construct() { [03:15:27] [8/50] parent::__construct(); [03:15:27] [9/50] - $this->addOption( 'write', [03:15:27] [10/50] + $this->addOption( [03:15:28] [11/50] + 'write', [03:15:28] [12/50] 'Make changes to wikis that are eligible for the next stage in $wgCreateWikiStateDays.', [03:15:29] [13/50] - false, false [03:15:29] [14/50] + false, [03:15:30] [15/50] + false [03:15:30] [16/50] ); [03:15:31] [17/50] $this->addDescription( 'Script to manage inactive wikis in a wiki farm.' ); [03:15:31] [18/50] @@ -40,15 +42,10 @@ class ManageInactiveWikis extends Maintenance { [03:15:32] [19/50] $dbr = $databaseUtils->getGlobalReplicaDB(); [03:15:32] [20/50] - $wikis = $dbr->newSelectQueryBuilder() [03:15:33] [21/50] - ->select( 'wiki_dbname' ) [03:15:33] [22/50] - ->from( 'cw_wikis' ) [03:15:34] [23/50] - ->where( [ [03:15:34] [24/50] + $wikis = $dbr->newSelectQueryBuilder()->select( 'wiki_dbname' )->from( 'cw_wikis' )->where( [ [03:15:35] [25/50] 'wiki_inactive_exempt' => 0, [03:15:35] [26/50] 'wiki_deleted' => 0, [03:15:36] [27/50] - ] ) [03:15:36] [28/50] - ->caller( METHOD ) [03:15:37] [29/50] - ->fetchFieldValues(); [03:15:37] [30/50] + ] )->caller( METHOD )->fetchFieldValues(); [03:15:38] [31/50] foreach ( $wikis as $wiki ) { [03:15:38] [32/50] $remoteWiki = $remoteWikiFactory->newInstance( $wiki ); [03:15:39] [33/50] @@ -155,6 +152,7 @@ class ManageInactiveWikis extends Maintenance { [03:15:39] [34/50] } [03:15:40] [35/50] $remoteWiki->commit(); [03:15:40] [36/50] + [03:15:41] [37/50] return true; [03:15:41] [38/50] } [03:15:42] [39/50] @@ -229,8 +227,10 @@ class ManageInactiveWikis extends Maintenance { [03:15:42] [40/50] ], [03:15:43] [41/50] ]; [03:15:43] [42/50] - $this->getServiceContainer()->get( 'CreateWikiNotificationsManager' ) [03:15:44] [43/50] - ->notifyBureaucrats( $notificationData, $dbname ); [03:15:45] [44/50] + $this->getServiceContainer()->get( 'CreateWikiNotificationsManager' )->notifyBureaucrats( [03:15:45] [45/50] + $notificationData, [03:15:46] [46/50] + $dbname [03:15:46] [47/50] + ); [03:15:47] [48/50] } [03:15:47] [49/50] } [03:15:48] [50/50] ``` [03:18:54] i find it amusing how we're showering you in comments [03:19:47] gotta clean off the smell of stinky PHP [03:20:05] stimky UwU [03:20:19] i love that this a PR adding something put in policy a year ago [03:20:32] LMFAO [03:21:20] how long ago did you realize you were trans [03:21:23] for compariosn [03:21:36] one year- [03:21:42] more specifically, early dec 2024 [03:21:44] i need to get better at working with git gawd damn [03:21:50] it's a slow burn so i can't point at a specific day [03:21:53] you mean 23? [03:22:01] oh yeah 23 [03:22:10] oopsie :3c [03:22:25] gals so trans she traveled back in time to be trans [03:22:33] LMFAO xD [03:25:14] https://cdn.discordapp.com/attachments/1006789349498699827/1351033612220366983/jmlgqlG.gif?ex=67d8e79a&is=67d7961a&hm=380066eb143f5133c32e3be1705366754eb2f93cb5e3672796bf5fbfaa8736d4& [03:25:23] omg yay \o/ [03:25:43] https://meta.miraheze.org/wiki/User:BlankEclair/Quips?curid=77690&diff=459646&oldid=458878 [03:26:34] i need to back add a few quips [03:27:02] ikr [03:27:14] btw [03:27:20] do you know how to word a response for https://issue-tracker.miraheze.org/T13309#267947 [03:28:15] https://cdn.discordapp.com/attachments/615786602454581249/1328029098345365555/image0.jpg?ex=67d8457a&is=67d6f3fa&hm=4cbeb8a8588ac5c08dc515cd7726c04dbdd85a6aca748d72ee0e825648318c54& https://discord.com/channels/407504499280707585/407537962553966603/1346249783500607501 https://discord.com/channels/407504499280707585/407537962553966603/1346328942100873250 [03:28:43] oki, ty for the response ^_^ (/j) [03:29:16] Ask what parts don't make sense, try to clarify and suggest a naemserver to use? [03:29:30] I should be asleep so [03:29:34] idrk rn [03:29:45] fair [03:30:07] tmr ill add those [08:35:56] [1/2] > gals so trans she traveled back in time to be trans [08:35:57] [2/2] manga plot [09:08:15] technically, i always was trans [09:08:17] so :3c [09:08:30] true :3 [10:24:26] yeah ngl i spent a solid 30 second thinking “wait what’s the correct/polite way to phrase ‘how long ago did you realize you were trans’“ [10:24:43] thank you lol <3 [10:25:21] brain has a limitef compression of gay [10:42:04] do you want me to find when i posted the meme that did mortal damage to my egg btw [10:50:45] yes [10:55:34] 2023-12-03 02:29:23 AEDT [11:03:44] Predate tje wikitide merge [11:03:51] woa [11:03:59] by a bit [11:04:02] not WikiTide itseld [13:55:29] @cosmicalpha Daimona from the Campaign Events team responsed, I'm going to bed but hopefully you can see this when you're awake: https://phabricator.wikimedia.org/T388996 [16:09:21] That's hacky but brilliant tbh [16:09:56] It does save storing a dblist in /tmp [17:35:12] _laughs in Hydra because their SyncService supported stuff like this_ [21:33:31] hi guys, is there a way i can ask for an extension to be updated to its current version? [21:35:13] yeah, make a request on phorge [21:35:19] ...or you can poke me, since i happen to be online [21:36:14] ok! we're current experiencing an issue where TabberNeue is basically broken on MobileFrontend - Miraheze is currently on 2.7.2 but the git is on 2.7.4, if we could get that updated that would be awesome [21:36:22] let me know if i need to link anything or give any more details [21:36:29] ah okay cool [21:36:44] im not actually sure if the new version fixes the bug but its worth a shot LOL [21:37:44] y'know what, fair lol [21:37:45] CC @atxatx [21:38:16] > [18/03/2025 08:38] !log [blankeclair@mwtask181] starting deploy of {'l10n': True, 'versions': '1.43', 'upgrade_extensions': 'TabberNeue'} to all [21:38:35] i'll disappear in a few minutes [21:39:58] tedkalashnikov: updated [21:40:17] thank you so much! ill go see if it fixed anything LOL [21:40:57] it do be like that [21:41:30] will it take any time for the extensions' behaviour to update i.e. due to cache? [21:41:42] uhhhh maybe if they're alr in parser cache [21:41:59] but a lil action=purge should fix that :3c [21:42:59] looks like the bug still persists - thank you, ill go comment on the github issue about it! [21:43:05] lol fair [21:45:02] appreciate y'all [Imagine a heart emoji here]