mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-15 03:23:51 +00:00
bded600e36
The validation appears to be occurring 4 times: 1. JsonContentHandler->preSaveTransform --> GadgetDefinitionContent->isValid 2. GadgetHooks::onEditFilterMergedContent --> GadgetDefinitionContent->validate 3. ContentHandler->validateSave --> GadgetDefinitionContent->isValid 4. RevisionStore->checkContent ---> GadgetDefinitionContent->isValid Caching the validation result reduces it down to 2. (Validation in GadgetHooks::onEditFilterMergedContent is to provide a more useful error message than what ContentHandler gives – which is just "Invalid content data".) Change-Id: I026751b7e9b111b4f0bb9ab5fa0e9737a0385b07 |
||
---|---|---|
.. | ||
api | ||
content | ||
Gadget.php | ||
GadgetDefinitionNamespaceRepo.php | ||
GadgetHooks.php | ||
GadgetRepo.php | ||
GadgetResourceLoaderModule.php | ||
MediaWikiGadgetsDefinitionRepo.php | ||
SpecialGadgets.php | ||
SpecialGadgetUsage.php |