Skip to content

Fix order confirmation and delivery serviceability - #76

Merged
lordlabakdas merged 2 commits into
masterfrom
fix/orders-module-comments
Oct 3, 2026
Merged

lordlabakdas merged 2 commits into
masterfrom
fix/orders-module-comments

Conversation

@lordlabakdas

@lordlabakdas lordlabakdas commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

New orders currently wait for manual store acceptance even after stock is available, and delivery quotes ignore the configured store radius. This change confirms orders after inventory is locked and reserved, rejects nonpositive quantities and invalid coordinates, and returns Location Unserviceable for destinations outside the store delivery zone.

Source: Orders module comments. The comment-by-comment disposition is in SPEC_ORDERS_MODULE_COMMENTS.md.

Frontend companion: lordlabakdas/groceror-fe#56. Merge this backend change before its frontend companion.

Validation: 165 focused backend tests passed initially; the final order/delivery run passed 62 tests, including two additional transaction regressions. SQLite tests do not exercise PostgreSQL row-lock contention. Live courier integration was not exercised.

No schema change. Existing order history and exceptional cancellations remain supported. The frontend comments out pickup for the MVP; historical pickup data is preserved.

Reserve inventory under row locks before automatic confirmation. Reject nonpositive quantities and out-of-zone delivery destinations before committing orders.
@lordlabakdas
lordlabakdas marked this pull request as ready for review October 3, 2026 23:48
@lordlabakdas
lordlabakdas merged commit e825c8f into master Oct 3, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant