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 unused calculators #3863

Conversation

DanielePalombo
Copy link
Contributor

The following models have been deprecated without making any warning messages.

# @deprecated This calculator will be removed in future versions of Spree.

# TODO Should be deprecated now that we have adjustments at the line item level in spree core

This PR is going to add the related deprecation message.

Checklist:

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have updated Guides and README accordingly to this change (if needed)
  • I have added tests to cover this change (if needed)
  • I have attached screenshots to this PR for visual changes (if needed)

This method is deprecated in favour of
Spree::Calculator::PercentOnLineItem

ref solidusio@983e5aa
This calculator in present in the codebase but not available anywhere
in the admin since it is not added in the array of available
calculators in app_configuration.rb.
@kennyadsl kennyadsl added this to the 2.11 milestone Dec 14, 2020
@kennyadsl kennyadsl changed the title Deprecate useless methods Deprecate unused calculators Dec 14, 2020
@kennyadsl kennyadsl requested a review from a team December 14, 2020 11:18
Copy link
Member

@spaghetticode spaghetticode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @DanielePalombo 👍

@kennyadsl kennyadsl merged commit c7025ee into solidusio:master Dec 16, 2020
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