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

[Cart] remove deprecated isFresh() method from CartEvent #3821

Merged
merged 1 commit into from
Jan 6, 2016

Conversation

flajos
Copy link
Contributor

@flajos flajos commented Jan 6, 2016

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? yes
Fixed tickets #3820
License MIT

In older versions of Sylius the cart totals were recalculated (aka the cart was "refreshed") via setting the CartEvent to fresh and checking if it is fresh on the right places. If the event was fresh, the cart was recalculated. Now that is solved via triggering the SyliusCartEvents::CART_CHANGE event. The isFresh() method is removed (it was only set, resulting in a more convoluted code, but never checked for after the switch to event listeners).

In older versions of Sylius the cart totals were recalculated (aka the cart was "refreshed") via setting the CartEvent to fresh and checking if it is fresh on the right places. If the event was fresh, the cart was recalculated. Now that is solved via triggering the SyliusCartEvents::CART_CHANGE event. The isFresh() method is removed (it was only set, resulting in a more convoluted code, but never checked for after the switch to event listeners).
@michalmarcinkowski
Copy link
Contributor

@flajos I have restarted the build (looks like random fail).

FYI the cart recalculation process will be totally reworked in the comming weeks :)

@flajos
Copy link
Contributor Author

flajos commented Jan 6, 2016

Yep, thx, it seems OK now.

I'm eager to see the rework :)

pjedrzejewski pushed a commit that referenced this pull request Jan 6, 2016
[Cart] remove deprecated isFresh() method from CartEvent
@pjedrzejewski pjedrzejewski merged commit c30bf8d into Sylius:master Jan 6, 2016
@pjedrzejewski
Copy link
Member

Thanks Lajos!

@flajos flajos deleted the issue_3820 branch January 6, 2016 15:02
@flajos flajos restored the issue_3820 branch January 6, 2016 15:05
@flajos flajos deleted the issue_3820 branch January 6, 2016 15:06
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.

3 participants