-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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]: Correct decorator naming #5946
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
the
changelog:solidus_legacy_promotions
Changes to the solidus_legacy_promotions gem
label
Nov 20, 2024
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5946 +/- ##
==========================================
+ Coverage 87.81% 89.45% +1.64%
==========================================
Files 476 782 +306
Lines 11656 17997 +6341
==========================================
+ Hits 10236 16100 +5864
- Misses 1420 1897 +477 ☔ View full report in Codecov by Sentry. |
mamhoff
force-pushed
the
correct-decorator-naming
branch
from
November 20, 2024 16:18
c6f6c47
to
fe18ce3
Compare
adammathys
approved these changes
Nov 20, 2024
tvdeyen
reviewed
Nov 20, 2024
mamhoff
force-pushed
the
correct-decorator-naming
branch
from
November 20, 2024 17:14
fe18ce3
to
e639857
Compare
If we want to use these decorators with Zeitwerk, their naming scheme has to exchange module name and type. For example, app/decorators/solidus_legacy_promotions/models/line_item_decorator.rb becomes app/decorators/models/solidus/legacy_promotions/line_item_decorator.rb This will eventually allow us to use Zeitwerk for loading decorators.
mamhoff
force-pushed
the
correct-decorator-naming
branch
from
December 2, 2024 21:17
e639857
to
e306a14
Compare
jarednorman
approved these changes
Dec 2, 2024
Backport after #6016 |
tvdeyen
added
backport-v4.4
Backport this pull-request to v4.4
and removed
backport-v4.4
Backport this pull-request to v4.4
labels
Dec 6, 2024
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport-v4.4
Backport this pull-request to v4.4
changelog:solidus_legacy_promotions
Changes to the solidus_legacy_promotions gem
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This changes the file names of decorators in the
solidus_legacy_promotions
gem to match Zeitwerk's expectations.solidus_promotions
is actually entirely fine.This has been tested with solidusio/solidus_support#87, but is fully compatible with the classic way of loading each and every decorator on every app reload.
Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs: