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

Remove deprecated order updater promotions code #4890

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Jan 31, 2023

Summary

This is a followup to #4460. As part of the transition to using the configurable order adjuster and removing some of the knowledge around promotions from the order updater, we were still updating the order's promo total in #update_adjustment_total. This removes the deprecated methods and the line that supports them.

This is for Solidus 4.0.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

  • I have written a thorough PR description.
  • I have kept my commits small and atomic.
  • I have used clear, explanatory commit messages.
  • I have documented new code with YARD.

The following are not always needed (cross them out if they are not):

  • I have added automated tests to cover my changes.
  • I have attached screenshots to demo visual changes.
  • I have opened a PR to update the guides.
  • I have updated the README to account for my changes.

We now do all of this stuff in the configurable promotion adjuster
class.
@mamhoff mamhoff requested a review from a team as a code owner January 31, 2023 08:52
@mamhoff mamhoff mentioned this pull request Jan 31, 2023
7 tasks
@github-actions github-actions bot added the changelog:solidus_core Changes to the solidus_core gem label Jan 31, 2023
@kennyadsl kennyadsl added this to the 4.0 milestone Jan 31, 2023
@kennyadsl kennyadsl added the release:major Breaking change on hold until next major release label Jan 31, 2023
@codecov
Copy link

codecov bot commented Jan 31, 2023

Codecov Report

Merging #4890 (b13ca75) into master (07f248c) will increase coverage by 0.04%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4890      +/-   ##
==========================================
+ Coverage   86.25%   86.29%   +0.04%     
==========================================
  Files         577      577              
  Lines       14678    14665      -13     
==========================================
- Hits        12660    12655       -5     
+ Misses       2018     2010       -8     
Impacted Files Coverage Δ
core/app/models/spree/order_updater.rb 100.00% <ø> (+6.95%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@rainerdema rainerdema left a comment

Choose a reason for hiding this comment

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

👍

@kennyadsl kennyadsl merged commit b08aa4f into solidusio:master Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_core Changes to the solidus_core gem release:major Breaking change on hold until next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants