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 8 upgrade #3546

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Rails 8 upgrade #3546

wants to merge 4 commits into from

Conversation

unoduetre
Copy link
Contributor

@unoduetre unoduetre commented Dec 27, 2024

Follow these steps if you are doing a Rails upgrade.

What

Update our apps to run Rails 8

Why

To keep our apps up to date and using the latest software to include bug fixes and security updates.

Trello ticket

@unoduetre unoduetre force-pushed the rails-8-upgrade branch 2 times, most recently from d04a395 to 5a08498 Compare December 31, 2024 09:25
@@ -11,24 +11,20 @@
# While tests run files are not watched, reloading is not necessary.
config.enable_reloading = false

# Turn false under Spring and add config.action_view.cache_template_loading = true.
Copy link
Contributor Author

@unoduetre unoduetre Dec 31, 2024

Choose a reason for hiding this comment

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

It's redundant as it's the opposite of config.enable_reloading defined above.

@unoduetre
Copy link
Contributor Author

Please, see the comments in alphagov/frontend#4556

@@ -43,20 +41,17 @@
config.active_support.disallowed_deprecation_warnings = []

# Raises error for missing translations.
# config.i18n.raise_on_missing_translations = true
config.i18n.raise_on_missing_translations = true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For consistency with other apps. This is for the development environment only.

config.action_controller.raise_on_missing_callback_actions = true

# Apply autocorrection by RuboCop to files generated by `bin/rails generate`.
# config.generators.apply_rubocop_autocorrect_after_generate!
config.generators.apply_rubocop_autocorrect_after_generate!
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For consistency with other apps. This is for the development environment only.

@@ -46,7 +46,6 @@
global_bar: global_bar,
homepage: homepage_blue_navbar,
logo_link: logo_link,
product_name: product_name,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This line is duplicated below, so I'm removing it. It caused a warning from Ruby.

@unoduetre unoduetre marked this pull request as ready for review December 31, 2024 10:31
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.

1 participant