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

NullPromotionHandler: return self from #apply #5767

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented May 30, 2024

The existing promotion handlers are activated using either #apply or #activate. The return value #activate is usually not read, and is thus not really important, but that of #apply must be the handler itself, so that e.g. the adjustments admin has access to any promotion application errors.

@mamhoff mamhoff requested a review from a team as a code owner May 30, 2024 15:07
Copy link

codecov bot commented May 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.91%. Comparing base (7172aa8) to head (9ba5198).

Current head 9ba5198 differs from pull request most recent head 74dd96e

Please upload reports for the commit 74dd96e to get more accurate results.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5767   +/-   ##
=======================================
  Coverage   88.91%   88.91%           
=======================================
  Files         711      711           
  Lines       16885    16886    +1     
=======================================
+ Hits        15013    15014    +1     
  Misses       1872     1872           

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

@mamhoff mamhoff force-pushed the null-promo-handler-return-value branch from 9ba5198 to 74dd96e Compare May 31, 2024 12:04
The existing promotion handlers are activated using either `#apply` or
`#activate`. The return value `#activate` is usually not read, and is
thus not really important, but that of `#apply` must be the handler
itself, so that e.g. the adjustments admin has access to any application
errors.
@mamhoff mamhoff force-pushed the null-promo-handler-return-value branch from 74dd96e to fd5d77e Compare June 4, 2024 07:43
@github-actions github-actions bot added the changelog:solidus_core Changes to the solidus_core gem label Jun 4, 2024
@tvdeyen tvdeyen enabled auto-merge June 4, 2024 07:44
@tvdeyen tvdeyen merged commit ca82fa6 into solidusio:main Jun 4, 2024
10 of 12 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