discourse/plugins/chat/spec
Martin Brennan 5f4911dae8
FIX: Channel archive N1 when serializing current user (#19820)
* FIX: Channel archive N1 when serializing current user

The `ChatChannelSerializer` serializes the archive for the
channel if it is present, however this was causing an N1 for
the current user serializer in the case of DM channels, which
were not doing `includes(:chat_channel_archive)` in the
`ChatChannelFetcher`.

DM channels cannot be archived, so we can just never try to serialize
the archive for DM channels in `ChatChannelSerializer`, which
removes the N1.

* DEV: Add N1 performance spec for latest.html preloading

We modify current user serializer in chat, so it's a good
idea to have some N1 performance specs to avoid regressions
here.
2023-01-11 14:39:56 +10:00
..
components DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
fabricators DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
integration DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
jobs DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
lib DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
mailers DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
models DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
queries DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
requests FIX: Channel archive N1 when serializing current user (#19820) 2023-01-11 14:39:56 +10:00
serializer DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
services DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
support DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
system DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
validators
plugin_helper.rb DEV: start glimmer-ification and optimisations of chat plugin (#19531) 2022-12-21 13:21:02 +01:00
plugin_spec.rb FIX: Channel archive N1 when serializing current user (#19820) 2023-01-11 14:39:56 +10:00