Page MenuHomePhabricator

Bad output of AbuseFilter blocks in CU get edits
Closed, ResolvedPublic

Description

When getting edits on CU, AbuseFilter blocks shows as:

  • (Logs) . . 23:14 . . Abuse filter (talk | contribs | block) (administrator) Abuse filter blocked <USERNAME> with an expiration time of <span class='blockExpiry' title='‎indefinite'>infinite</span> (account creation disabled) (Automatically blocked by abuse filter. Description of matched rule: Specific user page spam)

The bold text is the weird output. If possible, please fix. Thank you.

Related Objects

StatusSubtypeAssignedTask
OpenNone
ResolvedDreamy_Jazz
OpenDreamy_Jazz
DuplicateNone
OpenFeatureDreamy_Jazz
ResolvedLadsgroup
ResolvedMilimetric
OpenNone
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
Resolved Marostegui
ResolvedPRODUCTION ERRORDreamy_Jazz
Resolved Marostegui
OpenDreamy_Jazz
OpenDreamy_Jazz
ResolvedBUG REPORTDreamy_Jazz
ResolvedDreamy_Jazz
OpenDreamy_Jazz
OpenNone
OpenNone
OpenNone
ResolvedDreamy_Jazz
OpenDreamy_Jazz
OpenNone
ResolvedDreamy_Jazz
OpenDreamy_Jazz
ResolvedBUG REPORTDreamy_Jazz
OpenDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
ResolvedDreamy_Jazz
OpenPRODUCTION ERRORpmiazga
OpenNone
OpenDreamy_Jazz

Event Timeline

We would probably need to have a modern table with different computer-readable data for generating the line properly instead of inserting the action text and showing it using Linker. See also T41013.

It is also related to T21964: the logs stored in CU logs table are stored as plain text and are not parsed.

One alternative is to store them as wikitext (with $1, etc) but then parsing them would be an issue.

The second alternative is to store the HTML output of the log, but if the log translation or format changes later, the old format would be shown in CU output (same issue exists now too).

The third (and in my humble opinion, best) option is to store a link to the log id only, and then expand CU code such that using the log id and log parameters it would create the log text on the fly.

Dreamy_Jazz claimed this task.
Dreamy_Jazz added a subscriber: Dreamy_Jazz.

This seems to no longer be the case per my local testing:

image.png (66×1 px, 25 KB)