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

Aggregate throws an error when snapshot type is not registered #71

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

darko-mijic
Copy link
Member

We have this error now instead of 'undefined is not a function' when snapshot is not registered:

Error: Space.eventSourcing.Aggregate: Snapshot type is undefined. Did you forget to call: Space.eventSourcing.Aggregate.registerSnapshotType()?

@darko-mijic
Copy link
Member Author

Since snapshotting can be disabled we will need a bit more refactoring but in a separate PR.

@darko-mijic darko-mijic assigned darko-mijic and unassigned rhyslbw Mar 15, 2016
@darko-mijic darko-mijic removed the WIP label Mar 15, 2016
@darko-mijic darko-mijic assigned rhyslbw and unassigned darko-mijic Mar 15, 2016
@rhyslbw
Copy link
Member

rhyslbw commented Mar 15, 2016

Good improvement, but let's add a test for this

@rhyslbw rhyslbw assigned darko-mijic and unassigned rhyslbw Mar 15, 2016
@rhyslbw rhyslbw added the WIP label Mar 15, 2016
@rhyslbw
Copy link
Member

rhyslbw commented Apr 10, 2016

Would be good to roll this into develop ready for the next release

@darko-mijic
Copy link
Member Author

We need to write a test that cover throwing of this error and tests for rest of errors thrown by es aggregate. I will take care of this next week. I am not available before that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants