Skip to content

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

Closed
mamhoff wants to merge 1 commit intosolidusio:mainfrom
mamhoff:add-model-class-to-promotion-codes-controller
Closed

Fix(promotions): Add model_class method to PromotionCodesController#5980
mamhoff wants to merge 1 commit intosolidusio:mainfrom
mamhoff:add-model-class-to-promotion-codes-controller

Conversation

@mamhoff
Copy link
Copy Markdown
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
@codecov
Copy link
Copy Markdown

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
Copy Markdown
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