-
-
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
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
changelog:solidus_backend
Changes to the solidus_backend gem
changelog:solidus_core
Changes to the solidus_core gem
labels
Jul 28, 2023
elia
force-pushed
the
kennyadsl/deprecation-updates
branch
from
September 25, 2023 16:45
798f565
to
6913c87
Compare
elia
force-pushed
the
kennyadsl/deprecation-updates
branch
from
September 26, 2023 13:46
6913c87
to
d7b817b
Compare
github-actions
bot
added
the
changelog:repository
Changes to the repository not within any gem
label
Sep 26, 2023
elia
changed the title
Update Deprecation usage to accomodate Rails 7.1 changes
Deprecate Sep 26, 2023
Spree::Deprecation
in favor of Spree.deprecator
elia
removed
the
changelog:repository
Changes to the repository not within any gem
label
Sep 26, 2023
jarednorman
reviewed
Sep 26, 2023
elia
force-pushed
the
kennyadsl/deprecation-updates
branch
from
September 27, 2023 07:50
d7b817b
to
d928053
Compare
github-actions
bot
added
the
changelog:repository
Changes to the repository not within any gem
label
Sep 27, 2023
elia
force-pushed
the
kennyadsl/deprecation-updates
branch
from
September 27, 2023 09:29
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.
elia
force-pushed
the
kennyadsl/deprecation-updates
branch
from
September 27, 2023 09:33
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.
👍
elia
added
changelog:repository
Changes to the repository not within any gem
and removed
changelog:repository
Changes to the repository not within any gem
labels
Sep 27, 2023
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_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: