Update TODO documentation around parsing

Change-Id: I14fb4874fdc3e97418b5f41665334e122c17d862
This commit is contained in:
Ed Sanders 2024-01-10 18:29:40 +00:00
parent 317b293b3d
commit c076f170c4
2 changed files with 3 additions and 1 deletions

View file

@ -38,7 +38,8 @@ class DataUpdatesHooks implements RevisionDataUpdatesHook {
// This doesn't trigger on action=purge, only on automatic purge after editing a template or
// transcluded page, and API action=purge&forcelinkupdate=1.
// TODO Deduplicate work between this and the Echo hook (make it use Parsoid too)
// TODO: Deduplicate the thread-item-processing done here with the Echo hook
// (which thread-item-processes the current and previous revisions).
$rev = $renderedRevision->getRevision();
if ( HookUtils::isAvailableForTitle( $title ) ) {
$method = __METHOD__;

View file

@ -57,6 +57,7 @@ class EventDispatcher {
// If the $revRecord was fetched from the primary database, this will also fetch the content
// from the primary database (using the same query flags)
// TODO: Fetch HTML from Parsoid, as we do in onRevisionDataUpdates.
$status = $services->getParserOutputAccess()->getParserOutput(
$pageRecord,
ParserOptions::newFromAnon(),