Page MenuHomePhabricator

Update username in AbuseFilter interface when user is renamed using Renameuser
Open, Stalled, MediumPublic

Details

Reference
bz25377

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:22 PM
bzimport added a project: AbuseFilter.
bzimport set Reference to bz25377.
bzimport added a subscriber: Unknown Object (MLST).

The same problem happens with the CodeReview extension. Is this something that could be fixed in both extensions at once?

thogol wrote:

I want to add that a search for the old username does not give any results with the log, despite the fact that the old username does still appear in the log (you get there only by searching for the *new* username which does in fact *not* appear in the log). It's very confusing. :)

Best regards.

This is because user renaming is not a MediaWiki core feature. We use Extension:Renameuser.

Extension:Renameuser provides several hooks for other extensions to register their tables/columns that need updating in case of a rename.

So it is correct that this is a request for the AbuseFilter extension to use those hooks.

Gerrit change 30936

Patch was -1'ed and abandoned - removing keyword.

Change 145156 had a related patch set uploaded by Legoktm:
Use user id to get a logged in user's name

https://gerrit.wikimedia.org/r/145156

He7d3r updated the task description. (Show Details)
He7d3r set Security to None.
Krinkle removed a subscriber: Krinkle.Apr 21 2016, 11:31 PM
matej_suchanek updated the task description. (Show Details)
matej_suchanek removed a subscriber: wikibugs-l-list.
matej_suchanek added a subscriber: matej_suchanek.

Bug meet today. Any news ?

I agree that the user text needs to be updated from the old username to the new username. Otherwise, viewing the abuse filter log for the new username would just say "No results" or new entries after the rename instead of the entries prior to the rename. We should also make UserCache work globally. Once that happens, please try to merge Change 145156.

Samtar added a subscriber: Samtar.Mar 8 2017, 9:00 AM
Huji raised the priority of this task from Low to Medium.Feb 22 2018, 1:47 PM
Huji added subscribers: Antigng, Nirmos, WhitePhosphorus.

@matej_suchanek this needs some love!

Let's wait for T167246. AFAICS, what makes this not trivial are global filters.

Huji changed the task status from Open to Stalled.Feb 22 2018, 3:58 PM

Excellent point, marking this as stalled for now.

MarcoAurelio added a subscriber: revi.

No patch for review that I can find.

Framawiki renamed this task from AbuseFilter should be compatible with Renameuser to Update username in AbuseFilter log entry when user is renamed using Renameuser.Jun 8 2018, 5:19 PM
matej_suchanek renamed this task from Update username in AbuseFilter log entry when user is renamed using Renameuser to Update username in AbuseFilter interface when user is renamed using Renameuser.Jul 9 2018, 8:26 AM