This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests
Alan Guo Xiang Tan f14189eb3b
FIX: PMs displaying outdated unread counts when read status is processing (#19217)
When a client "reads" a post, we do no immediately send the data of the
post for processing on the server. Instead, read posts data is batched
together and sent to the server for processing at regular intervals. On
the server side, processing of read posts data is done in the
background. As such, there is a small window of delay before a post is
marked as read by a user on the server side.

If a client reads a topic and loads the messages topic list before the
server has processed the read post, the unread posts count for the topic
which the client just read will appear to be incorrect/outdated.

As part of tracking a post as read, we are already tracking the highest
read post number for the last read topic by the client. Therefore, we
can use this information to correct the highest post read number in the
scenario that was described above. This solution is the same as what
we've been doing for the regular topics list.
2022-11-29 05:55:48 +08:00
..
acceptance FIX: PMs displaying outdated unread counts when read status is processing (#19217) 2022-11-29 05:55:48 +08:00
addons/truth-helpers/integration/helpers DEV: adds includes helper to templates (#18259) 2022-09-15 14:20:37 +02:00
fixtures FIX: Amend release_notes_link in /tests/fixtures/dashboard-new-features.js (#19124) 2022-11-21 16:20:51 +00:00
helpers FIX: Correct implementation for user preferences tracking page (#19119) 2022-11-21 14:48:47 +08:00
integration UX: Show educational messages for the likes tab when it's empty (#19180) 2022-11-24 22:13:21 +03:00
unit DEV: Remove old event preventDefault hack (#19168) 2022-11-23 21:58:40 +02:00
index.html DEV: Add dark theme support to QUnit (#19014) 2022-11-17 18:44:44 +01:00
setup-tests.js DEV: Add unique ids to deprecations (#19019) 2022-11-16 10:00:39 +00:00
test-boot-ember-cli.js DEV: Make the setupTests a regular import (#19046) 2022-11-16 16:11:18 +08:00