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

Deprecate AdjustmentSource#deals_with_adjustments_for_deleted_source #2259

Merged

Conversation

cbrunsdon
Copy link
Contributor

@cbrunsdon cbrunsdon commented Oct 4, 2017

Stop setting spree_adjustments.source_id to null on completed orders
when deleting an adjustment source.

This shouldn't be necessary since in either case adjustment.source
will be nil. Also, the two sources using this within Solidus itself
(PromotionAction and TaxRate) both use acts_as_paranoid so deleting
the source_id deletes data that could still be useful because the
record is still actually in the database.

Rebase of #1419

Stop setting spree_adjustments.source_id to null on completed orders
when deleting an adjustment source.

This shouldn't be necessary since in either case `adjustment.source`
will be nil. Also, the two sources using this within Solidus itself
(PromotionAction and TaxRate) both use `acts_as_paranoid` so deleting
the source_id deletes data that could still be useful because the
record is still actually in the database.
@cbrunsdon cbrunsdon force-pushed the deals-with-deals-with-1419-rebase branch from 8568442 to d63e06e Compare October 4, 2017 18:24
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.

3 participants