discourse/plugins
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
..
automation Update translations (#29835) 2024-11-20 00:21:25 +01:00
chat PERF: optimize chat user membership cleanup when removing a single user (#29833) 2024-11-20 09:21:02 +01:00
checklist DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
discourse-details DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
discourse-lazy-videos Update translations (#28577) 2024-08-29 15:37:52 -04:00
discourse-local-dates DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
discourse-narrative-bot Update translations (#29212) 2024-10-16 17:52:01 +09:00
discourse-presence DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
footnote UX: fix footnote causing horizontal scroll on narrow screens (#29328) 2024-10-22 05:09:34 +02:00
poll Update translations (#29835) 2024-11-20 00:21:25 +01:00
spoiler-alert DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
styleguide DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00