-
-
Notifications
You must be signed in to change notification settings - Fork 729
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
Bring spree_backend base controller to OFN #4512
Bring spree_backend base controller to OFN #4512
Conversation
5a2aed1
to
fce402a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay! Such a good cleanup.
There are two Code Climate complaints. I don't think you need to reduce the lines of code here because that's out of scope. But it would be nice to simply change URI.unescape
to CGI.unescape
. Otherwise we have to change that when upgrading. URI.unescape
has been deprecated in Ruby 2.5.5.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Maikel, I changed to CGI.unescaped 👍
I removed a line of code I now realize is not needed. the helper method is never used in our code base. |
…th the OFN's decorator
…ty alerts This is not something we need running such an old version of spree
ff6f43c
to
f587bbb
Compare
All good.
All good.
All good
All good. Tested CRUD and bulk update.
All good.
@luisramos0 to my knowledge this banner only show up as super admin. I tried to create an OC without payment methods and now the new layout tell me I cannot select my hub if I don't have a payment method. I guess you added a test for this? Which is I think the perfect way to go 👍 Anyway as this is impacting super admin only, I'm moving it to ready to go. |
just to play on the safe side here, lets confirm we are on the same page. |
@luisramos0 yes but I can't delete a payment method once it is in the OC... Or you mean a fresh OC with no orders yet? |
I didnt say delete, I said "remove the last payment method from a hub". I should have said "remove the hub from the list of enterprises associated with the payment method" :-) do you see what I mean? |
ah, nice, thanks @RachL |
What? Why?
Related to #4050
Here we bring spree/admin/base_controller to OFN and merge its decorator.
One of the reasons we are doing this, we bring some code we need but end up deleting a good part of it or related useless stuff (like the alerts in this case) leaving us with basically the same number of lines of code:
What should we test?
We remove a dead feature in spree (security alerts from spree itself). In general settings there was this checkbox, it's now gone:
This controller is the parent of all controllers in spree.
This is what I think we should validate:
Release notes
Changelog Category: Changed
Moved basic admin controller code to OFN to remove dependency from Spree.