CASE · middle
api
Client broke after a "backward-compatible" release
After a backend release, version 3.4 of the mobile app crashes when opening an
order. The server team says the changes are compatible: fields were only added
or renamed.
Response before the release:
{"order_id": 7781, "customer": {"id": 7, "name": "Ann"}, "total": 1200}
Response after the release:
{"order_id": 7781, "customer_id": 7, "total": 1200, "status": null}
Client 3.4 reads `response.customer.name`. The client log shows
`TypeError: undefined is not an object (evaluating 'customer.name')`.
New clients work; old ones fail only for users who did not update.
How would you localize the breakage and what would you propose so it does not
happen again?