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

Create Spree::SimpleOrderContents #5755

Merged
merged 3 commits into from
May 23, 2024

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented May 17, 2024

Summary

Spree::OrderContents interacts heavily with the current promotion system. This adds a new Spree::SimpleOrderContents class that we can use once all the core functionality and specs for the legacy promotion system are migrated to solidus_legacy_promotions.

We're keeping Spree::OrderContents though, with the intention of moving it to solidus_legacy_promotions in the future.

Extracted from #5634

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

@mamhoff mamhoff requested a review from a team as a code owner May 17, 2024 11:47
@github-actions github-actions bot added changelog:solidus_core Changes to the solidus_core gem changelog:repository Changes to the repository not within any gem labels May 17, 2024
@mamhoff mamhoff force-pushed the simple-order-contents branch 2 times, most recently from 8e9306b to 1900daa Compare May 17, 2024 15:34
Copy link

codecov bot commented May 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.89%. Comparing base (098260d) to head (6415b7f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5755      +/-   ##
==========================================
+ Coverage   88.87%   88.89%   +0.01%     
==========================================
  Files         708      709       +1     
  Lines       16825    16843      +18     
==========================================
+ Hits        14953    14972      +19     
+ Misses       1872     1871       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Love it!

Spree::OrderContents interacts heavily with the current promotion
system. This adds a new `Spree::SimpleOrderContents` class that we can
use once all the core functionality and specs for the legacy promotion
system are migrated to `solidus_legacy_promotions`.

We're keeping `Spree::OrderContents` though, with the intention of
moving it to `solidus_legacy_promotions` in the future.
@mamhoff
Copy link
Contributor Author

mamhoff commented May 22, 2024

Rebased from main

There were two uncovered lines, and this adds coverage for those lines.
@tvdeyen tvdeyen merged commit ffbb2d2 into solidusio:main May 23, 2024
14 checks passed
mamhoff added a commit to mamhoff/solidus that referenced this pull request Jun 5, 2024
With the null promotion configuration in place, we can't use the legacy
Spree::OrderContents class, as that makes references to the legacy
promotion system.

See solidusio#5755
mamhoff added a commit to mamhoff/solidus that referenced this pull request Jun 6, 2024
With the null promotion configuration in place, we can't use the legacy
Spree::OrderContents class, as that makes references to the legacy
promotion system.

See solidusio#5755
mamhoff added a commit to mamhoff/solidus that referenced this pull request Jun 6, 2024
With the null promotion configuration in place, we can't use the legacy
Spree::OrderContents class, as that makes references to the legacy
promotion system.

See solidusio#5755
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:repository Changes to the repository not within any gem changelog:solidus_core Changes to the solidus_core gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants