wiki.techinc.nl/includes
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
..
actions Merge "PurgeAction: Properly report rate limiting" 2023-10-11 14:39:43 +00:00
api Merge "Mention implicit group exception in apihelp-query+allusers-param-group" 2023-10-13 13:54:03 +00:00
auth Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
block Merge "Add CompositeBlock::createFromBlocks" 2023-10-13 00:23:36 +00:00
cache cache: Dependency inject more args into BacklinkCache 2023-10-02 19:10:11 +01:00
Category Title: Use TitleArrayFromResult instead of TitleArray 2023-10-03 11:18:53 +01:00
changes Migrate to IConnectionProvider methods in more places 2023-10-05 19:51:20 +02:00
changetags Introduce ChangeTagsStore::modifyDisplayQueryBuilder() 2023-09-27 13:16:10 +02:00
collation
CommentFormatter Namespace Sanitizer under \MediaWiki\Parser 2023-09-21 05:39:23 +00:00
CommentStore Add second batch of taint-check annotations 2023-09-23 18:18:17 +02:00
composer
config config: replace unused Logger in EtcdConfig with native trigger_error 2023-09-26 16:21:16 -04:00
content Drop AbstractContent::getRedirectChain and ::getUltimateRedirectTarget, deprecated in 1.38 2023-10-05 16:35:14 -04:00
context Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
dao
db rdbms: Introduce concept of virtual domains and mapping to ext cluster 2023-10-05 13:31:15 +02:00
debug typo fixes in inline docs for logger spi module 2023-10-11 11:20:29 +03:00
deferred Hard-deprecate ParserOutput::getCategories(), deprecated in 1.40 2023-09-29 15:25:50 -04:00
diff Merge "DifferenceEngine: Separate previous/next from diff itself" 2023-10-11 02:12:32 +00:00
edit
editpage Cleanup nonexistent "custom JSON" 2023-10-05 01:22:03 +00:00
exception Merge "Deprecate explicit arguments to OutputPage::prepareErrorPage()" 2023-09-22 12:12:14 +00:00
export Namespace remaining Title-related classes under \MediaWiki\Title 2023-09-19 05:21:23 +00:00
ExternalLinks LinkFilter::makeIndexes: Don't explode if the 'host' key is missing for news:// 2023-10-10 09:55:19 -04:00
externalstore In query builders, use insertInto() and deleteFrom() instead of insert() and delete() 2023-09-08 10:16:08 +10:00
Feed Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
filebackend Deprecate ConfiguredReadOnlyMode service 2023-09-12 23:22:13 +00:00
filerepo FileRepo: Reduce duplicated calls to resolveToStoragePathIfVirtual() 2023-09-23 22:23:37 +08:00
gallery Namespace Sanitizer under \MediaWiki\Parser 2023-09-21 05:39:23 +00:00
historyblob
Hook Remove deprecated interface ParserTestTablesHook 2023-10-03 19:52:49 +02:00
HookContainer Remove deprecated interface ParserTestTablesHook 2023-10-03 19:52:49 +02:00
Html Make use of str_contains/str_starts_with in a few places 2023-10-04 12:55:27 +02:00
htmlform HTMLSizeFilterField: Keep min/max selection for empty input 2023-09-24 17:48:30 +08:00
http shellbox: Use Telemetry class instead of WebRequest::getRequestId() 2023-09-19 14:00:25 +02:00
import WikiRevision: Preserve lowercase of external actors 2023-09-23 20:31:04 +02:00
installer Localisation updates from https://translatewiki.net. 2023-10-12 09:12:03 +02:00
interwiki
jobqueue Make ParsoidOutputAccess a wrapper over ParserOutputAccess 2023-10-13 15:03:03 -05:00
json
language Implement Language::isSameCodeAs() 2023-10-04 12:29:57 -04:00
languages Languages: Add mnc/mnc-* (Manchu) to Names.php 2023-10-06 02:30:54 +00:00
libs Merge "db: Allow describing table creation via abstract schema change" 2023-10-11 10:35:53 +00:00
linkeddata Namespace remaining Title-related classes under \MediaWiki\Title 2023-09-19 05:21:23 +00:00
linker Merge "Move Article::getRedirectHeaderHtml() to LinkRenderer::makeRedirectHeader()" 2023-09-26 19:35:18 +00:00
logging Use IReadableDatabase over IDatabase in DatabaseLogEntry::newFromId 2023-10-11 00:25:45 +01:00
mail mail: Encode period (ascii 46) if it appears in encoded email header. 2023-10-01 18:26:59 +01:00
Maintenance
media Replace complex preg_replace_callback with strtr/preg_replace 2023-10-05 10:47:46 +02:00
Message
Navigation
objectcache objectcache: Deprecate unused SqlBagOStuff::deleteAll() 2023-09-27 03:37:40 +00:00
Output ParserOutput::hasTOCHTML(): Remove old back-compat code 2023-10-12 15:36:31 -04:00
page Merge "Revert "Remove allowances for missing redirect rows"" 2023-10-13 16:10:49 +00:00
pager Switch to ICP in some easy cases 2023-09-26 21:05:16 +02:00
ParamValidator/TypeDef Namespace remaining User-related classes under \MediaWiki\User 2023-09-20 09:12:08 +01:00
parser Make ParsoidOutputAccess a wrapper over ParserOutputAccess 2023-10-13 15:03:03 -05:00
password PasswordFactory: Hard-deprecate init(), deprecated since 1.32 2023-10-09 09:25:47 -04:00
Permissions Merge "ActionFactory: don't choke on special pages" 2023-10-11 12:16:18 +00:00
poolcounter PoolWorkArticleView: Remove unsatisfiable check 2023-09-29 15:24:47 -05:00
preferences Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
profiler profiler: Cleanup base class and remove dead code 2023-09-28 00:34:14 +00:00
rcfeed Namespace Sanitizer under \MediaWiki\Parser 2023-09-21 05:39:23 +00:00
registration rdbms: Introduce concept of virtual domains and mapping to ext cluster 2023-10-05 13:31:15 +02:00
RenameUser Merge "Migrate another major batch to SelectQueryBuilder" 2023-09-20 13:39:17 +00:00
Request Request: Deprecate methods in WebRequest class 2023-10-03 11:31:03 +00:00
ResourceLoader Merge "ResourceLoader: Remove unused members from constructor" 2023-10-03 20:54:54 +00:00
Rest Make ParsoidOutputAccess a wrapper over ParserOutputAccess 2023-10-13 15:03:03 -05:00
Revision Introduce ChangeTagsStore::modifyDisplayQueryBuilder() 2023-09-27 13:16:10 +02:00
revisiondelete Introduce ChangeTagsStore::modifyDisplayQueryBuilder() 2023-09-27 13:16:10 +02:00
revisionlist
search SearchSuggestionSet: update pageMap when shrinking 2023-10-11 16:16:01 +02:00
session Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
Settings Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
shell shellbox: Use Telemetry class instead of WebRequest::getRequestId() 2023-09-19 14:00:25 +02:00
site Remove redundant empty() constructs (2) 2023-09-08 23:28:11 +02:00
SiteStats Migrate another major batch to SelectQueryBuilder 2023-09-20 13:32:09 +02:00
skins Merge "Revert "Skin: Replace confusing use of rawParams() in doEditSectionLink()"" 2023-10-09 15:53:05 +00:00
sparql Remove redundant empty() constructs (3) 2023-09-08 23:37:23 +02:00
specialpage Merge "recentchanges: Clarify filter wording for account creations" 2023-10-11 14:09:24 +00:00
specials Merge "Remove allowances for nullable rd_interwiki and rd_fragment" 2023-10-13 13:48:58 +00:00
Status
Storage Make ParsoidOutputAccess a wrapper over ParserOutputAccess 2023-10-13 15:03:03 -05:00
StubObject Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
templates
tidy Namespace Sanitizer under \MediaWiki\Parser 2023-09-21 05:39:23 +00:00
title Merge "Remove allowances for nullable rd_interwiki and rd_fragment" 2023-10-13 13:48:58 +00:00
upload upload: Log all filebackend errors in UploadFromChunks 2023-10-01 18:44:23 +00:00
user Remove Block cache from User 2023-10-12 13:42:58 +11:00
utils Merge "Follow RFC 3986 on what is path in mailto URLs" 2023-09-20 15:38:07 +00:00
watcheditem Migrate to IConnectionProvider methods in more places 2023-10-05 19:51:20 +02:00
watchlist Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
widget
WikiMap CommentFormatter: Minor clean up to test cases 2023-09-14 19:36:55 -07:00
xml Add another batch of taint-check annotations 2023-09-23 20:02:59 +00:00
.htaccess
AutoLoader.php
BootstrapHelperFunctions.php
config-schema.php Turn the "purge" permission into an implicit right. 2023-10-10 11:42:46 +00:00
DefaultSettings.php
Defines.php Prepare active branch following REL1_41 cut, labelling as 1.42-alpha 2023-10-09 22:11:03 -04:00
DevelopmentSettings.php Enable $wgUseXssLanguage in DevelopmentSettings.php 2023-09-28 15:51:00 +02:00
GlobalFunctions.php Add $wgRequest to phan's globals_type_map 2023-09-11 23:22:12 +02:00
Hooks.php
MainConfigNames.php rdbms: Introduce concept of virtual domains and mapping to ext cluster 2023-10-05 13:31:15 +02:00
MainConfigSchema.php Turn the "purge" permission into an implicit right. 2023-10-10 11:42:46 +00:00
MediaWiki.php Request: Deprecate methods in WebRequest class 2023-10-03 11:31:03 +00:00
MediaWikiServices.php Namespace Config-related classes under \MediaWiki\Config 2023-09-21 05:41:58 +00:00
PHPVersionCheck.php Prepare active branch following REL1_41 cut, labelling as 1.42-alpha 2023-10-09 22:11:03 -04:00
ServiceWiring.php Make ParsoidOutputAccess a wrapper over ParserOutputAccess 2023-10-13 15:03:03 -05:00
Setup.php Namespace User under \MediaWiki\User 2023-09-19 19:18:16 +00:00
SetupDynamicConfig.php Create 'x-xss' language code feature 2023-09-28 15:50:11 +02:00
WebStart.php Use ::class for class name resolution 2023-09-21 23:27:28 +02:00