Page MenuHomePhabricator

Extension: Consider Returning Error on per-ZID Basis for wikilambda_fetch
Closed, DuplicatePublic

Description

Description

wikilambda_fetch accepts multiple ZIDs in a request. However, it will fail globally if any one ZID fails to be retrieved. This makes it hard to use the multiple-ZID functionality: I am encouraged not to batch my ZID retrievals since a single bad ZID can break the whole request.

I propose we instead guarantee that every requested ZID will be present in the returned object, and that each ZID will be mapped to either a Z2 or some error.

Desired behavior/Acceptance criteria

  • discussion of this change

Completion checklist