mediawiki-extensions-Linter/includes
daniel 8b22ad5d78 Trigger Parsoid run when page metadata is being updated
When RESTBase is turned off, Parsoid runs will no longer be triggered
on template changes. This creates a new mechanism to do that, based on
the RevisionDataUpdates hook called by DerivedPageDataUpdater. The new
behavior is controlled by a feature flag, LinterParseOnDerivedDataUpdate,
which is enabled per default. In WMF production, this should be
turned off as long as we are still triggering Parsoid parses through
the pregeneration mechanism in RESTBase.

Note that this will not write ParserOutput to the ParserCache. On edits,
pages will get parsed with Parsoid twice, once to trigger the lint data
update, and once by ParsoidCachePrewarmJob to populate the ParserCache.
Both parses will trigger the ParserLogLinterData hook, the lint data
from the second parse is redundant.

However, while ParsoidCachePrewarmJob and RevisionDataUpdates get
triggered together on edits, they also get triggered separately:
ParsoidCachePrewarmJob by page views with parser cache misses; and
RevisionDataUpdates when pages get invalidated due to template changes.

Because ParsoidCachePrewarmJob and RevisionDataUpdates generally get
triggered in different situations, it seems cleaner to keep the two
mechanisms independent of each other, and live with the duplicate parse
on edit.

Bug: T361013
Change-Id: If53841ee583ce240dd245d640b9ea9c97e1eaa55
2024-06-03 16:50:17 -05:00
..
ApiQueryLintErrors.php [DI] Make CategoryManager and Database injectable services 2024-04-09 18:33:13 -04:00
ApiQueryLinterStats.php Inject Database into TotalsLookup 2024-04-11 12:24:42 -04:00
CategoryManager.php [DI] Make CategoryManager and Database injectable services 2024-04-09 18:33:13 -04:00
Database.php Stop constructing Database with a page id 2024-04-10 21:07:08 -04:00
Hooks.php Trigger Parsoid run when page metadata is being updated 2024-06-03 16:50:17 -05:00
HtmlTags.php Replace isset() with null check in HtmlTags 2024-04-01 13:47:54 +02:00
LintError.php Second phase of T175177: Adds template and tag to RecordLintJob 2022-08-22 12:47:01 -07:00
LintErrorsPager.php Add hidden lint missing-image-alt-text 2024-05-29 19:03:41 -04:00
LintUpdate.php Trigger Parsoid run when page metadata is being updated 2024-06-03 16:50:17 -05:00
MissingCategoryException.php Update Legoktm's email address 2021-04-11 19:08:44 -07:00
RecordLintJob.php Logging: add debug messages in Hooks and RecordLintJob 2024-05-22 21:06:50 +02:00
SchemaHooks.php Cleanup SchemaHooks and SQL files 2023-12-22 02:13:52 +00:00
ServiceWiring.php Inject Database into TotalsLookup 2024-04-11 12:24:42 -04:00
SpecialLintErrors.php Suppress hidden categories from subpage prefix searches 2024-04-18 20:23:37 -04:00
TotalsLookup.php Inject Database into TotalsLookup 2024-04-11 12:24:42 -04:00