-
Notifications
You must be signed in to change notification settings - Fork 655
AO3-7231 Upgrade gems and configs to Rails 8.0.x #5515
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
base: master
Are you sure you want to change the base?
Changes from all commits
fecbdd4
8fd90f0
b119a34
d021bef
0f97a02
691cfe8
579fc0e
8bf5c17
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,8 +6,8 @@ gem 'test-unit', '~> 3.2' | |
|
|
||
| gem 'bundler' | ||
|
|
||
| gem "rails", "~> 7.2" | ||
| gem "rails-i18n" | ||
| gem "rails", "~> 8.0.0" | ||
| gem "rails-i18n", "~> 8.0", git: "https://github.com/marcus8448/rails-i18n", ref: "1d120cc3b2c02793e7cab4ff5951d3a9e0b316a4" | ||
| gem "rack", "~> 2.2" | ||
| gem "sprockets", "< 4" | ||
|
|
||
|
|
@@ -107,13 +107,13 @@ gem 'kgio', '2.10.0' | |
| gem "marcel", "1.0.2" | ||
|
|
||
| # Library for helping run pt-online-schema-change commands: | ||
| gem "departure", "~> 6.8" | ||
| gem "departure", "~> 8.0" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Didn't see anything of note in the changelog. Note that 8.0.1 seems to have not been published to rubygems (if it does get published I would like to pull it in). |
||
|
|
||
| gem "rack-timeout" | ||
| gem "puma_worker_killer" | ||
|
|
||
| group :test do | ||
| gem "rspec-rails", "~> 6.0" | ||
| gem "rspec-rails", "~> 8.0" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Changelog, nothing stood out as well. |
||
| gem 'pickle' | ||
| gem 'shoulda' | ||
| gem "capybara" | ||
|
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rails 8.0 now saves the parent model (tag set) before the child model (owned tag set), so we can't always touch it here (after_save). In that case the child model (owned tag set) is going to be saved after anyways, so it's fine to just skip touching. This change looks to be a side effect of rails/rails#49847, but I think this ordering makes more sense so we were probably just depending on buggy behaviour. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| <h2 class="heading">Error 400</h2> | ||
| <h3 class="heading">Bad Request</h3> | ||
| <p>The server cannot process the request due to a client error.</p> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| #!/usr/bin/env ruby | ||
| exec "./bin/rails", "server", *ARGV |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ class Application < Rails::Application | |
| # These settings can be overridden in specific environments using the files | ||
| # in config/environments, which are processed later. | ||
|
|
||
| config.load_defaults 7.2 | ||
| config.load_defaults 8.0 | ||
|
|
||
| %w[ | ||
| app/models/challenge_models | ||
|
|
@@ -105,9 +105,6 @@ class Application < Rails::Application | |
| # Use Resque to run ActiveJobs (including sending delayed mail): | ||
| config.active_job.queue_adapter = :resque | ||
|
|
||
| # TODO: Remove with Rails 8.0 where this option will be deprecated | ||
| config.active_job.enqueue_after_transaction_commit = :always | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've set An alternative would be to set |
||
|
|
||
| config.active_model.i18n_customize_full_message = true | ||
|
|
||
| config.action_mailer.default_url_options = { host: ArchiveConfig.APP_HOST, protocol: "https" } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was some fun debugging. Pending PR.