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

Make API independent of promotion configuration #5686

Merged

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Mar 8, 2024

Summary

This removes any usage of promotion factories from the API spec, and allows us to change the promotion configuration without any change to Solidus' API.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

mamhoff added 2 commits March 8, 2024 16:43
The API gem needs to know which attributes are available by default, and
that is dependent on the promotion system that is being utilized.
When the legacy promotion system is extracted into its own gem, we won't
have the luxury of factories any longer and will need to stub the API of
a promotion handler ourselves.
@mamhoff mamhoff requested a review from a team as a code owner March 8, 2024 16:06
@github-actions github-actions bot added changelog:solidus_api Changes to the solidus_api gem changelog:solidus_core Changes to the solidus_core gem labels Mar 8, 2024
Copy link

codecov bot commented Mar 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.87%. Comparing base (885a453) to head (70510e6).
Report is 12 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5686   +/-   ##
=======================================
  Coverage   88.87%   88.87%           
=======================================
  Files         699      699           
  Lines       16607    16609    +2     
=======================================
+ Hits        14760    14762    +2     
  Misses       1847     1847           

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

Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

👍 Thanks Martin!

@kennyadsl kennyadsl merged commit d5cfab1 into solidusio:main Mar 11, 2024
14 checks passed
mamhoff added a commit to mamhoff/solidus that referenced this pull request Mar 12, 2024
This spec was previously already fixed to not refer to any
promotion-system-related things, but I forgot this one line in solidusio#5686.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_api Changes to the solidus_api gem changelog:solidus_core Changes to the solidus_core gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants