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

proactively silence a few deprecation warnings added in Rails 6.0 #38168

Merged
merged 1 commit into from
Dec 16, 2020

Conversation

Hamms
Copy link
Contributor

@Hamms Hamms commented Dec 8, 2020

Doing this in advance of the actual upgrade, just so it doesn't get forgot.

Reviewer Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@Hamms Hamms added the Rails Upgrade All work related to upgrading the version of Ruby on Rails we use. label Dec 8, 2020
@Hamms Hamms changed the base branch from staging-next to staging December 14, 2020 19:15
@Hamms Hamms requested a review from wjordan December 14, 2020 19:15
@@ -8,9 +8,15 @@

# In addition to backtrace silencing, we also want to silence annoying deprecations:
silenced = [
# Added in Rails 5.2
/Single arity template handlers are deprecated/,
/Dangerous query method \(method whose arguments are used as raw SQL\) called with non-attribute argument\(s\)/,
/SourceAnnotationExtractor is deprecated! Use Rails::SourceAnnotationExtractor instead/,
Copy link
Contributor

Choose a reason for hiding this comment

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

Will these need to be worked on and removed from this silencer list before the upgrade is finished?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep! The way I'm thinking of the remaining upgrade work is basically two sets of checklist items; one is "the remaining test failures" and the other is this list of deprecations.

@Hamms Hamms merged commit fdacee5 into staging Dec 16, 2020
@Hamms Hamms deleted the silence-rails-6-warnings branch December 16, 2020 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rails Upgrade All work related to upgrading the version of Ruby on Rails we use.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants