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

[Spree 2.1] Upgrade to Spree 2-1-0 #3704

Closed
luisramos0 opened this issue Apr 6, 2019 · 9 comments
Closed

[Spree 2.1] Upgrade to Spree 2-1-0 #3704

luisramos0 opened this issue Apr 6, 2019 · 9 comments
Labels
epic Group of issues tech debt

Comments

@luisramos0
Copy link
Contributor

luisramos0 commented Apr 6, 2019

The initial analysis/estimation is in #3565, this epic will contain all tasks and subepics for the upgrade to 2-1-0 much like #2109 for spree 2-0-4.

Relation to Rails 4 Upgrade

Spree 2-1-0 runs on Rails 4.0.0 and this epic should include all work related to the upgrade of OFN to rails 4 as well.

Relation to Ruby 2.2 Upgrade

#2891 is the issue that represents the work to upgrade OFN to Ruby 2.2 (although some rails upgrade discussion happened there). OFN 2.0.0 runs on ruby 2.1.5 and spree 2-1-0 will run on ruby 2.1.5 as well, so 2891 is not directly connected to this epic should remain open.

The upgrade branch

The 2-1-stable branch is based on spree 2.1. There are some temporary fixes on it right now so that we can see the specs running.

@luisramos0 luisramos0 added tech debt epic Group of issues labels Apr 6, 2019
@luisramos0 luisramos0 changed the title Upgrade to Spree 2-1-0 [Spree 2.1] Upgrade to Spree 2-1-0 Apr 6, 2019
@Matt-Yorkley
Copy link
Contributor

Looks like the 2.1 stable branch of the better_spree_paypal_express gem requires spree_core 2.1.1 instead of 2.1.0...

@luisramos0
Copy link
Contributor Author

luisramos0 commented Dec 19, 2019

that is correct, I think the rule is that x-y-stable branches represent version x.y.z whwere z is the last/max stable version. so I'd expect 2-1-stable better_spree_paypal_express to be the latest better_spree_paypal_express 2.1.x version and depend on spree versions as high as possible, possibility the latest 2-1-X version

@mkllnk
Copy link
Member

mkllnk commented Feb 25, 2020

I'm trying to upgrade Ceres Fair Food to Rails 4 and ran into an incompatibility between Rails 4.x and Ruby 2.3. The newer Ruby version introduced a new method and which breaks a respond_to call in Rails. rails/rails@a98475c

I'm trying to solve this by "patching" Ruby in an initializer:

# Ruby 2.3 introduces the method Hash#to_proc.
# Unfortunately, Rails 4 assumes that hashes don't respond to that method.
# https://github.com/rails/rails/commit/a98475c2df8ab7d7d353cb29bb3f201c4c7eb9d1
# Rails 5 is patched.
Hash.send(:remove_method, :to_proc)

The other option would be to patch Rails.

@luisramos0
Copy link
Contributor Author

great finding Maikel!
are you sure we will bump into that as well? if no, let's wait until we have that problem, otherwise, let's get have a PR ❤️

@mkllnk
Copy link
Member

mkllnk commented Feb 25, 2020

I don't know if we will bump into it. I just wanted to share it here just in case. The error message will be: ArgumentError: wrong number of arguments (given 0, expected 1)

@luisramos0
Copy link
Contributor Author

great, thanks!

@luisramos0 luisramos0 added the pr-staged-uk staging.openfoodnetwork.org.uk label Apr 17, 2020
@sigmundpetersen sigmundpetersen removed the pr-staged-uk staging.openfoodnetwork.org.uk label Apr 18, 2020
@luisramos0
Copy link
Contributor Author

Moving to ready to go as we will be merging the branch to master soon.

@RachL
Copy link
Contributor

RachL commented Jun 15, 2020

@luisramos0 I see there are two issues still attached here and not merged yet. Do we need to keep track of them in the epic? If so I would moved it back to test ready. Otherwise we can close it an follow the issues as part of the general workflow now that everything is in master?

@luisramos0
Copy link
Contributor Author

luisramos0 commented Jun 15, 2020

yeah, we can keep them in this epic but I am closing the epic now anyway. It's master now so any issue will be a normal issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic Group of issues tech debt
Projects
None yet
Development

No branches or pull requests

5 participants