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

Fix(promotions): Add model_class method to PromotionCodesController #5980

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Dec 3, 2024

Because the new promotion system lives outside the spree namespace, we need to be diligent about adding model_class to all the controllers.

I have not added a spec, because this only fails if solidus_legacy_promotions is not loaded, and that is not the case in our test suite.

Because the new promotion system lives outside the `spree` namespace, we
need to be diligent about adding `model_class` to all the controllers.

I have not added a spec, because this only fails if
solidus_legacy_promotions is not loaded, and that is not the case in our
test suite.
@mamhoff mamhoff requested a review from a team as a code owner December 3, 2024 09:09
@github-actions github-actions bot added the changelog:solidus_promotions Changes to the solidus_promotions gem label Dec 3, 2024
Copy link

codecov bot commented Dec 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.46%. Comparing base (9013f71) to head (d62cc83).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5980      +/-   ##
==========================================
+ Coverage   87.81%   89.46%   +1.64%     
==========================================
  Files         476      782     +306     
  Lines       11656    17999    +6343     
==========================================
+ Hits        10236    16102    +5866     
- Misses       1420     1897     +477     

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

@mamhoff
Copy link
Contributor Author

mamhoff commented Dec 3, 2024

Fixed in #5953

@mamhoff mamhoff closed this Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_promotions Changes to the solidus_promotions gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants