discourse/plugins/chat/spec
Régis Hanol 7cf28fec7b
PERF: optimize chat user membership cleanup when removing a single user (#29833)
This optimizes a hot path when users are being removed from one or more groups since we use the `on(:user_removed_from_group)` event to call the `Chat::AutoLeaveChannels` with a `user_id` parameter. In such case, we don't need to clear the membership of all users, just that one user.

DEBUG: Also added a "-- event = <event>" comment on top of the SQL queries used by the "AutoLeaveChannels" so they show up in the logs and hopefully facilitate any performance issues that might arise in the future.
2024-11-20 09:21:02 +01:00
..
components/chat PERF: auto join & leave chat channels (#29193) 2024-11-12 15:00:59 +11:00
fabricators DEV: adds blocks support to chat messages (#29782) 2024-11-19 07:07:58 +01:00
integration PERF: optimize chat user membership cleanup when removing a single user (#29833) 2024-11-20 09:21:02 +01:00
jobs PERF: auto join & leave chat channels (#29193) 2024-11-12 15:00:59 +11:00
lib DEV: supports blocks in chat message sdk (#29839) 2024-11-20 08:06:48 +01:00
mailers FIX: show group based notifications in chat summary email (#27641) 2024-07-01 12:47:38 +04:00
models DEV: adds blocks support to chat messages (#29782) 2024-11-19 07:07:58 +01:00
queries/chat FEATURE: add mention count to threads (#29739) 2024-11-14 14:10:12 +04:00
requests DEV: adds blocks support to chat messages (#29782) 2024-11-19 07:07:58 +01:00
serializer UX: Split hide_profile_and_presence user option (#29632) 2024-11-12 22:22:58 -03:00
services PERF: optimize chat user membership cleanup when removing a single user (#29833) 2024-11-20 09:21:02 +01:00
support DEV: consolidate chat channel notification settings (#29080) 2024-10-08 13:13:01 +04:00
system DEV: adds blocks support to chat messages (#29782) 2024-11-19 07:07:58 +01:00
validators FIX: Remove chat default channel setting (#28170) 2024-07-31 14:12:10 -03:00
plugin_helper.rb DEV: Fix mismatched column types (#29477) 2024-11-06 20:00:40 +02:00
plugin_spec.rb PERF: auto join & leave chat channels (#29193) 2024-11-12 15:00:59 +11:00