The Split Shipment
An order can remain partially shipped even after every requested item has been fulfilled across two parcels.
The bug report
You get the whole project — a React front end, an Express API, and Mongoose models — opened in a browser editor. Reproduce the symptom by reading the code, change what’s wrong, and run the hidden tests to prove it.
What the fix must prove
- creates a customer order with its requested quantities and reads it back
- records a partial shipment without changing unshipped line quantities
- marks an order shipped after two shipments complete every line
- rejects shipping more than remains and preserves the saved order
- rejects malformed order and shipment quantities without inserting changes
- keeps another customer from reading or shipping the order
- requires a signed demo session for all order reads and changes
Related challenges
- The Missing Name — api contract bug, beginner
- The Ghost Update — async / race condition, intermediate
- The Silent Field — database / schema bug, beginner