-
Notifications
You must be signed in to change notification settings - Fork 9
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
eventSourceable mixin #57
Comments
@DominikGuzei What's your opinion of this one? I really feel it needs to make the 3.x release since a breaking change here will impact data. |
Yeah this is a breaking change … so major version is necessary |
…right, but my point is we'll need to hold off on 3.0.0 until this is done, and we're wanting to launch new projects on the 3.x track, so it's now or never |
Yeah, we should include it. |
Agree. It's more of a concept, so we can actually get rid of the API and just include this in training and education |
Ok so as discussed this has been punted to the next major release due to the breaking changes and priority to get 3.0.0 out. |
Have been thinking about this issue with @qejk in some depth, and now have more thoughts. Below is what we settled on: We feel the best approach is to keep the current class and not extracting the functionality to a mixin since we really do need the concept of an aggregate class here but not in Not related to this issue, but the real improvement we can make is to make Thoughts @DominikGuzei @darko-mijic ? |
Yeah while "working" on it, i also had the feeling that this probably won't bring many benefits apart from "being more generalized" (which is not a benefit in itself). In general i would suggest to use mixins for only for stuff that is truly generalizable / can be applied to many different contexts / classes. |
Closed in favor of #63 |
@samhatoum raised a use-case in Slack for extracting the functionality to a plain object, so you don't have to use Space classes for your aggregate. I agree this would be a good move and make Space ES more accessible. Food for thought: |
Hmm … not too sure about how we can keep all the things together while moving away from |
👍 This would be a solid move |
Motivations:
Apply the trait to domain.Entity, remove the need for a formalAggregate
classReposition eventSourcing.Process as domain.ProcessRemove domain directory in space:event-sourcing https://github.com/meteor-space/event-sourcing/tree/develop/source/server, so it's positioned as an infrastructure package building onspace:domain
I feel this will set us up for making Space's domain implementation less dependent on applying ES for every sub-domain.Issues:
The text was updated successfully, but these errors were encountered: