-
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
[$250] Desktop - Distance - Opens "Hmm it's not here" when you open the "Start" menu a second time #47422
Comments
Triggered auto assignment to @puneetlath ( |
Triggered auto assignment to @RachCHopkins ( |
👋 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:
|
We think that this bug might be related to #wave-collect - Release 1 |
Hmm couldn't reproduce in |
oh ya def reproducible console error:
|
Though I donn't know if I'd reeeeeeally consider this a blocker blocker 🤷 maybe we can keep it open till someone can maybe help, but if it becomes the last blocker open we can NAB it |
Job added to Upwork: https://www.upwork.com/jobs/~015866c373fa1fa23d |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?When we click the submit expense we initialize the money request by invoking the Inside the Lines 327 to 337 in 57ef25c
And also every we click the submit expense we also invoke the startMoneyRequest and clearMoneyRequest function, and after clicking the start waypoint page and go back and click again the submit expense button and go to start waypoint page again, the currentTransaction(draftTransaction) doesn't get clear because the clearMoneyRequest take a little bit longer than the web browser, but it got cleared after the initMoneyRequest if condition run
If we do on web browser we can see more faster action for the Onyx that the draft transaction is got cleared before the if statement run, and the comment.waypoint doesn't set with the correctly because inside the if statement we return (exit from the function) But in web browser the if statement doesn't run because the draftTransaction got cleared first before the if condition run Lines 381 to 387 in 57ef25c
What changes do you think we should make in order to solve the problem?On Lines 381 to 384 in 57ef25c
And we can use the .then method inside the startMoneyRequest function to wait until we clear the draftTransaction
Result:Screen.Recording.2024-08-14.at.23.46.35.movWhat alternative solutions did you explore? (Optional)We can use promise resolve, and resolve when the Onyx completed |
@NJ-2020 Thanks for the proposal, but I'm unclear on a few points. Let me break it down below:
Why is this happening only on desktop, and only on this page? If the desktop doesn't update data synchronously, it should be happening in other places too.
I haven't noticed this pattern in any Onyx updates on the app. Could you please provide some examples if we're supposed to follow this pattern? |
I was checking logs and noticed that the transaction data is incorrect on the desktop platform. It should be like this:{
"amount": 0,
"comment": {
"waypoints": {
"waypoint0": {
"keyForList": "start_waypoint"
},
"waypoint1": {
"keyForList": "stop_waypoint"
}
},
"customUnit": {
"customUnitRateID": "3C14F0F0D0778"
}
},
"created": "2024-08-15",
"currency": "INR",
"iouRequestType": "distance",
"reportID": "4585884576347998",
"transactionID": "1",
"isFromGlobalCreate": false,
"merchant": "(none)",
"splitPayerAccountIDs": [
18152125
]
} But instead, it's like this (no comment waypoints data is included):{
"amount": 0,
"comment": {},
"created": "2024-08-15",
"currency": "INR",
"iouRequestType": "manual",
"reportID": "4585884576347998",
"transactionID": "1",
"isFromGlobalCreate": false,
"merchant": "(none)",
"splitPayerAccountIDs": [
18152125
]
} |
@puneetlath @Beamanator Though it's an hourly issue, I still believe we should avoid adding the promise for the Onyx set until we identify the root cause, as this issue is specific to the desktop platform. |
@jayeshmangwani I don't know, but I think because Electron maybe, I've tried to console log inside browser and desktop and I see that the log for clearing the transaction in browser came first before the if condition run, and the draftTransaction got empty before the if condition run But on desktop side the clear function took a little bit more longer and I tried to console log, and the if condition runs before the draftTransaction got cleared, and after the if statement run, the draft transaction got cleared
Yes i know this, I see on browser why it works as expected and try to console the draftTransaction and showing undefined value for the 2 second time opening the start way point which make the if condition do not run Thanks. |
We can also add return statement to Onyx.set method and use |
Do we know why this is happening on staging but not production? |
@jayeshmangwani I agree with you that let's make sure we understand the root cause before we go forward with a solution. |
I'm trying to figure this out. I can confirm that the issue is coming from this PR #45982. I reverted the changes locally, and the issue disappeared. I'm still working on pinpointing the exact line of code that's causing this @puneetlath Other Issue still in the regression period should we assign the author and C+ of that PR to tackle this issue? |
That sounds good to me yes. @dominictb can you please look into this? |
@puneetlath, @RachCHopkins, @jayeshmangwani Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Friendly reminder @dominictb |
@rayane-djouah noted. I'll take a look as soon as possible. |
Not Overdue; |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Latest update: I'm trying to reproduce the issue. |
I am unassigning myself from the Issue. @puneetlath / @RachCHopkins Please assign the issue to @rayane-djouah and @dominictb |
@rayane-djouah I have some trouble reproducing this issue locally. Could you? |
Same here, I cannot reproduce the issue |
Issue seems to be resolved now. I am also no longer able to reproduce it. |
📣 @rayane-djouah 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@rayane-djouah can you please see if you can still reproduce this? |
@puneetlath @RachCHopkins @rayane-djouah @dominictb 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! |
Not able to reproduce Screen.Recording.2024-08-28.at.7.09.28.PM.mov |
@RachCHopkins should we just close it then? |
@puneetlath, @RachCHopkins, @rayane-djouah, @dominictb Eep! 4 days overdue now. Issues have feelings too... |
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: v9.0.20-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4857130
Email or phone of affected tester (no customers): sustinov@applausemail.com
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
When you open the "Start" menu a second time, a waypoint entry field should appear
Actual Result:
Opens "Hmm it's not here" when you open the "Start" menu a second time
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6571800_1723622887402.Recording__84.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @jayeshmangwaniThe text was updated successfully, but these errors were encountered: