-
Notifications
You must be signed in to change notification settings - Fork 54
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
Maintenance: Upgrade to Rails 6 #2679
Merged
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
…recated and now removed
…cely together" This reverts commit 2be1aa4.
…from logs when downloading filenames
…redirect to HTTPS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
and all the gems because optimism (and batching manual testing work) 😄
EDIT: Rails 6 also includes
zeitwerk
as the class loader, which has some changes breaking the current config. Read more from Rails or here. This led to four issues:MockLDAP
orPowerBIExporter
), which can be resolved by adding these acronyms to the Rails inflections config or by just CamelCasing everything, which is what I did.accommodations_importer.rb
was a stray file, revealed by zeitwerk checkimporters/star
to autoload pathTo catch issues like this going forward, this PR also adds a check for this to the build (since the check tool revealed failures that were obvious in dev mode, but not revealed by running the tests).
Also:
update_attributes!
is deprecated, migrate toupdate!
probability
monkey patches)secure_headers
in the Rails CSP stub as well. This PR doesn't change that config.EDIT: A few more issues resolved:
eager_load
method not yet working in Rails 6 outside the production env, so that's commented, linked to the issues, and worked around.EDIT: And some more:
force_ssl
is deprecated and will be removed from Rails 6.1. Please enableconfig.force_ssl
in your environment configuration...profile_pdf_controller_spec.rb
). From rspec-rails (Changes In Rails 6 ActionView::Template Breaks EmptyTemplateHandler rspec/rspec-rails#2086), updated to rspec-rails '~> 4.0.0.beta3'.#build
wouldn't create association models, so validations would fail.EDIT:
PerDistrict#sports_season_key
to work for demo, when rebuilding site