Non-sysop users can delete the target of a page move under certain circumstances (basically when undoing an earlier move). Since T106119 this produces a deletion log entry. This is somewhat confusing, and also messes up admin action statistics. It would be good to use a separate log action for this so it can be differentiated from real deletion.
Description
Details
Related Objects
- Mentioned In
- T154373: Create script for converting deletion log entries to "delete_redir"
T146601: Make redirect creation a separate recent changes event from moving a page
T106119: Moving a page over the redirect leaves an abandoned row in the revision table - Mentioned Here
- T151003: Overriden redirects should not be moved to the archive table
T106119: Moving a page over the redirect leaves an abandoned row in the revision table
Event Timeline
Change 320782 had a related patch set uploaded (by MGChecker):
Introduce separate log action for deleting pages on move
As a follow-up, this should be merged before releasing MW 1.28. This would preserve log_action consistency for redirect overwrites outside of WMF wikis.
Since the "delete_redir" log action will only be used when moving pages, the logging should be within "MovePage.php" rather than the "doDeleteArticleReal" function in "WikiPage.php". Also, as I have said in T151003, the overridden redirect should not be moved to the archive table, but instead permanently removed from the revision and text tables.
Change 320782 merged by jenkins-bot:
Introduce separate log action for deleting pages on move
Change 323497 had a related patch set uploaded (by Chad):
Introduce separate log action for deleting pages on move
Change 323497 merged by jenkins-bot:
Introduce separate log action for deleting pages on move