discourse/plugins/chat/spec/requests
Alan Guo Xiang Tan c9e771157a
Some checks failed
Licenses / run (push) Has been cancelled
Linting / run (push) Has been cancelled
Publish Assets / publish-assets (push) Has been cancelled
Tests / core backend (push) Has been cancelled
Tests / plugins backend (push) Has been cancelled
Tests / core frontend (Chrome) (push) Has been cancelled
Tests / plugins frontend (push) Has been cancelled
Tests / themes frontend (push) Has been cancelled
Tests / core system (push) Has been cancelled
Tests / plugins system (push) Has been cancelled
Tests / themes system (push) Has been cancelled
Tests / core frontend (Firefox ESR) (push) Has been cancelled
Tests / core frontend (Firefox Evergreen) (push) Has been cancelled
Tests / chat system (push) Has been cancelled
Tests / merge (push) Has been cancelled
PERF: Fix N+1 queries due to user custom fields when loading chat DMs (#35516)
In `Chat::ChannelFetcher.secured_direct_message_channels_search`,
`User.preload_custom_fields` is called with `channels.flat_map {
_1.chatable.users }`. However,
the `Chat::DirectMessageSerializer` was getting the users via
`object.direct_message_users.map(&:user)` which uses the
`Chat::DirectMessage.direct_message_users` scope instead of the
`Chat::DirectMessage.users` scope resulting in ActiveRecord returning
new `User` objects that do not have user custom fields preloaded.
2025-10-22 09:39:01 +08:00
..
admin DEV: Remove unnecessary rails_helper requiring (#26364) 2024-03-26 11:32:01 +01:00
chat PERF: Fix N+1 queries due to user custom fields when loading chat DMs (#35516) 2025-10-22 09:39:01 +08:00
core_ext DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
application_controller_spec.rb FEATURE: Initial version of experimental admin search (#31299) 2025-02-21 11:59:24 +10:00
chat_controller_spec.rb DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00
direct_messages_controller_spec.rb DEV: add shortcut fab!(:variable, :fabricator) to specs (#33577) 2025-07-11 11:16:34 -03:00