-
-
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
Deprecate Spree::Deprecation
in favor of Spree.deprecator
#5289
Merged
+108
−90
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
798f565
to
6913c87
Compare
6913c87
to
d7b817b
Compare
Spree::Deprecation
in favor of Spree.deprecator
jarednorman
reviewed
Sep 26, 2023
d7b817b
to
d928053
Compare
d928053
to
fddb31f
Compare
See https://github.com/rails/rails/blob/814f8ee068814e3d4832a607f49f155e02a609c0/activesupport/lib/active_support/deprecation.rb#L6-L34 Add Spree.deprecator to the list of app deprecators as suggested by Rails, this will allow applying the global deprecation configurations to our engine deprecations as well. Eg: config.active_support.deprecation = :raise This will set the deprecation behavior to raise an exception on any of the deprecators under `Rails.application.deprecators`.
Use autoload to print a deprecation only if the constant is loaded.
fddb31f
to
a7dd17b
Compare
rainerdema
approved these changes
Sep 27, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
💔 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 |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport-v4.1
Backport this pull-request to v4.1
changelog:repository
Changes to the repository not within any gem
changelog:solidus_backend
Changes to the solidus_backend gem
changelog:solidus_core
Changes to the solidus_core 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
After rails/rails#47354, the suggested usage of ActiveSupport::Deprecation has changed and this PR changes our code to reflect that.
TODO:
Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed: