Page MenuHomePhabricator

Add a way to rename a tag
Closed, DuplicatePublic

Description

I was going through wikidata's abuse filters to update uses of deprecated variables, but couldn't save two of the filters[1] because the tags are invalid[2]. It should be possible to rename the existing tag so that existing uses of the tag applied by the filter and new uses can be searched for together

[1] https://www.wikidata.org/wiki/Special:AbuseFilter/30 and https://www.wikidata.org/wiki/Special:AbuseFilter/38
[2] Tag names must not contain commas (,), pipes (|), or forward slashes (/).

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

This would actually be pretty simple; tag names are only stored in one place - change_tag_def.ctd_name

Proposal:
At Special:Tags, add a rename action
Rename from: any current tag name, regardless of validity
Rename to: any valid tag name
Db impact: a single write to one row of the change_tag_def table (plus log entry)
New log entry: managetags/rename
Required right: managechangetags (or should it be a new right?)