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

Remove ActiveSupport::Deprecation silencing from loader #1891

Conversation

bravehager
Copy link
Contributor

@bravehager bravehager commented May 6, 2024

Motivation

See #1890

Implementation

Just check if the deprecated method is actually defined or not. Remove deprecation silencing.

There's probably a longer term solution using Rails.application.deprecators.silence { ... } but it seems like the current solution assumes we can globally silence all ActiveSupport::Deprecation warnings before the Rails application is loaded.

Tests

N/A (I could be missing something, but I don't see any existing tests for this behavior)

@bravehager bravehager requested a review from a team as a code owner May 6, 2024 16:13
@bravehager bravehager requested review from andyw8 and Morriar May 6, 2024 16:13
@bravehager bravehager changed the title Ensure ActiveSupport::Deprecation responds to silenced Ensure ActiveSupport::Deprecation responds to silenced= May 6, 2024
Copy link
Contributor

@KaanOzkan KaanOzkan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove it completely. I don't think tapioca needs to silence deprecations to work so we can show them.

@bravehager bravehager force-pushed the activesupport-deprecation-respond-to-silenced branch from c6973ed to b7f5aac Compare May 6, 2024 18:29
@bravehager bravehager changed the title Ensure ActiveSupport::Deprecation responds to silenced= Remove ActiveSupport::Deprecation silencing from loader May 6, 2024
@bravehager bravehager requested a review from KaanOzkan May 6, 2024 18:34
@KaanOzkan KaanOzkan added the enhancement New feature or request label May 6, 2024
@KaanOzkan
Copy link
Contributor

Thanks

@KaanOzkan KaanOzkan merged commit 40df96e into Shopify:main May 7, 2024
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants