Page MenuHomePhabricator

Don't retrieve anything less than Z10000
Open, MediumPublic

Description

Description

Currently, the orchestrator retrieves Z600 and Z610 for some reason. This makes no sense because these are builtin objects. We should dynamically determine which objects are builtins rather than hard-coding lists.

Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)

  • write a function to determine whether a ZID is builtin
  • use that function in the orchestrator
  • stop retrieving Z6XX-range stuff
  • remove test objects that mirror Z6XX-range stuff (e.g., test_data/english_indefinite_noun_phrase/wikilambda/Z4[10].json)

Completion checklist

Event Timeline

https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-orchestrator/-/commit/5cbc2c3885fa2f10bf0f92e0a7857ab70e1af7e1

I've tried to remedy this stuff, but it would result in some performance regressions. I don't think now is the time to mess with this further, but I leave the commit and branch there for posterity.