wiki.techinc.nl/tests/phpunit/includes/jobqueue
C. Scott Ananian cfd9c516e1 Allow setting a ParserOption to generate Parsoid HTML
This is an initial quick-and-dirty implementation.  The
ParsoidParser class will eventually inherit from \Parser,
but this is an initial placeholder to unblock other Parsoid
read views work.

Currently Parsoid does not fully implement all the ParserOutput
metadata set by the legacy parser, but we're working on it.

This patch also addresses T300325 by ensuring the the Page HTML
APIs use ParserOutput::getRawText(), which will return the entire
Parsoid HTML document without post-processing.  This is what
the Parsoid team refers to as "edit mode" HTML. The
ParserOutput::getText() method returns only the <body> contents
of the HTML, and applies several transformations, including
inserting Table of Contents and style deduplication; this is
the "read views" flavor of the Parsoid HTML.

We need to be careful of the interaction of the `useParsoid` flag with
the ParserCacheMetadata.  Effectively `useParsoid` should *always* be
marked as "used" or else the ParserCache will assume its value doesn't
matter and will serve legacy content for parsoid requests and
vice-versa.  T330677 is a follow up to address this more thoroughly by
splitting the parser cache in ParserOutputAccess; the stop gap in this
patch is fragile and, because it doesn't fork the ParserCacheMetadata
cache, may corrupt the ParserCacheMetadata in the case when Parsoid
and the legacy parser consult different sets of options to render a
page.

Bug: T300191
Bug: T330677
Bug: T300325
Change-Id: Ica09a4284c00d7917f8b6249e946232b2fb38011
2023-03-26 21:46:05 -04:00
..
jobs Allow setting a ParserOption to generate Parsoid HTML 2023-03-26 21:46:05 -04:00
JobFactoryTest.php Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
JobQueueMemoryTest.php Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
JobQueueTest.php Reorg: Migrate WikiMap to WikiMap/ out of includes 2023-02-27 05:19:46 +01:00
JobRunnerTest.php tests: Make some PHPUnit data providers static 2023-03-24 02:53:57 +00:00
JobTest.php Reorg: Namespace the Title class 2023-03-02 08:46:53 -05:00
RefreshLinksPartitionTest.php BacklinkCache: Remove unused internal clear() method 2023-02-21 15:59:42 +00:00