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

Rails 7 upgrade #2490

Merged
merged 10 commits into from
Jul 19, 2022
Merged

Rails 7 upgrade #2490

merged 10 commits into from
Jul 19, 2022

Conversation

AgaDufrat
Copy link
Contributor

https://trello.com/c/8ke6EUY0/1093-rails-7-update-government-frontend

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

AgaDufrat added 10 commits July 19, 2022 09:04
The validate_locales test failed with
    Expected: [:few, :one, :other], actual: [:few, :many, :one, :other]
Autoloading during initialization will error in Rails 7.
Applications that autoloaded reloadable constants during initialization outside of to_prepare blocks got those constants unloaded.

https://guides.rubyonrails.org/v7.0/upgrading_ruby_on_rails.html#autoloading-during-initialization
In rails 7 redirects to other hosts are no longer permitted by default and ActionController::Redirecting::UnsafeRedirectError was raised.

However in all those cases we are redirect to other GOV.UK domains such as
assets.gov.uk or service.gov.uk.
@AgaDufrat AgaDufrat merged commit 624cf15 into main Jul 19, 2022
@AgaDufrat AgaDufrat deleted the rails-7-upgrade branch July 19, 2022 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants