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

SolidusLegacyPromotion extraction: Move and fix remaining API specs #5694

Merged
merged 4 commits into from
Mar 12, 2024

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Mar 12, 2024

Summary

There were a few specs and assertions I missed in #5686 . These are moved to the solidus_legacy_promotions gem in this PR.

This also adds a dependency from solidus_legacy_promotions to solidus_api.

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.

We need to move some specs from solidus_legacy_promotions into
solidus_legacy_promotions. These specs use routes from the gem. Let's
add api as a dependency.
We're keeping the non-promotion-related parts of this spec in core, but
the promotion part has to go. For this spec, I don't think it makes
sense to stub out all the things.
This spec is not feasible with the promotion system extracted within
core. Moving.
This spec was previously already fixed to not refer to any
promotion-system-related things, but I forgot this one line in solidusio#5686.
@mamhoff mamhoff requested a review from a team as a code owner March 12, 2024 09:09
@github-actions github-actions bot added changelog:solidus_api Changes to the solidus_api gem changelog:repository Changes to the repository not within any gem labels Mar 12, 2024
Copy link

codecov bot commented Mar 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.90%. Comparing base (d5cfab1) to head (8d16e2d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5694   +/-   ##
=======================================
  Coverage   88.90%   88.90%           
=======================================
  Files         700      700           
  Lines       16641    16642    +1     
=======================================
+ Hits        14795    14796    +1     
  Misses       1846     1846           

☔ 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.

👍

@tvdeyen tvdeyen merged commit 0870e75 into solidusio:main Mar 12, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:repository Changes to the repository not within any gem changelog:solidus_api Changes to the solidus_api gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants