-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-06-11] HELD ON ONYX BUMP 2.0.40 [$250] FAB - Nothing happens when Start chat is clicked after creating a room offline #40855
Comments
Triggered auto assignment to @muttmuure ( |
We think this issue might be related to the #vip-vsb. |
ProposalPlease re-state the problem that we are trying to solve in this issue.When we open start chat again after creating a room while offline, nothing happen. What is the root cause of that problem?When we create a new room, it will optimistically set the loading to the new room form App/src/libs/actions/Report.ts Lines 1955 to 1957 in 08b7ff4
Because we are offline, the loading state is always true. When we reopen the page again, it will immediately close because of the below effect. App/src/pages/workspace/WorkspaceNewRoomPage.tsx Lines 146 to 152 in 08b7ff4
The App/src/pages/workspace/WorkspaceNewRoomPage.tsx Lines 128 to 130 in 08b7ff4
and this condition What changes do you think we should make in order to solve the problem?The App/src/libs/actions/Report.ts Lines 2012 to 2013 in 08b7ff4
To fix this issue, we can set
Then, we can remove this effect App/src/pages/workspace/WorkspaceNewRoomPage.tsx Lines 128 to 130 in 08b7ff4
Or trigger it when it's unmounted instead. NOTE: there is currently a bug in Onyx where -if (
+if (mapping.initWithStoredValues &&
((value !== undefined
&& !Onyx.hasPendingMergeForKey(key))
|| mapping.allowStaleData)
) { |
Job added to Upwork: https://www.upwork.com/jobs/~0114d6fec2c1cc3911 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
@mollfpr there's a proposal above for you to take a look at |
@bernhardoj Is there any conversation regarding the bug of |
@mollfpr I'm not aware of any conversation of that |
The @bernhardoj proposal looks good to me! For the issue on 🎀 👀 🎀 C+ reviewed! |
Triggered auto assignment to @puneetlath, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Sorry, I don't follow what this means. Mind explaining for me? |
I notice that Screen.Recording.2024-05-07.at.11.39.23.mp4Here's in the video, after the refresh and then opening the new room page, you can see in the console log it will show I'm not sure if this is expected and what causing the issue, but @bernhardoj may be another option is to clear the |
It won't work if the user closes the app/tab. We need to fix the onyx first before creating the App PR. We can create a local state of loading with an initial value of false, but I think it's better to fix the onyx instead of avoiding it. |
@bernhardoj Could you create a discussion of the onyx issue? We can confirm if it is an issue before fixing it. |
I think the property name is self-explanatory and currently it doesn't work as the name and comment suggests, but here is the discussion. |
Ok understood. So my apologies, can you summarize for me the changes we'll be making in Onyx and in App? |
@mollfpr so, based on the discussion, it's confirmed the current behavior of You can see the key name that is set to Onyx ('test_key') and is connected to the component ('test') is different. That's why the test will always pass. You can update the 'test_key' to 'test' and see it will fails. @puneetlath the plan will be,
the same issue actually happens in useOnyx hook too, but I'm not confident to fix the new hook. |
@puneetlath @mollfpr @muttmuure this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.78-5 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-06-11. 🎊 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:
|
@mollfpr bump on the checklist so we can pay. |
@puneetlath I think we still need to wait a bit based on my comment here |
@puneetlath The Onyx PR is merged. I think we can have QA retest this. |
Bug fixed and not reproducible bandicam.2024-06-13.21-33-38-862.1.mp4 |
Ok, so we're ready for the checklist now yeah @bernhardoj @mollfpr? So that we can pay? |
Yes @mollfpr |
@puneetlath, @mollfpr, @muttmuure, @bernhardoj Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
No offending PR.
The regression step should be enough.
|
@mollfpr - $250 C+ |
$250 approved for @mollfpr |
@puneetlath, @mollfpr, @muttmuure, @bernhardoj Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@muttmuure what is left to do here? Can we close? |
I think the payment for me is still pending. |
@bernhardoj paid $250 for C |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.4.65-0
Reproducible in staging?: Y
Reproducible in production?: Y
Found when executing: https://github.com/Expensify/Expensify/issues/302054
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
Start chat modal should open.
Actual Result:
Nothing happens when Start chat is clicked after creating a room offline. On iOS and Android native, you can see it opening for a short time but it disappears after. On mWeb Safari, the page shakes after the tap.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6459380_1713902012941.bandicam_2024-04-23_21-44-21-452.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @muttmuure / @muttmuureThe text was updated successfully, but these errors were encountered: