-
-
Notifications
You must be signed in to change notification settings - Fork 725
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
[Spree Upgrade] Subs - Remove process_payments!
override
#2520
Comments
process_payments!
overrideprocess_payments!
override
process_payments!
overrideprocess_payments!
override
The Spree 2 method is almost exactly the same as our override. The only difference is an update in Spree 2 which would be good to have as well: openfoodfoundation/spree@884c0ff |
It seems like removing the override breaks a few tests, probably due to the new check for the presence of pending payments.
The tests break around subscriptions. The problem is that subscriptions override |
process_payments!
overrideprocess_payments!
override
I just had a look. This pull request removed the override of
A lot of our specs didn't care and don't create payments before transitioning them to
|
Description
As summarised in https://github.com/openfoodfoundation/openfoodnetwork/wiki/Spree-Upgrade:-Checkout-customisations, we backported functionality from Spree 2 into our code. With the Spree upgrade, we can get rid of the code:
openfoodnetwork/app/models/spree/order_decorator.rb
Lines 327 to 344 in 32846af
Expected Behavior
Less code, but everything still works.
Actual Behavior
Duplicate code. We override Spree's code with the same functionality.
Steps to Reproduce
This is part of the Spree upgrade and the proposed change should be merged into the 2-0-stable branch.
The text was updated successfully, but these errors were encountered: