!mduWVRtKzYinVAelXP:matrix.org

MWStake General

129 Members
MediaWIki Stakeholders' Group general discussion25 Servers

Load older messages


SenderMessageTime
16 Sep 2020
@tgr:matrix.orgtgrRe: accessibility, plenty of companies do audits. E.g. https://axesslab.com/accessibility-review-by-expert/ has packages ranging from €2000 to €6500. Might be a good subject for a Wikimedia grant?17:54:24
@jarmicols:matrix.orgJared Olson freephile: as Meza includes UploadWizard it's in use on the ISS wiki. As far as I know it just worked, and I don't recall us messing with Template:Info. ISS does not have Scribunto.
I can't tell what the template is needed for - does it play a part in generating the description pages?
21:48:39
@thorsten:synod.imthorsten left the room.23:57:11
17 Sep 2020
@tgr:matrix.orgtgryeah, it's used to display all the information the upload dialog collects, like description or author05:29:08
@hexmode:matrix.orghexmode
In reply to @freephile:matrix.org
Has anyone implemented the UploadWizard on a 3rd-party wiki?
yes, but I don't think they use it. I am prefering SimpleBatchUpload
18:15:20
18 Sep 2020
@hexmode:matrix.orghexmode cicalese, tgr or anyone else who knows MW internals. If I have a user I've just created from User::newFromName() and it is still id=0 since it hasn't been saved yet, how do get MW to give the user an ID? 17:22:30
@hexmode:matrix.orghexmodeHmmm.... looking at the code, it looks like I'm supposed to use User::newSystemUser()17:22:53
@hexmode:matrix.orghexmodeoops, no, def not17:24:18
@hexmode:matrix.orghexmodeUser::createNew() ... User::newSystemUser() is used to create system accounts not used for logging in17:25:03
@marijnw:matrix.orgMarijn van Wezel You can probably use $user->addToDatabase() 17:31:01
@marijnw:matrix.orgMarijn van Wezel It has some caveats, so I'd definitely read up on it more 17:31:48
@hexmode:matrix.orghexmodeah... I missed that one17:31:59
@hexmode:matrix.orghexmodeI think the great actor migration just made my old method obsolete. But it worked in 1.27!17:33:29
@tgr:matrix.orgtgrin general, having to create user records is a bit of a code smell17:54:06
@tgr:matrix.orgtgrmuch like creating revision records manually, it's rare that you'd need to use it directly outside core17:56:13
@hexmode:matrix.orghexmodeyep, I'm sticking with User::createUser. I used to be able to do this with user->load(), I think, but that doesn't work now.18:12:13
@hexmode:matrix.orghexmodeIf you know of a way to make sure I have a user with a valid user_id, I'm all ears.18:12:48
@marijnw:matrix.orgMarijn van WezelIf you just need any user with a user ID, why not use a system user?18:19:35
@freephile:matrix.orgrundgSpeaking of Actor Migration, I'm still blocked from upgrading my wikis to 1.34 because of the "duplicate actor name" issue https://phabricator.wikimedia.org/T229092 If anyone can provide guidance, I'd love to stop banging my head against the wall.18:20:38
@hexmode:matrix.orghexmode

Marijn van Wezel: I need to be able to create user based on an opaque number (what $CLIENT calls the "SSO"). At this point I've been creating the users using the user's email address since that is unique and readable. so it isn't just "I need a user" but I need to ensure the SSO/email combo stays the same. If it changes (usually a name changes) I need to update the SSO/email -> user_id mapping.

In any case, this is the sort of situation you get when you have a developer (me) working by himself without someone to review the code. I'm sure my code has a musty smell.

18:31:53
@hexmode:matrix.orghexmodeBut I do try to make regular use of air freshener18:32:15
@hexmode:matrix.orghexmode freephile: I ran into something with that, I think. I'm in the middle of something, but ping me later so I can look at it. 18:33:28
@freephile:matrix.orgrundgRedacted or Malformed Event18:34:06
@freephile:matrix.orgrundg👍18:34:31
@hexmode:matrix.orghexmode freephile: so, its always an empty actor_name 18:52:45
@hexmode:matrix.orghexmode * freephile: so, its always an empty actor_name? 18:52:48
@freephile:matrix.orgrundgno18:54:19
@freephile:matrix.orgrundgactually I was getting empty actor_name in previous migrations, or different DBs, but this time I'm getting duplicates for 'Redirect fixer'18:55:01
@freephile:matrix.orgrundgWhere does that come from? I don't know.18:55:16
@freephile:matrix.orgrundgthere's only one case of it in core: it's the English translation for the Interface Message 'double-redirect-fixer'18:56:47

Show newer messages


Back to Room ListRoom Version: