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 Process to keep step sequence after removing step #375

Merged
merged 1 commit into from
Oct 4, 2013

Conversation

Richtermeister
Copy link
Contributor

Currently removing a step from the process leaves gaps in the step sequence and a process is considered closed at the breakpoint, even though there are more steps thereafter. This commmit ensures that proper index sequence is maintained throughout step removal/additions.

Currently removing a step from the process leaves gaps in the step sequence and a process is considered closed at the breakpoint, even though there are more steps thereafter. This commmit ensures that proper index sequence is maintained throughout step removal/additions.
pjedrzejewski pushed a commit that referenced this pull request Oct 4, 2013
Fix Process to keep step sequence after removing step
@pjedrzejewski pjedrzejewski merged commit fac6f28 into Sylius:master Oct 4, 2013
@pjedrzejewski
Copy link
Member

Actually I had this problem too... :) Thank you Daniel!

@Richtermeister Richtermeister deleted the fix-flow-step-remove branch October 4, 2013 21:56
@Richtermeister
Copy link
Contributor Author

Welcome! I'm thinking over time I'd like to make the steps a bit more flexible as well. Right now they are very linear, but in a checkout process I think people need to be able to jump around and for returning visitors I would like to drop them off at the highest available step.. stuff like that.
Ideally steps should also be able to determine whether they are accessible on their own.

@pjedrzejewski
Copy link
Member

You can already jump between steps, so non-linear processes are possible, where some steps are skipped or you have several paths. But yes, there is a limitation in regard to which step user can "get back". Your idea about step being able to determine whether it is accessible is very cool. Best scenario is where we have current behavior as default and allowing to customize this like you said.

@Richtermeister
Copy link
Contributor Author

IIRC once you step back to a previous step the history is rolled back and you have to step forward sequentially again to get back to where you were. So, after going from the Finalize step to the address step, you can't go back to finalize directly. If my memory serves right.. For the current Sylius structure that is actually a good thing since changing the address would have to cause tax/shipping to be recalculated, but just visiting a step is currently enough to kill the history. And yes, defaulting to linear is fine.

pamil pushed a commit to pamil/Sylius that referenced this pull request Mar 21, 2016
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

2 participants