iachat/spec/controllers/api/v1
Sojan Jose cf91e9eb58
chore: Use find_each instead of .all.each (#6975)
- Enable the rubocop Rails/FindEach
- Replace the .all.each with .find_each

This should let us avoid potential memory usage.
Motivation from the speedshop newsletter by Nate Berkopec

ref: https://www.rubyinrails.com/2017/11/16/use-find-each-instead-of-all-each-in-rails/
ref: https://linear.app/chatwoot/issue/CW-1480/chore-run-all-sidekiq-jobs-async
2023-04-25 09:32:35 +05:30
..
accounts chore: Use find_each instead of .all.each (#6975) 2023-04-25 09:32:35 +05:30
widget feat: allow adding custom attributes to conversations from the SDK (#6782) 2023-04-04 08:57:55 +05:30
accounts_controller_spec.rb feat: IndexedDB based caching for labels, inboxes and teams [CW-50] (#6710) 2023-03-27 12:16:25 +05:30
notification_subscriptions_controller_spec.rb chore: Add subscription delete API (#3703) 2022-01-06 21:40:43 +05:30
profiles_controller_spec.rb feat: Allow users to disable marking offline automatically (#6079) 2022-12-16 11:59:27 -08:00