Michael added a comment.
Mh, there is
`\Wikibase\Repo\ParserOutput\EntityParserOutputDataUpdaterCollection`, which
looks like we could in principle add an `EntitySchemaParserOutputDataUpdater`
to it.
Though going a bit up the call stack, it seems Wikibase has custom code for
associated extensions to add their updaters in
`\Wikibase\Repo\ParserOutput\EntityParserOutputGeneratorFactory::getDataUpdaters`
name=EntityParserOutputGeneratorFactory::getDataUpdaters
private function getDataUpdaters(): array {
// [...]
if ( ExtensionRegistry::getInstance()->isLoaded( 'GeoData' ) ) {
$statementUpdater->addUpdater(
$this->newGeoDataDataUpdater( $propertyDataTypeMatcher ) );
}
if ( ExtensionRegistry::getInstance()->isLoaded( 'Math' ) ) {
$statementUpdater->addUpdater( new MathDataUpdater(
$propertyDataTypeMatcher ) );
}
// FIXME: null implementation of KartographerEmbeddingHandler
would seem better than null pointer
// in general, and would also remove the need for the check here
if ( $this->kartographerEmbeddingHandler ) {
$statementUpdater->addUpdater(
$this->newKartographerDataUpdater() );
}
// [...]
// TODO: do not use global state
Hooks::run(
'WikibaseRepoOnParserOutputUpdaterConstruction',
[
$statementUpdater,
&$entityUpdaters,
]
);
return $entityUpdaters;
}
And there is also a hook that looks like we could use it? Though in general
this method has a lot of `// TODO` and `// FIXME` to it, that maybe we want to
use this opportunity to spend a bit of time on thinking about how we can
improve it.
TASK DETAIL
https://phabricator.wikimedia.org/T330870
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Michael
Cc: Lydia_Pintscher, Aklapper, Moebeus, Esc3300, ericP, alaa_wmde, Michael,
Jheald, Ladsgroup, Lucas_Werkmeister_WMDE, Lea_Lacroix_WMDE, Bugreporter,
WMDE-leszek, Thadguidry, Daniel_Mietchen, Sj, SilentSpike, Jsamwrites,
Simon_Villeneuve, So9q, Arian_Bozorg, Astuthiodit_1, karapayneWMDE, Invadibot,
maantietaja, Hazizibinmahdi, ItamarWMDE, Akuckartz, pdehaye, Nandana, Lahi,
Gq86, Andrawaag, GoranSMilovanovic, QZanden, YULdigitalpreservation,
LawExplorer, Salgo60, _jensen, rosalieper, Scott_WUaS, MisterSynergy, abian,
Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]