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
fix: persist synthetic event #657
Conversation
Since v4.3 the event passed to the handler is not reusable anymore, because some work is done with it before. To prevent this evt.persist() is called.
Codecov Report
@@ Coverage Diff @@
## master #657 +/- ##
==========================================
+ Coverage 99.04% 99.05% +<.01%
==========================================
Files 3 3
Lines 209 211 +2
Branches 60 60
==========================================
+ Hits 207 209 +2
Misses 2 2
Continue to review full report at Codecov.
|
I tried something similar to fix that issue, it didn't work but I think the problem was I didn't do it in all the places you did :) |
On further review, is it not needed in |
Oh so the only place should be
Fair point! Will change it |
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.
LGTM ! 👍
@dan-lee can you add tests for this? |
@okonet I really would love to! But this behaviour doesn't seem to be reflected in the unit tests. The event is always populated with |
Hmm, I guess we can merge this and add tests later then. Sent with GitHawk |
What kind of change does this PR introduce?
Did you add tests for your changes?
If relevant, did you update the documentation?
Summary
Since v4.3 the event passed to the handler is not reusable anymore, because some work is done with it before. To prevent this
evt.persist()
is called.Fixes #646
Does this PR introduce a breaking change?
no
Other information
I don't really know how to test this.