Skip to content

Conversation

@mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Jun 18, 2025

Summary

Loading the currently available promotions can be quite useful outside of the order adjuster. This moves the LoadPromotions class out of there and into the main SolidusPromotions namespace so that it's clear that this class can be used elsewhere.

Extracted from #6287

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

@mamhoff mamhoff requested a review from a team as a code owner June 18, 2025 12:04
@github-actions github-actions bot added the changelog:solidus_promotions Changes to the solidus_promotions gem label Jun 18, 2025
@codecov
Copy link

codecov bot commented Jun 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.98%. Comparing base (bbca5cc) to head (987fd44).
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6292      +/-   ##
==========================================
+ Coverage   86.65%   88.98%   +2.32%     
==========================================
  Files         521      863     +342     
  Lines       11943    18425    +6482     
==========================================
+ Hits        10349    16395    +6046     
- Misses       1594     2030     +436     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@tvdeyen tvdeyen added this to the 4.6 milestone Jun 20, 2025
@tvdeyen tvdeyen moved this to In Progress in Solidus Public Roadmap Jun 20, 2025
@mamhoff mamhoff force-pushed the move-load-promotions-out-of-order-adjuster branch from 3a71ad2 to ca2b096 Compare June 25, 2025 10:29
Loading the currently available promotions can be quite useful outside
of the order adjuster. This moves the LoadPromotions class out of there
and into the main `SolidusPromotions` namespace so that it's clear that
this class can be used elsewhere.
@mamhoff mamhoff force-pushed the move-load-promotions-out-of-order-adjuster branch from ca2b096 to 987fd44 Compare July 2, 2025 08:45
@tvdeyen tvdeyen enabled auto-merge July 2, 2025 08:55
@tvdeyen tvdeyen merged commit 5ea98b3 into solidusio:main Jul 2, 2025
22 of 23 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Solidus Public Roadmap Jul 2, 2025
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

Development

Successfully merging this pull request may close these issues.

2 participants