-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add failing test with synchronous event sourced saga #112
Conversation
Amazing :) How important is this for you? From what I understood in the issue, you changed the flow, so no hurry with this one? |
We corrected the flow in one case, but we found it in another case, fixed it, and then back again after a refactoring, making the synchronous flow pretty unusable. Pretty hard to debug as we receive only a postgres "duplicate key error" from our projection (first |
Hey @unixslayer :) |
Sure. I'll find some time after this weekend. |
Great thanks @unixslayer :) |
👀 |
Model fails in two different circumstances and setups. In Behat test, initialization of SagaProjection is not triggered even it is configured and registered correctly. Although, I've noticed that I've also written unit test using @jlabedo if you grant me access to your fork I can push additional commit with changes I've made. |
Hello @unixslayer , i gave you access to my repository, thanks! |
95467aa
to
1d5b2a9
Compare
1d5b2a9
to
6e0557c
Compare
6e0557c
to
bc848d2
Compare
} else { | ||
$namedEventHandlers[$chanelName][] = $chanelName; | ||
$namedEventHandlers[$chanelName] = array_unique($namedEventHandlers[$chanelName]); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is small improved to avoid registering event handler by class name routing by name, if not defined explicitly.
@jlabedo @unixslayer This is solved by #139 :) |
Test to reproduce #104
The test is failing because the SagaProjection is not initialized. In fact, the event handler is executed as a "normal" event handler and not in the context of a "projection" handler