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 2024-08-20][$500] WS Chat – Blank page opens when go back from IOU thread in a Collect WS chat #40937
Version Number: 1.4.65-4 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Email or phone of affected tester (no customers):applausetester+jp_e_category@applause.expensifail.com Issue reported by: Applause - Internal Team
@sakluger FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
changed the title [-]WS Chat – Blank page opens when go back from IOU thread in a Collect WS chat[/-][+][$250] WS Chat – Blank page opens when go back from IOU thread in a Collect WS chat[/+]on Apr 24, 2024
The issue is that when the network is slow, loading is set to true, and then when the page switches, loading remains true, resulting in an empty array being returned. If the page is not refreshed, loading will remain blank, waiting for the response to return.
What changes do you think we should make in order to solve the problem?
remove condition isLoading in Line 169 if not effect another PR. As your comment suggests, even if loading, it shouldn't be blank, should use data what we had. Therefore, I suggest removing it here.
What alternative solutions did you explore? (Optional)
I discovered an issue on native (iOS & Android) whilst testing the PR that was also there on main. We decided to fix it as a follow-up and @tsa321 has a solution, so @sakluger would you be able to create an issue and assign us both? (I'm not sure what the process is otherwise!).
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: N/A - comment linking was a complex PR so it makes sense some issues were missed
Determine if we should create a regression test for this bug. Yes
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.
Regression Test Proposal
If there aren't already, add some expenses to any workspace chat, e.g. 5.
Open each expense to view the transaction details report.
Go back to the workspace chat and submit a new expense using the + button on the left side of the composer.
Click on the expense preview in the chat to open the report with all expense previews.
Click on the 3rd expense from the bottom. This will open the transaction thread report.
Immediately go back by clicking on the header link.
Verify that there is no loading skeleton in the report and that the message loads immediately.
changed the title [-][$500] WS Chat – Blank page opens when go back from IOU thread in a Collect WS chat[/-][+][HOLD for payment 2024-08-20][$500] WS Chat – Blank page opens when go back from IOU thread in a Collect WS chat[/+]on Aug 24, 2024
Activity
melvin-bot commentedon Apr 24, 2024
Triggered auto assignment to @sakluger (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.lanitochka17 commentedon Apr 24, 2024
@sakluger FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
lanitochka17 commentedon Apr 24, 2024
We think that this bug might be related to #wave-collect - Release 1
melvin-bot commentedon Apr 24, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01dee105cffad79099
[-]WS Chat – Blank page opens when go back from IOU thread in a Collect WS chat[/-][+][$250] WS Chat – Blank page opens when go back from IOU thread in a Collect WS chat[/+]melvin-bot commentedon Apr 24, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee (
External)beodw commentedon Apr 25, 2024
Cannot reproduce...
Screen.Recording.2024-04-25.at.01.25.51.mov
charles-liang commentedon Apr 25, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
WS Chat – Blank page opens when go back from IOU thread in a Collect WS chat
What is the root cause of that problem?
App/src/pages/home/report/ReportActionsView.tsx
Lines 164 to 182 in 0f39e43
The issue is that when the network is slow, loading is set to true, and then when the page switches, loading remains true, resulting in an empty array being returned. If the page is not refreshed, loading will remain blank, waiting for the response to return.
What changes do you think we should make in order to solve the problem?
remove condition isLoading in Line 169 if not effect another PR. As your comment suggests, even if loading, it shouldn't be blank, should use data what we had. Therefore, I suggest removing it here.
What alternative solutions did you explore? (Optional)
N/A
158 remaining items
jjcoffee commentedon Aug 7, 2024
PR is under review, just one little issue that I think is also there on main, but otherwise testing really well!
jjcoffee commentedon Aug 12, 2024
I discovered an issue on native (iOS & Android) whilst testing the PR that was also there on main. We decided to fix it as a follow-up and @tsa321 has a solution, so @sakluger would you be able to create an issue and assign us both? (I'm not sure what the process is otherwise!).
Repro steps (video here):
jjcoffee commentedon Aug 16, 2024
Deployed to production 13 Aug, @sakluger can you update the title to hold for payment for 20 Aug? 🙏
jjcoffee commentedon Aug 20, 2024
Regression Test Proposal
Do we agree 👍 or 👎
jjcoffee commentedon Aug 20, 2024
@sakluger Payment is due today, as this was deployed 13 Aug.
jjcoffee commentedon Aug 20, 2024
@marcaaron Are you able to create the follow-up issue we discussed? Details here. Or is there some other process we should follow?
marcaaron commentedon Aug 20, 2024
yes, report bug in #expensify-bugs
jjcoffee commentedon Aug 23, 2024
@sakluger Friendly bump for payment (the fix was deployed 13 Aug) 🙏
[-][$500] WS Chat – Blank page opens when go back from IOU thread in a Collect WS chat[/-][+][HOLD for payment 2024-08-20][$500] WS Chat – Blank page opens when go back from IOU thread in a Collect WS chat[/+]sakluger commentedon Aug 24, 2024
Summarizing payment on this issue:
Contributor: @tsa321 $500, paid via Upwork
Contributor+: @jjcoffee $500, paid via Upwork
sakluger commentedon Aug 24, 2024
@jjcoffee thanks for being on top of everything here! And sorry for the delayed payment. All done now 🙇
jjcoffee commentedon Aug 26, 2024
@sakluger Thanks for making the payment! It looks like the job price didn't update to $500, any way you can correct it?
sakluger commentedon Sep 4, 2024
@jjcoffee - sorry about that! I added a $250 bonus to the contract to bring the total payment to $500.