-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[$1000] After completing "Request money" journey the chat randomly redirects to other chat Reported by @mananjadhav #6912
Comments
Triggered auto assignment to @Gonals ( |
Triggered auto assignment to @Christinadobrzyn ( |
Setting tags and sending to the pool! |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @iwiznia ( |
Job posted https://www.upwork.com/jobs/~01b794160880fbf187 |
Hi, I managed to narrow the issue down to this line: App/src/libs/Navigation/CustomActions.js Line 108 in 615f5b3
I couldn't figure out the actual root cause, but for some reason dispatching a I wasn't able to put that information to good use and I haven't found what exactly causes that follow-up action to get dispatched, but deleting this code that sends a App/src/libs/Navigation/CustomActions.js Lines 102 to 109 in 615f5b3
I understand that it's far from optimal solution, so hopefully someone manages to find a better and I hope my findings will help with that. Thanks. |
Thanks, @dklymenk for putting an outline for the issue. I was known that this action is causing multiple issues. Currently two. I will investigate myself as I refactored it a few days back and then we cleaned up the code to make it more robust. Somehow, that cleanup has caused bugs. cc: @marcaaron |
proposalI think the problem is App/src/libs/Navigation/CustomActions.js Lines 98 to 100 in a87b53c
I think we shouldn't do other navigation beside returning navigation actions in We could do
or
or waiting for some time (around 500ms) after This solve the issue for me. |
Any reason for this conclusion? Definitely open to hearing proposals for how to fix this and am happy to hear we have found a solution, but we should be able to explain what is happening as well. Every time this code is modified something else breaks. |
https://reactnavigation.org/docs/navigation-prop/#advanced-api-reference Stated:
Dispatch function:
There is no clear I am not sure, I am raising stackoverflow question about this. |
removing Navigator.navigate methods from requestmoney IOU ( https://github.com/murataka/App/commit/f5e5a72bd6a499339e96ed0ecda488fbccde0a6e ) would solve the issue when we want to focus the bugs only and only about this topic . I can move the rest to some other navigation related issues, because I solved some bugs unintentionally while trying this one. That might be confusing while evaluating this proposal ( like: "hey why did you need to change that ") ... And yes, there seems to be many issues to fix about navigation topic , that might not be all , just some of them. I'm looking forward if you did find some problems on my commit(s). |
Proposal removing Navigator.navigate methods from requestmoney IOU ( murataka@f5e5a72 ) fixes the related bug , and it would be easier to evaluate this proposal. So I created this proposal again which is just focusing on this bug to make things simpler. What it does is just remove the
methods which are causing the actual bug. The rest is linter removing unused code. As the title says
This is the solution. |
No, Update. Still holding... |
@Expensify/applause Is this issue still reproducible? If yes, can I get fresh reproduction steps? |
I just tried and I cant see this problem I have 3 chats :) |
I have researched this one over the weekend and I have some theory but I am collecting some data to validate it. Overall, I was not able to reproduce this issue since the start but I have a feeling that it exists. I have asked for new steps and QA to retest it. |
We were able to reproduce this on our side on Mac 10.15.7 / Chrome Version 98.0.4758.80
After second request user redirect to user 1 conversation. jump.RM.mp4 |
Waiting for some data from the team before running some tests... |
So this issue is still un-assigned right now as far as I can see, right? Mind providing a link to what we are waiting on right now @parasharrajat? I'm trying to discern if this hold should be on hold for some reason, or doubling in value this week. |
I don't feel this needs doubling this week. I will update you next week on the status. I haven't completed my testing and it's not on hold now. I am debugging this. I have some data but am not yet ready to be shared. |
Thanks for sharing the context, that's helpful! |
Ok, there is really something going on but unfortunately, I am not able to reproduce it. So back to proposals. I don't like @murataka 's proposal. You are suggesting to move away from |
@parasharrajat , thanks for examining the proposals , In fact, This issue was my first and I had trouble to getting used to here at first, so , me trying to handle more than one case above is misleading. The only change I suggest is this one : https://github.com/murataka/App/commit/f5e5a72 currentlyViewedReportID is not related to that one . What https://github.com/murataka/App/commit/f5e5a72 does is , we are removing the unessential navigate methods. After that , it works because , we are not redirecting to wrong report, even we are not (don't need to ) redirecting all in all . |
Thanks for clarifying the changes. There are two ways Request Money works:
I think your proposal may work while using 2 but it won't when using 1. Am I missing something? |
Let me check it and confirm. I shall pull main again and test, also will add the video recording ... |
To clarify what changed : We just delete those two lines (87 and 137). After that , we shall have unused variables and libraries. https://github.com/murataka/App/commit/f5e5a72#r67467635 https://github.com/murataka/App/commit/f5e5a72#r67467659 What we get in last total pr is the above lines deleted + unused variables and libraries removed. sendmoneywithoutredirect.mov |
This is open for proposals... |
I'm unable to reproduce and Rajat mentioned about he's not able to either on Desktop nor staging/web/Chrome. |
Gonna close this. If anyone can reproduce, please add a comment with steps and a video screenshot, then we'll reopen |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
User should stay on the same chat
Actual Result:
User is redirected randomly to another chat
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.23-0
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2021-12-27.at.9.30.48.PM.mov
Expensify/Expensify Issue URL:
Issue reported by: @mananjadhav
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1640620909132300
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: