Lucas_Werkmeister_WMDE created this task.
Lucas_Werkmeister_WMDE added projects: Wikidata,
MediaWiki-extensions-WikibaseClient, Wikibase-Lua, Parsoid.
Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION
`Scribunto_LuaWikibaseLibrary::getReferencedEntityId()` implements a limit on
calls to this method (configured at
`$wgWBClientSettings['referencedEntityIdAccessLimit']`, defaults to 3, not
changed in production) by getting, incrementing, and setting a counter in the
parser output extension data:
$parserOutput = $this->getEngine()->getParser()->getOutput();
$key = 'wikibase-referenced-entity-id-limit';
$accesses = (int)$parserOutput->getExtensionData( $key );
$accesses++;
$parserOutput->setExtensionData( $key, $accesses );
This pattern is deprecated and will not do the right thing under Parsoid,
according to @ihurbain (Slack
<https://wikimedia.slack.com/archives/C01R06P8D1B/p1704808407270249?thread_ts=1704805593.675949&cid=C01R06P8D1B>).
We should find an alternative. (Maybe check how Scribunto implements the
expensive function call limit in general?)
TASK DETAIL
https://phabricator.wikimedia.org/T354647
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Lucas_Werkmeister_WMDE
Cc: Aklapper, Lucas_Werkmeister_WMDE, ihurbain, Danny_Benjafield_WMDE,
LennardHofmann, Astuthiodit_1, SLopes-WMF, karapayneWMDE, Invadibot,
maantietaja, ItamarWMDE, DAlangi_WMF, Akuckartz, Nandana, lucamauri, Lahi,
Gq86, GoranSMilovanovic, QZanden, KimKelting, LawExplorer, _jensen, rosalieper,
Scott_WUaS, Jrf, Wikidata-bugs, aude, Dinoguy1000, ssastry, Arlolra, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]