eShopOnContainers
eShopOnContainers copied to clipboard
Replace grace period manager with a saga
- [x] Store data on incoming
UserCheckoutAcceptedIntegrationEventand publish event to trigger saga - [x] Add timeout in saga and upon receiving timeout, publish
GracePeriodConfirmedIntegrationEvent - [x] Receive
OrderStockRejectedIntegrationEventHandlerinside saga - [x] Receive
CancelOrderCommandinside saga - [x] Process
OrderStockConfirmedIntegrationEventcorrectly. Not 100% sure on how this works - [x] Check any other events that seem like infrastructural events, might need to replace these with business events. It's either cancelled or not.
Finally this should work
- [x] Happy path where orders are simply successfully ordered
- [x] Path where orders are canceled by user
- [x] Path where orders are canceled because we're out of stock
- [x] Path where payment isn't successful.
- [x] Clean up
- [ ] Tests