Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce state vo #367

Merged
merged 11 commits into from
Aug 6, 2024
Merged

introduce state vo #367

merged 11 commits into from
Aug 6, 2024

Conversation

lukaszreszke
Copy link
Collaborator

  • Encapsulate state
  • Refactor
  • Allowed transitions
  • Remove empty line
  • add eql? and hash methods
  • refactor

Copy link

netlify bot commented Aug 6, 2024

Deploy Preview for ecommerce-events failed.

Name Link
🔨 Latest commit d844c35
🔍 Latest deploy log https://app.netlify.com/sites/ecommerce-events/deploys/66b2405825cdc50008e19add

The `transition_to` method was only called in the `on` DSL. The problem
is that the transition_to method raises the exception when state is
either not allowed or it is not valid transition. Exceptions shouldn't
be raised when building state of the aggregate. Past is past.
Accepted didn't get it's own method as it doesn't seem like this
"accepted" information is used in any way
@lukaszreszke lukaszreszke merged commit 15db137 into master Aug 6, 2024
27 of 31 checks passed
@lukaszreszke lukaszreszke deleted the introduce_state_vo branch August 6, 2024 15:32
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