Fix deprecation warnings from rails 6.1 update#8610
Fix deprecation warnings from rails 6.1 update#8610ahukkanen merged 8 commits intodecidim:developfrom
Conversation
5535aa3 to
91b3c4c
Compare
|
@alecslupu I was going to say that we should change the base branch from develop to the one from #8411 ( As I said in that PR, the only one that I fell is a stopper for merging was the |
91b3c4c to
b25b8ae
Compare
If you manage to review and merge the #8411, then this will be a very simple one (10 - 20 files changed) to address the deprecations. I think you may be able to see this link : i-need-another-coffee/decidim@upgrade/rails-6.1...tremend-cofe:upgrade/rails-6.1-deprecations |
|
@alecslupu Can you rebase with |
24efce1 to
df57357
Compare
df57357 to
3ec1694
Compare
…a transaction block is
…age array in order to add an error is deprecated.
…will be removed in Rails 6.2.
…as been deprecated.
0c983ee to
c602c84
Compare
…ray in order to add an error is deprecated.
|
Few things I've noticed: ActiveModel::Errors#keys is deprecatedEnumerating ActiveModel::Errors as a hash has been deprecated.Initialization autoloaded the constant Decidim::Budgets::OrderReminderGenerator.
To fix this, we need to move this: To the
|
|
@alecslupu I fixed the errors with Spring in another PR: #9032 |
|
@ahukkanen I will handle the autoload in a separate PR. |
There was a problem hiding this comment.
LGTM
I checked through all the job run logs and did not find any Rails related deprecation errors.
I also tried to do some grepping in the code base to try to identify possible deprecations and did not find any places.
I am quite sure we may find these more as we go forward but I think it's best to merge this now that all the noticed deprecation issues are fixed and then handle those other ones as we bump into them.
🎩 What? Why?
This PR aims to fix all the deprecations resulted in the Rails 6.1 upgrade (#8411)
📌 Related Issues
Link your PR to an issue
Testing
Browse the Action logs and see there are no Deprecation warnings.
📋 Checklist
🚨 Please review the guidelines for contributing to this repository.
docs/.📷 Screenshots
Please add screenshots of the changes you're proposing
