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

Fixed: don't destroy dependent associations if we cannot destroy the User #7430

Merged
merged 1 commit into from Jul 6, 2016

Conversation

vishalzambre
Copy link
Contributor

Moved check_completed_orders to UserMethods module

Previously :check_completed_orders callback could stop deleting the
User but associations (with dependent: :destroy) were
deleted whatsoever, as this is a rails bug (see
rails/rails#3458)

@runlevel5
Copy link
Member

@vishalzambre can we have a spec? such change can be a major regression maker

@vishalzambre
Copy link
Contributor Author

@joneslee85 Sure will update spec.

@vishalzambre
Copy link
Contributor Author

@joneslee85 updated with spec

@damianlegawiec
Copy link
Member

Thanks @vishalzambre 👍

@damianlegawiec damianlegawiec merged commit 6deed74 into spree:master Jul 6, 2016
damianlegawiec added a commit to spark-solutions/spree_auth_devise that referenced this pull request Jul 28, 2016
…serMethods

spree/spree#7430 in spree fixed user deletion
validation and this caused some outdated specs in spree_auth_devise to
fail.
@vishalzambre vishalzambre deleted the user_before_destroy branch April 3, 2017 10:01
hishammalik pushed a commit to arkhitech/spree_auth_devise that referenced this pull request Feb 10, 2018
…serMethods

spree/spree#7430 in spree fixed user deletion
validation and this caused some outdated specs in spree_auth_devise to
fail.
freedeveloper000 added a commit to freedeveloper000/spree_auth_devise that referenced this pull request Feb 28, 2022
…serMethods

spree/spree#7430 in spree fixed user deletion
validation and this caused some outdated specs in spree_auth_devise to
fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants