-
-
Notifications
You must be signed in to change notification settings - Fork 121
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
Move to Spree::SoftDeletable on users model #223
base: main
Are you sure you want to change the base?
Conversation
Hello @jtapia !
|
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.
Hey @jtapia! The commit in this PR appears to two things:
- It removes support for Solidus versions prior to the introduction of
Spree::SoftDeletable
in order to fix an autoloading issue - Fixes keyword usage in order to fix Ruby 3.x support in the specs.
We really like atomic commits on the Solidus projects, and expect some level of explanation in the commit messages. This article has a good example of what we expect.
If you split the commit in two and PR the Ruby 3.x compat change, we can get that merged right away. That's an easy rubber stamp.
As for the first thing, the soft deletion stuff, can you open an issue explaining the issue you're seeing? We need to understand what the issue is and confirm that this is the correct solution before we move forward with that change.
I'm seeing this autoloader issue on 3.1.7 -- App boots well but after modifying hot reload crashes:
gem 'rails', '6.1.4.1' |
@jakemumu Can you tell what file you are modifying that causes hot reload to crash? How can we reproduce the error? |
We probably don't want https://github.com/solidusio/solidus/blob/master/core/app/models/concerns/spree/soft_deletable.rb to be code-reloaded. It sounds like there's an issue with code reload order with it. |
53ebfeb
to
966495a
Compare
@jarednorman ok, I moved it into 2 commits and created this issue #225 |
If you put the keyword commit in a new PR we can merge it right away. I don't think the other commit will be the solution we want for the autoload issue though. |
966495a
to
512fc62
Compare
@jarednorman if you removed all the references for |
@gsmendoza I'm using |
I'm not sure I understand what you're asking. The conditional above allows stores that are significantly behind (pre-v2.10.4 I think) on their Solidus upgrades to still use the latest version of solidus_auth_devise. |
I get what you're saying @jarednorman -- I think that sounds correct. During hot reloading that check is failing & it's trying to load paranoid -- on initial app launch it's all good. It must be the user loading first for some reason. @gsmendoza -- It's not any single file but we use view_component gem in our app and I've noticed it occur whenever I edit a |
Yeah, it probably isn't significant what file you edit. Zeitwerk will reload everything if anything has changed since the last request. |
@jarednorman the latest gemspec of auth-devise requires solidus 3.x, so I think it's ok to rely on |
Ah, no, that's fine then. |
@jtapia can you take care of updating the commit message and PR title? |
@elia I updated it, but not sure if that is the title and description you want to, please let me know if you want to change it and I can do it |
@jtapia I mentioned the PR title, but the most important thing is the commit message, for future lookups, as the current one could be confusing 🙏 |
@jarednorman would you mind looking into this again? |
Summary
auth-devise
, move toSpree::SoftDeletable