RevDel: Avoid log_search rows with empty values for target_author_actor
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 7 Feb 2019 16:16:32 +0000 (11:16 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 21 Mar 2019 20:42:48 +0000 (16:42 -0400)
commit23b5c0891a0d89b3f0e5963f0e992ab4a1eebf5d
tree3fee84b149683a8c9732137e10b6af29c1b95947
parent2c75885c6fca481c4fdd37ed1851437fffcb5ba5
RevDel: Avoid log_search rows with empty values for target_author_actor

During migration, RevDel may wind up being used on items where an actor
has not been assigned yet. The code creating log_search rows for
target_author_actor needs to take this into account.

Also, to clean this up on Wikimedia wikis, I've added code to
MigrateActors to delete these rows before (re-)migrating log_search
and a --tables option so a re-run can skip trying to process all the
already-processed tables (cf. T188327#4892827).

Bug: T215525
Change-Id: Ica15e2e30445e23761e6d3d6405b3eb39a086161
RELEASE-NOTES-1.33
includes/revisiondelete/RevDelList.php
maintenance/includes/MigrateActors.php