Skip to content

Update Rails version to 7.1.5#29

Merged
ledsun merged 6 commits intopubannotation:masterfrom
lx-nihei:misc/update_rails_version_to_7.1.4
Dec 12, 2024
Merged

Update Rails version to 7.1.5#29
ledsun merged 6 commits intopubannotation:masterfrom
lx-nihei:misc/update_rails_version_to_7.1.4

Conversation

@lx-nihei
Copy link
Contributor

@lx-nihei lx-nihei commented Dec 12, 2024

概要

Railsのバージョンアップを行いました。

作業内容

  • Railsのバージョンアップ 7.0.07.1.5
  • rails app:updateタスクの実行
  • wice_grid serializeエラーに対してgem置き換えで対応
  • load_defaultsを5.0から7.1に変更

動作確認

サーバーが起動できる

rails s
=> Booting Puma
=> Rails 7.1.5 application starting in development
=> Run `bin/rails server --help` for more startup options
Puma starting in single mode...
* Puma version: 6.5.0 ("Sky's Version")
* Ruby version: ruby 3.3.6 (2024-11-05 revision 75015d4c1f) [arm64-darwin24]
*  Min threads: 0
*  Max threads: 5
*  Environment: development
*          PID: 67875
* Listening on http://127.0.0.1:3000
* Listening on http://[::1]:3000
Use Ctrl-C to stop

rails consoleが起動できる

rails c
Loading development environment (Rails 7.1.5)
irb(main):001>

自動テストが通る (config API)

rails test test/controllers/api
DEPRECATION WARNING: `Rails.application.secrets` is deprecated in favor of `Rails.application.credentials` and will be removed in Rails 7.2. (called from <top (required)> at /Users/ysh-nh/develop/textae-configs/config/environment.rb:5)
DEPRECATION WARNING: `Rails.application.secrets` is deprecated in favor of `Rails.application.credentials` and will be removed in Rails 7.2. (called from <top (required)> at /Users/ysh-nh/develop/textae-configs/config/environment.rb:5)
DEPRECATION WARNING: Your `secret_key_base` is configured in `Rails.application.secrets`, which is deprecated in favor of `Rails.application.credentials` and will be removed in Rails 7.2. (called from <top (required)> at /Users/ysh-nh/develop/textae-configs/config/environment.rb:5)
Run options: --seed 3610

# Running:

.................

Finished in 0.155270s, 109.4867 runs/s, 251.1754 assertions/s.
17 runs, 39 assertions, 0 failures, 0 errors, 0 skips

DEPRECATION WARNINGについて

テスト実行時に3つのsecrets関連の警告が発生しています。
しかしtextae-configs内でsecretsメソッド呼び出しはありません。
原因を追っていくと、これらは全てdevise起因であることがわかりました。

deviseはこの問題に対応していますが、rubygemsではまだリリースしていないようです。
対応PR
deviseのChangelogのUnreleased欄に書いてあることが確認できます。

従って、textae-configs側での対応は不要と判断しました。

手動テスト

以下の点について確認しました。

  • ConfigのCreate/Read/Updateができる
  • ログイン、ログアウトができる
  • その他全体的にページ遷移しても問題がない

@lx-nihei lx-nihei changed the title Update Rails version to 7.1.4 Update Rails version to 7.1.5 Dec 12, 2024
@lx-nihei
Copy link
Contributor Author

cable.ymlとstorage.ymlを削除しました。
3de20e7

削除後にサーバー起動やテストを実行し、特に問題ないことを確認しました。

@ledsun ledsun merged commit cef5980 into pubannotation:master Dec 12, 2024
@lx-nihei lx-nihei deleted the misc/update_rails_version_to_7.1.4 branch December 12, 2024 05:40
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