When running maintenance script for T6055, I noticed that there are 11 rights/rights log entries on MetaWiki, where log_title is in form #(userId)@(wikiId). All these entries are quite old and seem to be a historical quirk. It's expected that – when using #id syntax on Special:UserRights – the log entry will link to the resolved user page, thus having a valid title in the log.
Given that the titles contain #, they are invalid and attempting to parse them might lead to unexpected exceptions. They can also make it harder to discover the relevant log entries when doing analytics. Therefore, I'd like to propose fixing the log entries, so that they properly refer to the user, whose rights were changed.
The logs in question are (all in metawiki database):
| log_id | log_title | correct_title |
|---|---|---|
| 243 | #7@scnwiktionary | Pippu_d'Angelo@scnwiktionary |
| 1995 | #41983@enwiki | Ævar_Arnfjörð_Bjarmason@enwiki |
| 2024 | #1207@svwiki | Lamré@svwiki |
| 2740 | #7@fiu_vrowiki | Võrok@fiu_vrowiki |
| 3924 | #58@tewiki | వైజాసత్య@tewiki |
| 10269 | #185@fiwiktionary | H-Bot@fiwiktionary |
| 11138 | #120@fawiki | Golnab801221215@fawiki |
| 11139 | #120@fawiki | Golnab801221215@fawiki |
| 11140 | #210@fawiki | دانیل@fawiki |
| 15375 | #2@iswikisource | Stefán_Ingi@iswikisource |
| 46739 | #53@tywiki | Taʻata_ʻeuropa@tywiki |
Then, I also checked other wikis for rights logs, where log_title starts with #. There was one such instance in ptwiki database:
| log_id | log_title | correct_title |
|---|---|---|
| 1197 | #1773 | N&n's |