2024/12/06分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activejob/CHANGELOG.md
Merge pull request #53364 from stevegeek/optimistic_locking_error_handling_with_version_nil
activerecord/lib/active_record/locking/optimistic.rb
の修正です。
optimistic lock用のカラムをnil
で更新しようとしたときに、NoMethodError
になってしまっていたのを、適切なエラーメッセージが表示されるよう修正しています。
all_open_transactions
should not include invalidated transactions
activerecord/lib/active_record.rb
の修正です。
all_open_transactions
にinvalidatedになったtransactionは含まないよう修正しています。
[RF-DOCS] Action Controller Overview and Advanced Topics Guides [ci-skip] (#53551)
Action Controller Advanced Topics
というcontrollersに関する少し高度な内容を説明したguideを追加しています。CSRFについてや、ファイルのダウンロード処理、エラーのハンドリング方法について等の説明が記載されています。
Don't wrap redis in ConnectionPool if already given one for ActiveSupport::Cache::RedisCacheStore
activesupport/lib/active_support/cache.rb
、
activesupport/lib/active_support/cache/redis_cache_store.rb
の修正です。
ActiveSupport::Cache::RedisCacheStore
で、:redis
にConnectionPool
でwrapされたRedisのインスタンスが指定された場合、ConnectionPool
でのwrap処理を行わないよう修正しています。既にConnectionPool
を設定して使っているRedisのインスタンスをRedisCacheStore
で使い回せるようにする為。
Address ActiveRecord::InstrumentationTest#test_payload_connection_with_query_cache_enabled
failure
activerecord/test/cases/instrumentation_test.rb
の修正です。
query_cache
を有効にしている場合のnotificationに関するテストがfailするようになっていたのを修正しています。
Merge pull request #53845 from joshuay03/prevent-double-wrapped-redis-connection-pool-by-default
Accept a block for ActiveJob::ConfiguredJob#perform_later
activejob/lib/active_job/configured_job.rb
の修正です。
ActiveJob::ConfiguredJob#perform_later
にblockを指定出来るよう修正しています。ActiveJob::Base#perform_later
と挙動を合わせる為。