Repository navigation
Fix presence auto re-enter error message missing clientId (RTP17e) - #2314
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughThe automatic presence re-entry failure message now includes the affected ChangesPresence Re-entry Error Message
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix · Severity of issue fixed: Low Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|
ttypic
left a comment
There was a problem hiding this comment.
LGTM, thanks for contribution!
RTP17e requires the 91004 ErrorInfo on a failed automatic re-enter to name the member. Interpolate entry.clientId into the existing message, unskip the UTS assertion, and drop the resolved deviations.md entry.
f4f4d87 to
d6d9041
Compare
Summary
RealtimePresence._ensureMyMembersPresent()interpolatesentry.clientIdinto the 91004 ErrorInfo on the channelupdatethat auto re-enter already emits when the ENTER was NACKed. RTP17e requires that message to name the member that failed to re-enter.The UTS test that asserts
reason.messageincludesmy-clientnow runs withoutRUN_DEVIATIONS, and the matchingdeviations.mdentry is removed.Decision: put
entry.clientIdinto the current'Presence auto re-enter failed'string, quoted like the MICRO log in the same function. Alternative: copy Dart (Automatic re-entry failed for clientId "...") or .NET (Cannot automatically re-enter {clientId} on channel {channelName}). The spec and the UTS test only require the clientId to appear, so keeping the existing phrase is the smallest change. Can switch to a sibling SDK's string.Independent of #2301.
Fixes #2209
Test plan
npx mocha --no-config --exit --require tsx/cjs --timeout 30000 --grep "RTP17e - failed re-entry emits UPDATE with error" test/uts/realtime/unit/presence/realtime_presence_reentry.test.tspasses withoutRUN_DEVIATIONS(Node 20)expected 'Presence auto re-enter failed' to include 'my-client')realtime_presence_reentry.test.tsstill passSummary by CodeRabbit