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

Only set promo configuration to legacy if no other set #5928

Merged

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Nov 15, 2024

This sets the promotion configuration to the legacy promotion system if no other promotion system, like solidus_promotion has been configured in the spree initializer.

This should get rid of errors people encounter when trying to use solidus_promotions, but the system being reconfigured without their intervention to use the legacy system.

Here's the problem this should solve:

grafik

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 November 15, 2024 12:30
@github-actions github-actions bot added the changelog:repository Changes to the repository not within any gem label Nov 15, 2024
@mamhoff mamhoff force-pushed the only-set-legacy-promo-config-if-none-set branch from 07f7f78 to b5688a6 Compare November 15, 2024 12:45
Copy link

codecov bot commented Nov 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.54%. Comparing base (8ff6267) to head (f4d24f2).
Report is 73 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5928      +/-   ##
==========================================
+ Coverage   87.81%   89.54%   +1.72%     
==========================================
  Files         476      782     +306     
  Lines       11656    17988    +6332     
==========================================
+ Hits        10236    16107    +5871     
- Misses       1420     1881     +461     

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

@tvdeyen tvdeyen added backport-v4.4 Backport this pull-request to v4.4 changelog:solidus_legacy_promotions Changes to the solidus_legacy_promotions gem and removed changelog:repository Changes to the repository not within any gem labels Nov 15, 2024
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Can we remove the white space changes?

This sets the promotion configuration to the legacy promotion system if
no other promotion system, like `solidus_promotion` has been configured
in the `spree` initializer.

This should get rid of errors people encounter when trying to use
`solidus_promotions`, but the system being reconfigured without their
intervention to use the legacy system.
@mamhoff mamhoff force-pushed the only-set-legacy-promo-config-if-none-set branch from a8c4c64 to f4d24f2 Compare November 15, 2024 14:39
@github-actions github-actions bot added the changelog:repository Changes to the repository not within any gem label Nov 15, 2024
@tvdeyen tvdeyen enabled auto-merge November 15, 2024 14:41
@tvdeyen tvdeyen removed the changelog:repository Changes to the repository not within any gem label Nov 15, 2024
@tvdeyen tvdeyen merged commit 8a060c1 into solidusio:main Nov 15, 2024
15 checks passed
@tvdeyen
Copy link
Member

tvdeyen commented Dec 6, 2024

Backport after #6016

@tvdeyen tvdeyen added backport-v4.4 Backport this pull-request to v4.4 and removed backport-v4.4 Backport this pull-request to v4.4 labels Dec 6, 2024
Copy link

github-actions bot commented Dec 6, 2024

💚 All backports created successfully

Status Branch Result
v4.4

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v4.4 Backport this pull-request to v4.4 changelog:solidus_legacy_promotions Changes to the solidus_legacy_promotions gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants