LinksUpdate::setRevision and LinksUpdate::getRevision need to be replaced
They get and set LinksUpdate::$mRevision, which is otherwise unused (i.e. are only needed to pass Revision information along with the LinksUpdate)
I propose a new LinksUpdate::setRevisionRecord and LinksUpdate::getRevisionRecord be implemented instead
All known calls to getRevision (none in core; all of the calls are deployed on WMF production):
- Echo - EchoHooks::onLinksUpdateAfterInsert
- PageTriage - ArticleCompileInterface::getContentByPageId
- PageTriage - ArticleCompileProcessor::getLastEditTimestamp
- EventBus - EventBusHooks::onLinksUpdateComplete
- PageImages - LinksUpdateHookHandler::getPageImageCandidates
Only 1 known call to setRevision:
- Core - RefreshSecondaryDataUpdate::doUpdate