article
A catalog lookup that counted products as handled because the ID looked right
A lookup in my ordering system built its list of already-handled products from any row with the right kind of ID, ignoring setup, brand, queue state and whether repairs were applied. I rewrote the query within the half hour, and the stub-based tests had to start checking the question instead of the answer.
Read more