なるようになるブログ

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

rails commit log流し読み(2024/01/18)

2024/01/18分のコミットです。

CHANGELOGへの追加はありませんでした。


Merge pull request #50781 from Shopify/as-cache-limitter

Add rate limiting to Action Controller via the Kredis limiter typeで追加されたRate Limitingの機能を、Kredisに依存せず、ActiveSupport::Cacheを使用するようリファクタリングしています。


Touch up the AC::RateLimiting documentation

actionpack/lib/action_controller/metal/rate_limiting.rbのdocの修正です。

rate_limitメソッドのdocのフォーマットの修正、不要なTODOコメントの削除を行っています。


More AC::RateLimiting documentation fixes

actionpack/lib/action_controller/metal/rate_limiting.rbのdocの修正です。

rate_limitメソッドのdocのグラマーの修正を行っています。


Fix async queries to work with query cache and other cached async queries

Active Recordの修正です。

async queriesをquery cacheや他のcached d async queriesと合わせて使った場合に、誤った値を返してしまうバグがあったのを修正しています。


RateLimiting Cleanups

activesupport/lib/active_support/cache/file_store.rbactionpack/test/controller/rate_limiting_test.rbの修正です。

Refactor ActionController::RateLimiting to use AS::Cacheのフォローアップとして、不足していたテストの追加、同じ内容の変数の削除、等を行っています。