Manish's order queue is empty after successfully logging into the Driver App
The call to getAllAssigned returns the following error:
class java.lang.Exception-Error - Order g-429 not found
DIAGNOSIS
Prior to the release of Order Ahead, Houston loads the following orders from MySQL whenever it "resyncs"
All "open" orders (any state except "delivered" or "cancelled")
All "closed" orders on the current day
With the introduction of Order Ahead, Houston only loads orders for that particular day whenever it resyncs
Therefore, if a driver forgets to complete an order (or the dispatchers forget to "clear" out-dated orders), an order from the previous day will still be in the driver's order queue but not loaded by Houston after a resync (and thus missing)
PROPOSED SOLUTION
Lazy-load generic orders. If a generic order is not found in Houston's cache, load it from MySQL regardless of which day it was created on
CASE SUMMARY
getAllAssigned
returns the following error: class java.lang.Exception-Error - Order g-429 not foundDIAGNOSIS
PROPOSED SOLUTION