Laboratory shows an empty worklist when orders fail to load ticket 03-6104

Hi, I’d like to work on this. I reproduced it on v1.5.2 against a local RefApp, using a proxy that returns 503 for GET /ws/rest/v1/order: the worklist shows “No lab requests found / Please check the filters above and try again” and the Tests ordered, Worklist and Results tiles show 0, with no error message.

The cause matches your description: useLabOrders returns isError together with an empty labOrders array, but OrdersDataTable (and the lab tiles) only read labOrders/isLoading. My plan is to show an error state with a Retry action when the request fails, keep the empty state for successful empty responses only, and avoid showing 0 in the tiles on error, with tests for both cases. Could someone please assign it to me (seboyak)? Thanks!

Thanks for reporting this issue, @seboyak. It is already fixed by openmrs-esm-laboratory-app#879 (O3-6104, merged 2 Nov). It adds the error state with Retry, keeps the empty state for successful empty responses, and shows -- in the tiles. v1.5.2 and v1.6.0 predate it; it’s on main and in the 1.6.1 pre-releases.