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

Legacy Promotions: Move ransackable promo associations from core #5893

Merged

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Oct 31, 2024

Summary

Moves the safelisting of promotions and order_promotions as ransackable associations out of solidus_core into solidus_legacy_promotions.

Spree::Order#promotions and Spree::Order#order_promotions are now only defined in the legacy_promotions gem. Thus they should not be safelisted as ransackable in core.

@mamhoff mamhoff requested a review from a team as a code owner October 31, 2024 15:57
@github-actions github-actions bot added the changelog:solidus_core Changes to the solidus_core gem label Oct 31, 2024
@mamhoff
Copy link
Contributor Author

mamhoff commented Oct 31, 2024

Note: solidus_promotions already safelists its own associations.

Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.88%. Comparing base (78e5f28) to head (58b6d35).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5893      +/-   ##
==========================================
- Coverage   89.58%   87.88%   -1.71%     
==========================================
  Files         783      477     -306     
  Lines       17989    11657    -6332     
==========================================
- Hits        16116    10245    -5871     
+ Misses       1873     1412     -461     

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

@tvdeyen tvdeyen added this to the 4.4 milestone Nov 1, 2024
`Spree::Order#promotions` and `Spree::Order#order_promotions` are now
only defined in the `legacy_promotions` gem. Thus they should not be
safelisted as ransackable in core.
@tvdeyen tvdeyen force-pushed the legacy-promotions-ransackable-associations branch from 39b3ece to 58b6d35 Compare November 4, 2024 13:29
@tvdeyen tvdeyen merged commit b1849a5 into solidusio:main Nov 4, 2024
13 of 14 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.

4 participants