Description
Wikidata items that reference lots of other Wikidata items can run up against rate limits.
Local repro instructions (assuming that Orchestrator MR 250 has been merged or applied locally):
- enable useWikidata
- in src/db.js, ensure that the ReferenceResolver has useWikidata set to true
- in the orchestrator params, ensure that useWikidata is set to true
- point local wikidataUri to https://www.wikidata.org (also in orchestrator params?)
- tighten the rate limit
- in src/rateLimits.js, the default rate limit should be set to 100 or so
- run the following function call (from the WikiLambda UI):
{
'Z1K1': 'Z7',
'Z7K1: 'Z801',
'Z801K1': { 'Z1K1: 'Z6005', 'Z6005K1': 'L47' }
}Options
Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)
- decide how to handle this (cf. options above)
- make other Phabricator tasks as appropriate
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist