-
Notifications
You must be signed in to change notification settings - Fork 50
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
Uninitialized constant error (Spree::ProductsController) #120
Comments
My guess is that you've installed this extension on a store that's using Solidus Starter Frontend, but this extension hasn't been updated to support it. |
@jarednorman what would be the most elegant way to solve this? We could spare some time for that. |
The project would need to be reviewed (pun intended) to determine which ways it assumes you're using the original solidus_frontend instead of solidus_starter_frontend. My preference would be that you then update the gem to work with the starter frontend (and possibly the new admin too) and then bump it to a new major version. It should be possible to craft this extension such that it can be used with either frontend, but it wouldn't be directly compatible with existing installations without some changes. |
We don't want to put hands into the work in progress you are doing with the Admin backend, if we take care of the front-end aspects, could you people handle the backend? |
@Buvanesh-P Did anybody on your side fix this?
|
@kennyadsl should the old front-end be globally dropped or is it currently something you support? |
I don't think dropping it is a good idea, given supporting both isn't all that much work. |
@jarednorman @kennyadsl please align on desired level of support. For how I see it from the readme.md the old frontend is deprecated and all versions are EOL, am I missing something? |
I'm ok with Jared proposed. It's the same thing we did for Subscriptions, which I pointed you to in Slack. |
@kennyadsl is the above ok for you? For us a review that works with the old solidus frontend is beyond test scope and I wouldn't like to commit something that we haven't tested (with humans) end to end. I just do not have the same amount of faith in automated testing. |
What do you suggest in this case? |
To be fully honest three things:
I know the for example that the new promotion system was a monster task but I have the feeling with a little bit more manual testing a lot of stuff would have been caught earlier and to do manual testing against both frontends seems a nightmare to me, let's not pray to a dead cow. But that's my cup of tea and I wouldn't die on that hill (different than meta data which is something I deem immensely important for the eco system), but I feel that would be a better approach. |
I don't have time to dive into everything here right now, but I wanted to comment on a couple of things.
Most existing stores use the legacy frontend and there isn't a practical upgrade path, so we need to maintain support for it.
No. This is a terrible idea for a number of reasons, including that we would have to ship new versions of every supported gem every time we release a new Solidus version. |
products_controller_decorator
searching forSpree::ProductsController
which not existSteps to reproduce
gem 'solidus_reviews'
rails generate solidus_reviews:install
/var/lib/gems/3.0.0/gems/solidus_reviews-1.7.0/app/decorators/controllers/solidus_reviews/spree/products_controller_decorator.rb:12:in <module:ProductsControllerDecorator>': uninitialized constant Spree::ProductsController (NameError) from /var/lib/gems/3.0.0/gems/solidus_reviews-1.7.0/app/decorators/controllers/solidus_reviews/spree/products_controller_decorator.rb:5:in <module:Spree> from /var/lib/gems/3.0.0/gems/solidus_reviews-1.7.0/app/decorators/controllers/solidus_reviews/spree/products_controller_decorator.rb:4:in <module:SolidusReviews> from /var/lib/gems/3.0.0/gems/solidus_reviews-1.7.0/app/decorators/controllers/solidus_reviews/spree/products_controller_decorator.rb:3:in <main> from /var/lib/gems/3.0.0/g..............................
The text was updated successfully, but these errors were encountered: