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

Upgrade app to rails 8 #9899

Merged
merged 4 commits into from
Feb 6, 2025
Merged

Upgrade app to rails 8 #9899

merged 4 commits into from
Feb 6, 2025

Conversation

kashifatcha
Copy link
Contributor

Rails no longer accepts incorrectly nested form input parameters.

https://trello.com/c/lYQQqSvP/3299-bump-apps-to-latest-version-of-rails-8

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

Follow these steps if you are doing a Rails upgrade.

We had a number of routes that were specified as resources but used non-resource methods in "only" or "except" configurations. This should never have been allowed and is no longer possible in Rails 8.
Nested Rails form inputs should be named in the format "level_1_name[level_2_name][level_3_name]", but we had a few examples where they were named in the format "level_1_name[level_2_name[level_3_name]]", which is incorrect.

Up until Rails 8 that seemed to work anyway, but as of Rails 8 it no longer does.
These start failing after upgrading to Rails 8 due to an EOF error on the GET requests. I can't understand exactly why, but there is obviously some sort of pollution of shared state left over from the first POST request sent in the test. Controller tests shouldn't be testing multiple endpoints at once in any case, we have cucumber features for that.
Copy link
Contributor

@ryanb-gds ryanb-gds left a comment

Choose a reason for hiding this comment

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

🛤️ 💎

@ryanb-gds ryanb-gds merged commit fea7655 into main Feb 6, 2025
19 checks passed
@ryanb-gds ryanb-gds deleted the rails-8-upgrade branch February 6, 2025 10:10
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