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

Align some deprecation messages in Order model #3135

Merged
merged 3 commits into from
May 13, 2019

Conversation

elia
Copy link
Member

@elia elia commented Mar 7, 2019

Description

After update! => recalculate rename.

ref:

❓should create_tax_charge! implementation be replaced with a call to recalculate too?

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)

@aitbw aitbw mentioned this pull request Mar 13, 2019
2 tasks
Copy link
Contributor

@jacobherrington jacobherrington left a comment

Choose a reason for hiding this comment

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

@elia Can you take a look at the spec failures?

elia added 2 commits May 10, 2019 13:01
After update! => recalculate rename.

ref:
- solidusio#1689
- solidusio#2072
It does it in the OrderUpdater#update_shipment_amounts.
OrderUpdater already does the same thing within update_taxes.
@elia elia marked this pull request as ready for review May 10, 2019 12:54
@elia
Copy link
Member Author

elia commented May 10, 2019

@jacobherrington fixed, removed the expectation as its already part of order updater:

def update_shipment_amounts
shipments.each do |shipment|
shipment.update_amounts
end
end

Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

I assume that at this point no one is using those deprecated methods so 👍

Copy link
Contributor

@ericsaupe ericsaupe left a comment

Choose a reason for hiding this comment

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

Thanks!

@kennyadsl
Copy link
Member

@jacobherrington can you please review again? 🙂

Copy link
Contributor

@jacobherrington jacobherrington left a comment

Choose a reason for hiding this comment

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

💯 Thanks @elia!

@kennyadsl kennyadsl merged commit 1a4444a into solidusio:master May 13, 2019
@elia elia deleted the patch-1 branch June 4, 2019 09:40
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.

4 participants