-
Notifications
You must be signed in to change notification settings - Fork 682
DATACMNS-1067 - Fix not to call @AfterDomainEventPublication method from Collection of entities. #216
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
DATACMNS-1067 - Fix not to call @AfterDomainEventPublication method from Collection of entities. #216
Conversation
…rom Collection of entities.
One thing I am kind of puzzled about is the mismatch between the fix and the description in the original ticket. The ticket claims a problem with |
I think I got it. The essential fix referring to the ticket is that the object that the clearing method is invoked on is the aggregate root, not the parameter object. However, I am now unsure about the change to only clear the events if they have been exposed. This is a feature we can discuss, but it's not something I would want to couple with the fix for the issue described in the ticket. |
Yes, we should call |
Thanks for clarifying. Already at it :). |
…rom collection of entities. We now make sure the event cleanup method is called on the aggregate root, not on the parameter object directly (as the latter might be a collection. Original pull request: #216.
Revert change to only invoke cleanup method if events have been exposed. We now again invoke the cleanup method for every aggregate. Changed the publication of events from the aggregate instances that were handed into the method to the ones the save method returns as the save call might return different object instances. Cleanups in the unit tests. Moved newly introduced methods to the bottom of the test case class. Extracted method to set up mock method invocation. Original pull request: #216.
…rom collection of entities. We now make sure the event cleanup method is called on the aggregate root, not on the parameter object directly (as the latter might be a collection. Original pull request: #216.
Revert change to only invoke cleanup method if events have been exposed. We now again invoke the cleanup method for every aggregate. Changed the publication of events from the aggregate instances that were handed into the method to the ones the save method returns as the save call might return different object instances. Cleanups in the unit tests. Moved newly introduced methods to the bottom of the test case class. Extracted method to set up mock method invocation. Original pull request: #216.
…rom collection of entities. We now make sure the event cleanup method is called on the aggregate root, not on the parameter object directly (as the latter might be a collection. Original pull request: #216.
Revert change to only invoke cleanup method if events have been exposed. We now again invoke the cleanup method for every aggregate. Changed the publication of events from the aggregate instances that were handed into the method to the ones the save method returns as the save call might return different object instances. Cleanups in the unit tests. Moved newly introduced methods to the bottom of the test case class. Extracted method to set up mock method invocation. Original pull request: #216.
…us-codes Retry requests on specified status codes. Fixes spring-projects#215.
I've fixed below ticket, please review.
https://jira.spring.io/browse/DATACMNS-1067