Skip to content

[v4.4] Fix(promotions): Validate benefits on save#6023

Merged
tvdeyen merged 2 commits intov4.4from
backport/v4.4/pr-5981
Dec 6, 2024
Merged

[v4.4] Fix(promotions): Validate benefits on save#6023
tvdeyen merged 2 commits intov4.4from
backport/v4.4/pr-5981

Conversation

@github-actions
Copy link
Copy Markdown

@github-actions github-actions Bot commented Dec 6, 2024

Backport

This will backport the following commits from main to v4.4:

Questions ?

Please refer to the Backport tool documentation

On Slack, we got a report that the tiered percent calculator wasn't
converting its tiers to BigDecimal when being first created. Since this
conversion happens `before_validation`, we should not turn validation
off in this controller.

Specs still run through.

(cherry picked from commit 42d65fd)
These should help Turbo interpret what's going on.

(cherry picked from commit d98ec79)
@github-actions github-actions Bot requested a review from a team as a code owner December 6, 2024 13:27
@github-actions github-actions Bot added the changelog:solidus_promotions Changes to the solidus_promotions gem label Dec 6, 2024
@tvdeyen tvdeyen enabled auto-merge December 6, 2024 13:47
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 6, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 89.45%. Comparing base (bfdf4bb) to head (3683320).
Report is 12 commits behind head on v4.4.

Files with missing lines Patch % Lines
...nd/solidus_promotions/admin/benefits_controller.rb 25.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             v4.4    #6023      +/-   ##
==========================================
+ Coverage   87.81%   89.45%   +1.63%     
==========================================
  Files         476      782     +306     
  Lines       11658    17993    +6335     
==========================================
+ Hits        10238    16096    +5858     
- Misses       1420     1897     +477     

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

@tvdeyen tvdeyen disabled auto-merge December 6, 2024 15:09
@tvdeyen tvdeyen merged commit 2f82f59 into v4.4 Dec 6, 2024
@tvdeyen tvdeyen deleted the backport/v4.4/pr-5981 branch December 6, 2024 15:09
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