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

Use Null Promotion Configuration in core #5744

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented May 7, 2024

Summary

We want to use the legacy Spree::LegacyPromotions::Configuration only in the solidus_legacy_promotions test suite. In the core test suite, we use the Spree::Core::NullPromotionConfiguration. This will finally allow us to move all the classes and specs to the solidus_legacy_promotions gem in a future PR.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

@github-actions github-actions bot added the changelog:solidus_core Changes to the solidus_core gem label May 7, 2024
@github-actions github-actions bot added the changelog:repository Changes to the repository not within any gem label May 16, 2024
@github-actions github-actions bot added the changelog:solidus_api Changes to the solidus_api gem label May 17, 2024
Copy link
Member

@jarednorman jarednorman left a comment

Choose a reason for hiding this comment

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

I absolutely love the direction you're taking this.

@mamhoff mamhoff force-pushed the use-null-promo-config branch 3 times, most recently from bb52430 to c7c2761 Compare June 4, 2024 10:23
@github-actions github-actions bot removed changelog:solidus_api Changes to the solidus_api gem changelog:repository Changes to the repository not within any gem labels Jun 4, 2024
With the NullPromotionConfiguration, the default promotion attributes
are an empty list. In order to test whether attributes can be deleted
from this list, we first have to add an attribute.
We want to use the legacy `Spree::PromotionConfiguration` in the
solidus_legacy_promotions test suite.
@github-actions github-actions bot added the changelog:solidus_api Changes to the solidus_api gem label Jun 4, 2024
Copy link

codecov bot commented Jun 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.71%. Comparing base (ca82fa6) to head (77a2aab).

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #5744       +/-   ##
===========================================
+ Coverage   75.56%   88.71%   +13.15%     
===========================================
  Files         711      711               
  Lines       17796    16886      -910     
===========================================
+ Hits        13447    14980     +1533     
+ Misses       4349     1906     -2443     

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

@mamhoff mamhoff marked this pull request as ready for review June 4, 2024 10:50
@mamhoff mamhoff requested a review from a team as a code owner June 4, 2024 10:50
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.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_api Changes to the solidus_api 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

4 participants