discourse/plugins/chat/spec
Joffrey JAFFEUX 0764dc3452
FIX: cancel fetching messages after channel change (#21689)
This issue was especially visible in tests. the `@debounce(100)` was not cancelled when changing channel which was causing 404s as we were trying to load messages on a channel which was deleted as the channel has been destroyed at the end of the test.

This is still not a perfect solution, as we can only cancel the start of `fetchMessages`, but we can't cancel the actual `chatApi.channel` request which result can potentially happens after channel changed, which we try to mitigate with various checks on to ensure visible channel == loaded messages channel.

This commit also tries to make handler naming and cancelling more consistent.

<!-- NOTE: All pull requests should have tests (rspec in Ruby, qunit in JavaScript). If your code does not include test coverage, please include an explanation of why it was omitted. -->
2023-05-23 16:01:47 +02:00
..
components/chat DEV: Fix plugin:spec task return code (#21661) 2023-05-19 16:17:02 +02:00
fabricators DEV: various improvements to devex on chat (#21612) 2023-05-17 17:49:52 +02:00
integration FEATURE: Reintroduce better thread reply counter cache (#21197) 2023-04-24 09:32:04 +10:00
jobs DEV: Fix plugin:spec task return code (#21661) 2023-05-19 16:17:02 +02:00
lib FIX: Do not cook icon with hashtags (#21676) 2023-05-23 09:33:55 +02:00
mailers DEV: Skip channel-wide mention chat specs (#20770) 2023-03-22 12:44:01 +10:00
models FIX: Do not cook icon with hashtags (#21676) 2023-05-23 09:33:55 +02:00
queries/chat DEV: Chat API channel#show changes for threading (#21632) 2023-05-22 13:59:46 +02:00
requests DEV: Fix chat pagination spec (#21693) 2023-05-23 12:47:43 +02:00
serializer DEV: Fix plugin:spec task return code (#21661) 2023-05-19 16:17:02 +02:00
services DEV: Chat API channel#show changes for threading (#21632) 2023-05-22 13:59:46 +02:00
support DEV: Fix plugin:spec task return code (#21661) 2023-05-19 16:17:02 +02:00
system FIX: cancel fetching messages after channel change (#21689) 2023-05-23 16:01:47 +02:00
validators DEV: properly namespace chat (#20690) 2023-03-17 14:24:38 +01:00
plugin_helper.rb FEATURE: Thread list initial UI (#21412) 2023-05-10 11:42:32 +02:00
plugin_spec.rb UX: update chat icon to d-chat (#20744) 2023-03-21 10:40:42 -04:00