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

Move promotion code batch services #5787

Merged
merged 4 commits into from
Jun 14, 2024

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Jun 12, 2024

Summary

This moves the PromotionCodeBatchMailer and the PromotionCodeBatchJob to solidus_legacy_promotions. I want to have the service objects over before moving all the models. Unfortunately, the model here interacts heavily with the services, so I need to extract one method to a decorator that will disappear once the rest of the models have moved.

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 Jun 12, 2024
@mamhoff mamhoff force-pushed the move-promotion-code-batch-services branch 2 times, most recently from 31fc542 to 066f6c4 Compare June 12, 2024 15:15
mamhoff added 4 commits June 13, 2024 10:17
We need to temporarily freedom-patch Spree::PromotionCodeBatch, because
the model class needs to stay in Solidus Core, but the tests, jobs and
mailers are already in `solidus_legacy_promotions`. Once everything is
moved, we can merge the model and the decorator again.
@mamhoff mamhoff force-pushed the move-promotion-code-batch-services branch from 066f6c4 to d293d0d Compare June 13, 2024 08:18
Copy link

codecov bot commented Jun 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.72%. Comparing base (6684502) to head (d293d0d).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5787      +/-   ##
==========================================
- Coverage   88.72%   88.72%   -0.01%     
==========================================
  Files         712      713       +1     
  Lines       16914    16917       +3     
==========================================
+ Hits        15007    15009       +2     
- Misses       1907     1908       +1     

☔ 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 13, 2024 08:29
@mamhoff mamhoff requested a review from a team as a code owner June 13, 2024 08:29
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.

Thanks Martin!

@tvdeyen tvdeyen merged commit 90d5770 into solidusio:main Jun 14, 2024
14 checks passed
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants