rails commit log流し読み(2024/08/23) (original) (raw)

2024/08/23分のコミットです。

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

activerecord/CHANGELOG.md

activesupport/CHANGELOG.md


No need to call tap since replace_serialized_subtype returns the callee.

activerecord/lib/active_record/encryption/encryptable_record.rbの修正です。

encrypt_attributeメソッド内のsubtypeに対するEncryptedAttributeTypeから不要なtap処理を削除しています。


Revert "Merge pull request #49769 from jonathanhefner/active_record-enum-non-column-backed"

Raise when defining an enum not backed by a database columnで出来なくなったDBのカラムで定義されていないattributeに対するenumの定義を再度出来るよう修正した、Support non-column-backed attributes for enumをRevertしています。この対応の影響で、eager_loadがtrueの場合にDBに存在するcolumnに対するenumが存在していない、とみなされてしまうリグレッションが発生した為。


Update the description of when SQLite might make sense as the configured database [ci skip] (#52639)

rails guideのConfiguring Rails Applicationsの修正です。

Configuring an SQLite3 Databaseセクション内のSQLite3の設定について記載している箇所で、Railsは本番環境のワークロードに合わせてSQLiteを構成するようにしている旨説明を修正しています。


support dumping PostgreSQL partitioning options to schema.rb

activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rbの修正です。

PostgeSQL adapterで、table inheritance及びpartitioning table definitionsをschemaファイルに出力するよう修正しています。


Allow use of alternative database interfaces

Active Recordの修正です。

dbconsoleで使用する各RDBMSCLIツールがコード内で固定になっていた(PostgreSQLpsqlMySQLmysql)のを、configで使用するCLIを指定出来るよう修正しています。

config.active_record.database_cli = { postgresql: "pgcli", mysql: %w[ mycli mysql ] }


Allow URI::RFC3986_PARSER warnings

activesupport/lib/active_support/testing/strict_warnings.rbの修正です。

URI::RFC3986_PARSER warningを無視するよう修正しています。Warn compatibility methods in RFC3986_PARSERでデフォルトのparserがURI::RFC2396_PARSERに変更になり、URI::RFC3986_PARSERの一部メソッドがobsoletedになった(URI::RFC2396_PARSER`の同名のメソッドが使う必要がある)のですが、古いRuby向けのサポートをどうするか、という問題がある為、一旦無視するようにしています。


Fix sqlite3 link http://www.sqlite.org to https://www.sqlite.org

rails guideのConfiguring Rails Applicationsの修正です。

www.sqlite.orgへのリンクのプロトコルhttpsに変更しています。


ActiveSupport::ErrorReporter#report assigns a backtrace to unraised exceptions

activesupport/lib/active_support/error_reporter.rbの修正です。

ActiveSupport::ErrorReporter#reportメソッドでraiseされなかったexceptionに対してもbacktraceを設定するよう修正しています。


Fixed significant styling issue

rails guideの修正です。

guide内のヒントとメモブロックの中央揃えの位置が、dark modeの場合ずれていたのを修正しています。


Unpin sqlite3 version in bug_report_templates

bug report templatesの修正です。

現在は不要になったsqlite3 gemのバージョン指定を削除しています。


Require testing/parallelize_executor in testing/isolation

activesupport/lib/active_support/testing/isolation.rbの修正です。

不足していたrequireを追加しています。