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

Fix state machine transition bug from PR #304 #306

Merged
merged 2 commits into from
Oct 9, 2018

Conversation

davidlatwe
Copy link
Collaborator

In the state machine, extracting state needs to transition to finished if the validation failed during the publish, or the stop button won't change to reset button, and cause user operation not able to continue.

qml_fix304_before

This commit fixed that.

qml_fix304_after


Somehow I missed this one in the previous tests, after founding this bug in my work, right after the release of 1.8.6, I spend a day did a series of user operation flow inspection, including each kind of Action, and compared the outcome with previous releases, so far this is the only one that I have missed based on previous PRs.

User operation will not be able to continue if the validation failed during
the publish, since the logic to interrupt publish when validation failed is
taking place in the beginning of extraction.

In the state machine, `extracting` state will need to transition to `finished`
when the validation failed, and since it's not able to do so, operation
can't continue, due to the stop button didn't change to reset button.

This commit fixed that.
@mottosso
Copy link
Member

mottosso commented Oct 8, 2018

Fantastic work @davidlatwe, you are welcome to merge!

@davidlatwe
Copy link
Collaborator Author

Thanks, merging ! ❤️

@davidlatwe davidlatwe merged commit 09b6670 into pyblish:master Oct 9, 2018
@davidlatwe davidlatwe deleted the fix-state branch October 9, 2018 04:06
@davidlatwe davidlatwe changed the title Fix state machine transision bug from PR #304 Fix state machine transition bug from PR #304 Oct 9, 2018
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.

2 participants