regression: Ephemeral messages not showing on threads#40776
Conversation
|
Looks like this PR is ready to merge! 🎉 |
|
WalkthroughThread messages are now upserted into the client cache when incoming ephemeral messages contain a thread ID. E2E tests are refactored to use new page-object helper methods that simplify action-button locator assertions, with a new test validating mention warnings inside threads. ChangesThread Message Caching and E2E Validation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-8.5.0 #40776 +/- ##
================================================
Coverage ? 69.93%
================================================
Files ? 3327
Lines ? 126586
Branches ? 21970
================================================
Hits ? 88526
Misses ? 34779
Partials ? 3281
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
0cfa18b to
08e2ae6
Compare
8c8c297 to
7b71275
Compare
There was a problem hiding this comment.
1 issue found across 3 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Proposed changes (including videos or screenshots)
Fixes non-member mention warnings not appearing inside thread replies.
Fixes ephemeral messages (e.g. non-member mention warnings) not appearing inside thread replies.
The root cause was that the notify-user stream — which delivers user-scoped ephemeral messages — was not feeding into the thread message cache. The fix adds a check in incomingMessages.ts: when an incoming ephemeral message has a tmid, it is forwarded to upsertThreadMessageInCache so it gets inserted into the correct thread, in addition to being stored in the regular message store.
This PR also adds/updates e2e coverage for message mention warnings:
Issue(s)
CORE-2278
Root cause: #39859
Steps to test or reproduce
Do nothingAdd themLet them knowAutomated coverage:
apps/meteor/tests/e2e/message-mentions.spec.tsincludes theshould show non-member mention warning inside threadsscenario.Further comments
Summary by CodeRabbit
Bug Fixes
Tests