[MM-70234] Calls v2: Revert call_ended event name back to call_end - #1280
[MM-70234] Calls v2: Revert call_ended event name back to call_end#1280bgardner8008 wants to merge 1 commit into
Conversation
The rename from call_end to call_ended in PR #1199 was a gratuitous wire-protocol break. Mobile must support both v1 and v2 servers and already subscribes to call_end; call_ended was the only renamed event — every other event name is byte-identical between v1 and v2. Reverts the wire string and renames the internal CALL_ENDED Redux constant back to CALL_END for consistency.
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
Included review availability: 4 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour. 📝 WalkthroughWalkthroughThe call termination event changed from ChangesCall-end event rename
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This PR restores the call-end event name and updates its consumers consistently; no actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## v2 #1280 +/- ##
=====================================
Coverage ? 31.55%
=====================================
Files ? 250
Lines ? 13933
Branches ? 1764
=====================================
Hits ? 4396
Misses ? 9047
Partials ? 490
🚀 New features to boost your workflow:
|
|
@M-ZubairAhmed E2E test failure is just flakey stuff not related to this change. |
Summary
wsEventCallEnd = "call_ended"back to"call_end"inserver/websocket.gocustom_<pluginId>_call_endedhandler registration inwebapp/src/index.tsxandstandalone/src/index.tstocall_endCALL_ENDED→CALL_ENDand its wire value inwebapp/src/state/session/action_types.ts, propagated to all consumers (reducers.ts,session/reducer.ts,session/actions.ts,screen_sharing_ids/reducer.ts)server/websocket_test.goThe rename from
call_endtocall_endedthat landed in PR #1199 was a gratuitous wire-protocol break. Mobile subscribes tocall_endtoday (app/constants/websocket.ts: CALLS_CALL_END) and has to support both v1 and v2 servers — keepingcall_endedwould force two handlers for one event indefinitely. It was also the only renamed event; every otherwsEvent*constant is byte-identical betweenmainandv2. Reverting now while v2 is unreleased is cheap; the cost only goes up after release.Test plan
grepforcall_ended/CALL_ENDEDin.go/.ts/.tsxreturns nothingwebsocket_test.gotests pass (go test ./server/... -run TestWebSocket)