mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-09 06:34:52 +08:00
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. |
||
|---|---|---|
| .. | ||
| auto_channel_user_removal_spec.rb | ||
| custom_api_key_scopes_spec.rb | ||
| outgoing_web_hooks_spec.rb | ||
| plugin_api_spec.rb | ||
| post_chat_quote_spec.rb | ||
| thread_replies_count_cache_accuracy_spec.rb | ||