Skip to content
This repository was archived by the owner on Oct 9, 2019. It is now read-only.
This repository was archived by the owner on Oct 9, 2019. It is now read-only.

Replace grace period manager with a saga #7

Description

@MarcinHoppe
  • Store data on incoming UserCheckoutAcceptedIntegrationEvent and publish event to trigger saga
  • Add timeout in saga and upon receiving timeout, publish GracePeriodConfirmedIntegrationEvent
  • Receive OrderStockRejectedIntegrationEventHandler inside saga
  • Receive CancelOrderCommand inside saga
  • Process OrderStockConfirmedIntegrationEvent correctly. Not 100% sure on how this works
  • 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

  • Happy path where orders are simply successfully ordered
  • Path where orders are canceled by user
  • Path where orders are canceled because we're out of stock
  • Path where payment isn't successful.
  • Clean up
  • Tests

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions