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

Clear failed callbacks earlier #600

Merged
merged 1 commit into from Mar 4, 2019

Conversation

nedgar
Copy link
Contributor

@nedgar nedgar commented Feb 21, 2019

Fixes #599.

This clears the failed callbacks (at the start of Event#_fire) for all the event's transitions, not just the selected one, since failed_callbacks collects failures from all transitions. In particular, this is needed to avoid propagating past failures when no transition is applicable.

@nedgar
Copy link
Contributor Author

nedgar commented Feb 21, 2019

The build failures look unrelated to the changes here.

@anilmaurya
Copy link
Member

Hi @nedgar ,
Thank you for sending PR to fix this issue. It looks good to me.

Yes, build failure is not related to this change. I will first fix build before merging this PR.

Thank you once again.

@anilmaurya anilmaurya merged commit a8a5118 into aasm:master Mar 4, 2019
@anilmaurya
Copy link
Member

Merged. Thank you @nedgar .

@nedgar
Copy link
Contributor Author

nedgar commented Mar 4, 2019

Great, thanks @anilmaurya!

@ajkerr
Copy link

ajkerr commented Mar 7, 2019

@anilmaurya Any chance of a 5.0.2 version bump with this fix included?

@anilmaurya
Copy link
Member

Yes, I will release 5.0.2 version with this fix, today.

@anilmaurya
Copy link
Member

@ajkerr Released 5.0.2 including this PR.

@ajkerr
Copy link

ajkerr commented Mar 8, 2019

Thank you!

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

Successfully merging this pull request may close these issues.

None yet

3 participants