-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD for payment 2024-07-10] Buildup of unused Pusher subscriptions #43089
Comments
Current assignee @jjcoffee is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to @muttmuure ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When tapping on the workspace name in the header. No such log line. The pusher channel subscription is maintained unnecessarily. What is the root cause of that problem?When we tap on the workspace name in the header, we can see the However, the The implementation to unsubscribe from
We can see that it only unsubscribe if the screen becomes So in case the screen unmounted completely, the What changes do you think we should make in order to solve the problem?Unsubscribe the We have the unsubscription logic here, we can put it in the clean up function of an
In here we don't need to check for Just to note this is the same pattern we used for unsubscribing from the userIsLeaving event App/src/pages/home/ReportScreen.tsx Lines 460 to 465 in 432c2e7
So after both events are unsubscribed correctly, the channel itself will be unsubscribed. The logic to unsubscribe What alternative solutions did you explore? (Optional)In App/src/pages/home/ReportScreen.tsx Line 465 in 432c2e7
unsubscribe with empty event name.
Also to note, we're subscribing and unsubscribing the |
@dominictb's proposal LGTM! I like the idea of having both events unsubscribe in the same 🎀👀🎀 C+ reviewed |
Current assignee @roryabraham is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
Thanks for the proposal @dominictb and my apologies for the delay in reviewing it. LGTM 👍🏼 |
PR under review. |
Waiting on @roryabraham's review of linked PR |
PR merged! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.3-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-07-10. 🎊 For reference, here are some details about the assignees on this issue:
|
This comment was marked as resolved.
This comment was marked as resolved.
Regression Test Proposal
Note: In order to see the full logs in Chrome, you need to open DevTools and then tap the down arrow next to "Default levels" and switch to "Verbose". Do we agree 👍 or 👎 |
Payment Summary
BugZero Checklist (@muttmuure)
|
Thanks @jjcoffee. @muttmuure this is done - all that's left is to add the regression tests and pay this out |
@jjcoffee, @muttmuure, @roryabraham, @dominictb Eep! 4 days overdue now. Issues have feelings too... |
@dominictb @jjcoffee , can you please accept the job and reply here once you have? Thanks for the Regression Test steps @jjcoffee |
@mallenexpensify Done, thanks 🙏 |
@mallenexpensify Accepted, thanks! |
@jjcoffee, @muttmuure, @roryabraham, @dominictb 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
Contributor: @dominictb paid $250 via Upwork |
Coming from #42447 (comment)...
Bug
Opening a workspace chat via the header in an IOU report doesn't unsubscribe from the IOU report's channel. These subscriptions then build up over time, so you can end up with a ton of AuthenticatePusher calls!
Actions taken
Expected result
you should see a log line that says the IOU report's pusher channel has been unsubscribed
Actual result
No such log line. The pusher channel subscription is maintained unnecessarily.
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @muttmuureThe text was updated successfully, but these errors were encountered: