Skip to content

Upgrade to Ruby on Rails 8.1 [SCI-13433] - #9684

Open
okriuchykhin wants to merge 1 commit into
scinote-eln:features/websocket-updatesfrom
okriuchykhin:ok_SCI_13433
Open

Upgrade to Ruby on Rails 8.1 [SCI-13433]#9684
okriuchykhin wants to merge 1 commit into
scinote-eln:features/websocket-updatesfrom
okriuchykhin:ok_SCI_13433

Conversation

@okriuchykhin

@okriuchykhin okriuchykhin commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Jira ticket: SCI-13433

What was done

Upgrade to Ruby on Rails 8.1

Comment thread Gemfile
gem 'rqrcode', '~> 2.0' # QR code generator
gem 'rubyzip', '>= 2.3.0' # will load new rubyzip version
gem 'rubyzip'
gem 'ruby-vips'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Correctable] Bundler/OrderedGems: Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem ruby-vips should appear before rubyzip.


config.cache_store = :memory_store
config.public_file_server.headers = { "Cache-Control" => "public, max-age=#{2.days.to_i}" }
config.public_file_server.headers = { "cache-control" => "public, max-age=#{2.days.to_i}" }

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.


# Don't log any deprecations.
config.active_support.report_deprecations = false

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Correctable] Layout/TrailingWhitespace: Trailing whitespace detected.


# Use a different cache store in production.
# Prevent health checks from clogging up the logs.
config.silence_healthcheck_path = "/up"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

.tap { |logger| logger.formatter = ::Logger::Formatter.new }
.then { |logger| ActiveSupport::TaggedLogging.new(logger) }
# Log to STDOUT with the current request id as a default log tag.
config.logger = ActiveSupport::TaggedLogging.logger(STDOUT)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Correctable] Style/GlobalStdStream: Use $stdout instead of STDOUT.

Comment thread config/ci.rb
CI.run do
step "Setup", "bin/setup --skip-server"

step "Style: Ruby", "bin/rubocop"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

Comment thread config/ci.rb
# Run using bin/ci

CI.run do
step "Setup", "bin/setup --skip-server"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

Comment thread config/ci.rb
@@ -0,0 +1,19 @@
# Run using bin/ci

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Correctable] Style/FrozenStringLiteralComment: Missing frozen string literal comment.

Comment thread config/puma.rb
plugin :tmp_restart

# Run the Solid Queue supervisor inside of Puma for single-server deployments.
plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

Comment thread config/puma.rb
min_threads_count = ENV.fetch('RAILS_MIN_THREADS', 0)
max_threads_count = ENV.fetch('RAILS_MAX_THREADS', 5)
threads min_threads_count, max_threads_count
threads_count = ENV.fetch("RAILS_MAX_THREADS", 3)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[Correctable] Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

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