16 Sep 2020 |
tgr | Re: 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 |
Jared 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 left the room. | 23:57:11 |
17 Sep 2020 |
tgr | yeah, it's used to display all the information the upload dialog collects, like description or author | 05:29:08 |
hexmode | 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 | 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 | Hmmm.... looking at the code, it looks like I'm supposed to use User::newSystemUser() | 17:22:53 |
hexmode | oops, no, def not | 17:24:18 |
hexmode | User::createNew() ... User::newSystemUser() is used to create system accounts not used for logging in | 17:25:03 |
Marijn van Wezel | You can probably use $user->addToDatabase() | 17:31:01 |
Marijn van Wezel | It has some caveats, so I'd definitely read up on it more | 17:31:48 |
hexmode | ah... I missed that one | 17:31:59 |
hexmode | I think the great actor migration just made my old method obsolete. But it worked in 1.27! | 17:33:29 |
tgr | in general, having to create user records is a bit of a code smell | 17:54:06 |
tgr | much like creating revision records manually, it's rare that you'd need to use it directly outside core | 17:56:13 |
hexmode | yep, 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 | If you know of a way to make sure I have a user with a valid user_id, I'm all ears. | 18:12:48 |
Marijn van Wezel | If you just need any user with a user ID, why not use a system user? | 18:19:35 |
rundg | Speaking 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 | 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 | But I do try to make regular use of air freshener | 18:32:15 |
hexmode | 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 |
rundg | Redacted or Malformed Event | 18:34:06 |
rundg | 👍 | 18:34:31 |
hexmode | freephile: so, its always an empty actor_name | 18:52:45 |
hexmode | * freephile: so, its always an empty actor_name ? | 18:52:48 |
rundg | no | 18:54:19 |
rundg | actually 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 |
rundg | Where does that come from? I don't know. | 18:55:16 |
rundg | there's only one case of it in core: it's the English translation for the Interface Message 'double-redirect-fixer' | 18:56:47 |