2022/09/08分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Fix connection handler methods to operate on all pools.
- Deprecate
all_connection_poolsand makeconnection_pool_listmore explicit.
Make ActionView::PathSet immutable
Action Viewの修正です。
ActionView::PathSetの状態を変更するメソッドを削除し、ActionView::PathSetがimmutableになるよう修正しています。また、削除されたメソッドの代わりに、新規にPathSetを生成する為のbuilderメソッドを追加しています。
Fix bug in connection handler methods using all pools
Active Recordの修正です。
connection handler methods(active_connections?, clear_active_connections!, clear_reloadable_connections!, clear_all_connections!, 及び flush_idle_connections!)が、roleが指定されていない場合current_role または :writing roleのpoolにしか処理をしなかったのを、デフォルトで全てのpoolに対して処理を行うよう修正しています。起動時に呼ばれる処理(flush_idle_connections、clear_active_connections!など)は、roleに関わらず全てのpoolに対して行われる事が期待されている処理な為、デフォルトを全てのpoolに対しての処理に変更したとの事です。
Make connection_pool_list take an explicit argument
Active Recordの修正です。
all_connection_poolsメソッドをdeprecatedに変更、及び、connection_pool_listメソッドの引数の指定を必須に変更しています。all_connection_poolsメソッドと同様の結果が必要な場合、connection_pool_list(:all)を使用する必要があります。
Fix loading records with encrypted attributes defined on columns with default values
activerecord/lib/active_record/encryption/encryptable_record.rb、
activerecord/lib/active_record/encryption/encrypted_attribute_type.rbの修正です。
encrypted attributesにcolumnsのdefault valueが反映されないバグがあったのを修正しています。
Make contributing guide consistent about bug fixes
rails guideのContributing to Ruby on Railsの修正です。
CHANGELOGについて説明している箇所で、軽微なbug fixの場合CHANGELOGの追加は不要である旨説明を修正しています。
Show BCC recipients in mailer preview
railties/lib/rails/templates/rails/mailers/email.html.erbの修正です。
mailerのpreivewでBCC recipientsを表示するよう修正しています。
Enable Minitest/AssertRaisesWithRegexpArgument cop
Minitest/AssertRaisesWithRegexpArgument copで指摘される内容の修正を行っています。実際のcopの追加は後ほど別コミットで行われています。
Enable Minitest/AssertRaisesWithRegexpArgument cop
Minitest/AssertRaisesWithRegexpArgument copを追加しています。
Fix typo in :active_record_suppressor_registry symbol
activerecord/lib/active_record/suppressor.rbの修正です。
suppressorをsuppresorにタイポしていたのを修正しています。
Reduce allocations of pool_configs
Active Recordの修正です。
pool_configsの取得処理で、オブジェクト生成数を減らすようリファクタリングしています。
Merge pull request #45495 from okuramasafumi/rewrite-pull-request-template
.github/pull_request_template.mdの修正です。
PRのテンプレートに、Checklist等記載して欲しい内容を追加しています。
Add ability to run only before/around/after callbacks in run_callbacks
activesupport/lib/active_support/callbacks.rbの修正です。
run_callbacksメソッドで、どのcallback(before/around/afterのどれか)のみを実行するかを引数で指定出来るよう修正しています。