wiki.techinc.nl/includes/Rest/Handler
Subramanya Sastry c8d0470f4b Make ParsoidOutputAccess a wrapper over ParserOutputAccess
* Updated ParserOutput to set Parsoid render ids that REST API
  functionality expects in ParserOutput objects.
* CacheThresholdTime functionality no longer exists since it was
  implemented in ParsoidOutputAccess and ParserOutputAccess doesn't
  support it. This is tracked in T346765.
* Enforce the constraint that uncacheable parses are only for fake or
  mutable revisions. Updated tests that violated this constraint to
  use 'getParseOutput' instead of calling the parse method directly.
* Had to make some changes in ParsoidParser around use of preferredVariant
  passed to Parsoid. I also left some TODO comments for future fixes.
  T267067 is also relevant here.

PARSOID-SPECIFIC OPTIONS:
* logLinterData: linter data is always logged by default -- removed
  support to disable it. Linter extension handles stale lints properly
  and it is better to let it handle it rather than add special cases
  to the API.
* offsetType: Moved this support to ParsoidHandler as a post-processing
  of byte-offset output. This eliminates the need to support this
  Parsoid-specific options in the ContentHandler hierarchies.
* body_only / wrapSections: Handled this in HtmlOutputRendererHelper
  as a post-processing of regular output by removing sections and
  returning the body content only. This does result in some useless
  section-wrapping work with Parsoid, but the simplification is probably
  worth it. If in the future, we support Parsoid-specific options in
  the ContentHandler hierarchy, we could re-introduce this. But, in any
  case, this "fragment" flavor options is likely to get moved out of
  core into the VisualEditor extension code.

DEPLOYMENT:
* This patch changes the cache key by setting the useParsoid option
  in ParserOptions. The parent patch handles this to ensure we don't
  encounter a cold cache on deploy.

TESTS:
* Updated tests and mocks to reflect new reality.
* Do we need any new tests?

Bug: T332931
Change-Id: Ic9b7cc0fcf365e772b7d080d76a065e3fd585f80
2023-10-13 15:03:03 -05:00
..
Helper Make ParsoidOutputAccess a wrapper over ParserOutputAccess 2023-10-13 15:03:03 -05:00
AbstractContributionHandler.php
ActionModuleBasedHandler.php
CompareHandler.php REST Compare: Make handler to not require write access 2023-10-02 21:29:52 +01:00
ContributionsCountHandler.php
CreationHandler.php
EditHandler.php Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
LanguageLinksHandler.php Namespace remaining Title-related classes under \MediaWiki\Title 2023-09-19 05:21:23 +00:00
MediaFileHandler.php
MediaLinksHandler.php Change error code for rest-media-too-many-links 2023-10-02 16:42:14 -04:00
PageHistoryCountHandler.php Simplify WHERE conditions with field IS NULL 2023-07-24 19:22:36 +02:00
PageHistoryHandler.php Namespace TitleFormatter under \MediaWiki\Title 2023-09-19 05:17:18 +00:00
PageHTMLHandler.php Support variant redirects in /page/html REST endpoint 2023-09-13 22:07:50 +01:00
PageSourceHandler.php Namespace TitleFormatter under \MediaWiki\Title 2023-09-19 05:17:18 +00:00
ParsoidHandler.php Make ParsoidOutputAccess a wrapper over ParserOutputAccess 2023-10-13 15:03:03 -05:00
RevisionHTMLHandler.php
RevisionSourceHandler.php
SearchHandler.php Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
TransformHandler.php ParsoidHandler: Look up page title from oldid, if available 2023-09-01 21:55:31 -05:00
UpdateHandler.php Reorg: Move MWTimestamp to MediaWiki\Utils 2023-08-19 05:53:40 +02:00
UserContributionsHandler.php