-
Notifications
You must be signed in to change notification settings - Fork 65
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
Prepare Solidus Multi Domain for Solidus 3.0 #157
Comments
I'd like to help with this one too! |
I'm not going to finish this today (and not in the next days), so I will remove myself from the card. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I opened a PR to track the work on that.
I found that this PR is related: solidusio/solidus#1993
But I think it was never done. |
I've found a commit that could fix this issue, but it never landed here. |
I think the problem is in the tests that are still using the old (deprecated) So I think it should be clarified the way that I should follow here, because I read that this extension should be deprecated in favor of the solidus core including the same functionality. |
I'm not sure all the features of this extension have been ported in core but yes, the idea was to remove from here what is already provided by Solidus and keep the extension only for the rest of the features. |
Hm... yes, but as I said I was confused by the other PR to simplify the store selection: solidusio/solidus#1993 Since the description said
I don't know what should be done now to fix these deprecation warnings, just remove the tests? |
I was working on this the other day and ended up just implementing that deprecated functionality in the store decorator:
This passed the test's through 2.11 with no deprecations, but I then ran into an error when running 3.0:
I have not investigated this error too much yet and was hoping to get out a fix by the end of the week. |
I don't know if it's useful to re-implement deprecated methods that were in the core just to find the current store. |
I agree with @afdev82. We need to update the gem to use the core functionalities instead of re-implementing the deprecated ones.
The default store selector provided in core already select the current store based on the domain of the request: https://github.com/solidusio/solidus/blob/6c0da5d618a6d04d13ef50ec01ae17c3b06f6259/core/app/models/spree/store_selector/by_server_name.rb. Maybe it's just a matter to use this without re-implementing any new selector? |
I could just remove these lines and see if the tests pass. |
I can confirm the tests fail with Solidus v3 as already said by @cpfergus1 |
The 401 you encountered is that the tests are using |
Yes, you are right. I found also a PR that was not merged regarding this issue: #106 |
Now only the failing test with capybara should be fixed. |
I think we can forget about the error and remove the feature from this extension. |
I have not found a solution for it at this time, I am open to it if @kennyadsl feels it is appropriate |
I just removed that feature in my PR. |
I merged the PR, thanks @afdev82 and @cpfergus1 ! |
Update this extension so that it works with Solidus 3.0 by making sure the specs pass.
The text was updated successfully, but these errors were encountered: