You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-10-13] [$500] mWeb-Conversation-User A in offline typing message, User B is shown "user A is typing" #28063
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
// Check to see if we are subscribed to this channel before sending the event. Sending client events over channels
// we are not subscribed too will throw errors and cause reconnection attempts. Subscriptions are not instant and
// can happen later than we expect.
if(!isSubscribed(channelName)){
return;
}
socket.send_event(eventName,payload,channelName);
}
What changes do you think we should make in order to solve the problem?
Solution 1
Similar to what we have in the bindEventToChannel method, modify the sendEvent method to perform an early return if shouldForceOffline is true.
function sendEvent(channelName, eventName, payload) {
// Check to see if we are subscribed to this channel before sending the event. Sending client events over channels
// we are not subscribed too will throw errors and cause reconnection attempts. Subscriptions are not instant and
// can happen later than we expect.
if (!isSubscribed(channelName)) {
return;
}
+ if (shouldForceOffline) {+ Log.info('[Pusher] Ignoring a send event because shouldForceOffline = true');+ return;+ }
// ... rest of the method
}
Solution 2
In ReportActionsView, add a useEffect hook to unsubscribe to the pusher channel based on the network.isOffline prop. This, however does not cover all possible pusher events, so Solution 1 is preferable.
I don't think this is an hourly, since I believe this will only ever happen on staging (I THINK we always hide the TestToolMenu in production...I could be wrong). I don't think this was caused by the recent deploy. I think this has been happening ever since we introduced the Force Offline mode. @izarutskaya is this something that you just came across, or is this test something that happens at every deploy?
@neil-marcellini@roryabraham it looks like you are the two fellas who have the most background in the Force Offline mode. Care to weigh in here?
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.78-4 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 2023-10-13. 🎊
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
External issue reporter
Contributor that fixed the issue
Contributor+ that helped on the issue and/or PR
For reference, here are some details about the assignees on this issue:
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@akinwale / @ntdiary] The PR that introduced the bug has been identified. Link to the PR:
[@akinwale / @ntdiary] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@akinwale / @ntdiary] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@akinwale / @ntdiary] Determine if we should create a regression test for this bug.
[@akinwale / @ntdiary] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@NicMendonca] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@akinwale / @ntdiary] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion: No need
[@akinwale / @ntdiary] Determine if we should create a regression test for this bug. No need
[@akinwale / @ntdiary] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again. No need
[@NicMendonca] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
I believe it's the C+ that's supposed to complete the BZ check list. Weird that my name is in there. 😅
I guess it's because you are already in C+ as well. 😄
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Sep 23, 2023
Triggered auto assignment to @NicMendonca (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Sep 23, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)OSBotify commentedon Sep 23, 2023
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open
StagingDeployCashdeploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:melvin-bot commentedon Sep 23, 2023
Triggered auto assignment to @joelbettner (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.akinwale commentedon Sep 23, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
The "user is typing" event is broadcasted by a user's client even if the client has force offline mode enabled.
What is the root cause of that problem?
Pusher sends socket events even if force offline mode is enabled.
App/src/libs/Pusher/pusher.js
Lines 315 to 324 in 5aa7f6d
What changes do you think we should make in order to solve the problem?
Solution 1
Similar to what we have in the
bindEventToChannelmethod, modify thesendEventmethod to perform an early return ifshouldForceOfflineis true.function sendEvent(channelName, eventName, payload) { // Check to see if we are subscribed to this channel before sending the event. Sending client events over channels // we are not subscribed too will throw errors and cause reconnection attempts. Subscriptions are not instant and // can happen later than we expect. if (!isSubscribed(channelName)) { return; } + if (shouldForceOffline) { + Log.info('[Pusher] Ignoring a send event because shouldForceOffline = true'); + return; + } // ... rest of the method }Solution 2
In ReportActionsView, add a
useEffecthook to unsubscribe to the pusher channel based on thenetwork.isOfflineprop. This, however does not cover all possible pusher events, so Solution 1 is preferable.What alternative solutions did you explore? (Optional)
None.
joelbettner commentedon Sep 25, 2023
I don't think this is an hourly, since I believe this will only ever happen on staging (I THINK we always hide the TestToolMenu in production...I could be wrong). I don't think this was caused by the recent deploy. I think this has been happening ever since we introduced the Force Offline mode. @izarutskaya is this something that you just came across, or is this test something that happens at every deploy?
@neil-marcellini @roryabraham it looks like you are the two fellas who have the most background in the Force Offline mode. Care to weigh in here?
36 remaining items
melvin-bot commentedon Oct 6, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.78-4 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 2023-10-13. 🎊
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
melvin-bot commentedon Oct 6, 2023
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
NicMendonca commentedon Oct 13, 2023
@akinwale @ntdiary bump on BZ check list ^^
Also can you both apply to the job please? https://www.upwork.com/jobs/~01650cee09674fc251
akinwale commentedon Oct 13, 2023
Applied. Thanks!
I believe it's the C+ that's supposed to complete the BZ check list. Weird that my name is in there. 😅
ntdiary commentedon Oct 13, 2023
I guess it's because you are already in C+ as well. 😄
NicMendonca commentedon Oct 13, 2023
Payment summary:
Reporter: N/A
Contributor: @akinwale - $750 (paid via upwork)
Contributor +: @ntdiary - $750 (paid via upwork)
NicMendonca commentedon Oct 13, 2023
Sent you both an offer!
akinwale commentedon Oct 13, 2023
Accepted. Thanks!
NicMendonca commentedon Oct 16, 2023
both paid, thank you!