2024/05/31分のコミットです。
CHANGELOGへの追加はありませんでした。
Merge pull request #51939 from ElMassimo/fix-broadcast-logger-compatibility
activesupport/lib/active_support/broadcast_logger.rb
の修正です。
ActiveSupport::BroadcastLogger
のログ出力処理の戻り値がtrueになるよう修正しています。Logger
やActiveSupport::Logger
と挙動を合わせるため。
Pass the transaction to the transaction.active_record event
activerecord/lib/active_record/connection_adapters/abstract/transaction.rb
、
activerecord/test/cases/transaction_instrumentation_test.rb
の修正です。
transaction.active_record
eventのpayloadに、transaction objectを含むよう修正しています。
Update public directory during app:update command
railties/lib/rails/commands/app/update_command.rb
の修正です。
app:update
コマンド実行時にpublic
directoryを更新対象に含むよう修正しています。
Relax the prism test parser conditions
railties/lib/rails/test_unit/test_parser.rb
の修正です。
行数を指定してテストを実行する際に、対象のnodeがtest
で始まることをチェックしていたのを、チェックしないよう修正しています。minitest-spec-rail
を使用している場合(メソッド名がtest
で始まらない場合)にも処理が動くようにするため。
Lock rails-new-docker action to Ruby 3.3.1
.github/workflows/rails-new-docker.yml
の修正です。
rails-new-docker
actionで使用するRubyのバージョンを3.3.1に固定するよう修正しています。このコミットがされた時点では、Ruby 3.3.2のDocker imageが存在しなく、エラーになってしまっていたため。
Reorder items in transaction.active_record
docs
rails guideのActive Support Instrumentation
の修正です。
transaction.active_record
eventのpayloadの値の順番を並び替えています。
Add missing $ for a bash [ci skip]
rails guideのRuby on Rails 7.2 Release Notes
の修正です。
コマンド実行例の先頭に$
を追加しています。
Merge pull request #51941 from Liamjen/allow_unscope_cte
activerecord/lib/active_record/relation/query_methods.rb
の修正です。
Activ RecordのCTE Queryをunscope
出来るよう修正しています。
Merge pull request #51933 from zzak/51910
actionpack/lib/action_dispatch/routing/mapper.rb
の修正です。
Rails engine上に違うRails engineのroutingを指定している場合に、baseのengineのrouteがURL生成時に反映されないバグがあったのを修正しています。
Include the current transaction in sql.active_record event payloads
activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb
、
activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
の修正です。
sql.active_record
eventのpayloadに、transaction objectを含むよう修正しています。
Document callback deduplication with regards to ActiveRecord::Transaction
activerecord/lib/active_record/transactions.rb
の修正です。
ActiveRecord::Transaction
のdocに、callback処理はcallback毎にフィルターされる旨説明を追加しています。