Skip to content

Deprecate unused calculators#3863

Merged
kennyadsl merged 3 commits intosolidusio:masterfrom
DanielePalombo:danielepalombo/deprecate-useless-methods
Dec 16, 2020
Merged

Deprecate unused calculators#3863
kennyadsl merged 3 commits intosolidusio:masterfrom
DanielePalombo:danielepalombo/deprecate-useless-methods

Conversation

@DanielePalombo
Copy link
Copy Markdown
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
Copy Markdown
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