なるようになるブログ

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

rails commit log流し読み(2023/04/03)

2023/04/03分のコミットです。

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

activejob/CHANGELOG.md


Merge pull request #47839 from fatkodima/verbose-enqueue-logs

Active Jobの修正です。

background jobがenqueueされた箇所をlogに出力出来るよう修正しています。

Enqueued AvatarThumbnailsJob (Job ID: ab528951-41fb-4c48-9129-3171791c27d6) to Sidekiq(default) with arguments: 1092412064
↳ app/models/user.rb:421:in `generate_avatar_thumbnails'

verbose_enqueue_logsにtrueを指定した場合にのみ出力されるようになっています。なお、debug用に使われる事を想定しており、development環境でのみ使われる想定です( logを出力するのにKerne#callerを使用しいる&Kernel#caller`は遅い処理なのでproductionでの使用は非推奨です)。


Add missing headers to Active Storage docs [ci-skip]

Active Storageのdocの修正です。

Active Storageのdocのheadingが無かった箇所にheadingを追加しています。


Merge pull request #47842 from p8/docs/headers

docの修正です。

Action Mailbox/Mailer/Text/Viewのdocのheadingが無かった箇所にheadingを追加しています。


Merge pull request #47836 from Shopify/pm/cpk-relation-handler

activerecord/lib/active_record/relation/predicate_builder/relation_handler.rbの修正です。

relationのpredicate builderでreleationがcomposite primary keyを使用している、かつ、primary keyが明示的にselectされていない場合、エラーになるよう修正しています。


Merge pull request #47845 from zzak/notify-allow-failure

GitHub Actionsの修正です。

エラー時の通知処理用のactionでエラーになった場合に処理を継続するよう修正しています。