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

Shipment state on hold while payment is processing #1031

Merged
merged 1 commit into from
Feb 26, 2014

Conversation

umpirsky
Copy link
Contributor

Part of https://github.com/Sylius/Sylius/wiki/Status#wiki-successful-order.

BTW @pjedrzejewski @winzou We extended state resolver internally to resolve order state, it looks sth like this https://gist.github.com/umpirsky/2008fc7ca2484631b7f7 What do you think? Can we have something similar in Sylius?

@winzou
Copy link
Contributor

winzou commented Feb 12, 2014

+1 for the PR.

+1 as well for you resolver. But I think we need something more powerful. We have lots of states, lots of different state types, and quite complex relations between all of them. I feel there must be a place where everything is centralized and right events dispatched at the right time. It's currently way too much spread everywhere is the code, and I'm sure it's not consistent in every cases (because we forgot to dispatch certain events, etc.).

@umpirsky
Copy link
Contributor Author

@winzou I'm curious to see how more powerful resolver looks like.

@pjedrzejewski And yet again, the question is, do we need order state at all?

@winzou
Copy link
Contributor

winzou commented Feb 12, 2014

Sorry, I was not really clear, I'm not thinking of just a resolver but a full "state manager" that would handle all kind of states, dispatch events, etc. and eventually resolve this order state.

And I think yes we need order states, because it simplifies UI. Especially when stores have their own shipping/inventory/whatever states, then we can still rely on some generic order states. What do you think?

@umpirsky
Copy link
Contributor Author

Sounds OK. 👍

@pjedrzejewski
Copy link
Member

User panel orders section scenario is failing. Otherwise 👍.

@winzou
Copy link
Contributor

winzou commented Feb 23, 2014

@umpirsky requires rebase.

@umpirsky
Copy link
Contributor Author

Rebased.

@stloyd stloyd added this to the 1.0.0-BETA1 milestone Feb 24, 2014
pjedrzejewski pushed a commit that referenced this pull request Feb 26, 2014
Shipment state on hold while payment is processing
@pjedrzejewski pjedrzejewski merged commit 51e58d4 into Sylius:master Feb 26, 2014
@pjedrzejewski
Copy link
Member

Thank you Sasha.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants