なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2024/12/04)

2024/12/04分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activerecord/CHANGELOG.md


ShardSelector supports granular database connection switching

activerecord/lib/active_record/middleware/shard_selector.rbの修正です。

shardのswitch処理で使われるクラス(connected_toprohibit_shard_swappingを使用するクラス)がActiveRecord::Baseで固定だったのを、configでクラス名を指定できるよう修正しています。クラスを変更したい場合、shard_selectorclass_nameオプションに指定すればOKです。

config.active_record.shard_selector = { class_name: "AnimalsRecord" }

Skip minitest v5.25.3 to workaround CI failures

Gemfileの修正です。

minitest v5.25.3を使用しないよう修正しています。minitest側の問題でエラーになってしまう為。


Migrate applicable actioncable tests to use NotificationAssertions

Action Cableのテストの修正です。

notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。


Migrate applicable actionmailbox tests to use NotificationAssertions

Action Mailboxのテストの修正です。

notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。


Migrate applicable actionpack tests to use NotificationAssertions

Action Packのテストの修正です。

notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。


Migrate applicable activerecord tests to use NotificationAssertions

Acitve Recordのテストの修正です。

notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。


Migrate applicable activestorage tests to use NotificationAssertions

Active Storageのテストの修正です。

notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。


Migrate applicable activesupport tests to use NotificationAssertions

Active Supportのテストの修正です。

notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。


Migrate applicable activejob tests to use NotificationAssertions

Active Jobのテストの修正です。

notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。


Migrate applicable railties tests to use NotificationAssertions

railtiesのテストの修正です。

notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。


Migrate applicable actionmailer tests to use NotificationAssertions

Action Mailerテストの修正です。

notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。


Migrate applicable actionview tests to use NotificationAssertions

Action Viewのテストの修正です。

notificationのテストで、Add ActiveSupport::Testing::NotificationAssertions test helper moduleで追加されたnotification用のtest helperを使用するよう修正しています。


Active Record Connection Pool: Don't try to clear unowned connections

activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rbの修正です。

remove_connection_from_thread_cacheメソッドでconn.ownernilの場合connectionsのclearを行わないよう修正しています。nilの場合処理を行う必要が無い、かつ、Ruby 3.3.5+だとexceptionがraiseしてしまう為。