-
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
[$250] Expense - Not here page shows up briefly when deleting the expense #45576
Comments
Triggered auto assignment to @sonialiap ( |
Triggered auto assignment to @iwiznia ( |
👋 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 this issue might be related to the #collect project. |
Production Screen_Recording_20240717_113000_Chrome.mp4 |
Job added to Upwork: https://www.upwork.com/jobs/~01c66dfe570a289fac |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov ( |
We pass App/src/pages/ReportDetailsPage.tsx Line 778 in fc9b7ac
This will trigger us to dismiss the modal first and then navigate back: Lines 3594 to 3600 in fc9b7ac
Simplest fix would be to use the check the screen size from the hook const {isSmallScreenWidth} = useResponsiveLayout();
ReportUtils.navigateBackAfterDeleteTransaction(navigateBackToAfterDelete.current, !isSmallScreenWidth ? true: false); I assume there is a check for large screen too, both can be used either ways |
I assume that is what was intended with the PR #44537 |
does that make sense to you @iwiznia ? |
Oh right, seems that PR did not fix the issue it was intended to fix, going to close in favor of that issue |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
Edited by proposal-police: This proposal was edited at 2024-08-06 13:59:34 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Not here page shows up briefly when deleting the expense. What is the root cause of that problem?After deleting the transaction, we delete the data first here, then navigate later App/src/pages/ReportDetailsPage.tsx Line 778 in 3710936
So the data will be updated even before the user finishes the navigation back, this causes the brief deleted-transaction data (not found page/ What changes do you think we should make in order to solve the problem?We should navigate the user back first, then delete the transaction data in the background after the user has successfully navigated. This will make sure through out the navigation back, the user still sees the correct transaction data.
So at this step we just set the
In summary, we only change the order in which optimistic data update and navigation back happens, we don't make any logic change. That's for submit expense case, we should check track expense case and handle in similar manner. What alternative solutions did you explore? (Optional)We could additionally add the change suggested above here, but this does not fully fix the issue, Alternative to |
@alitoshmatov Would you be able to take another look at my proposal? #45576 (comment) The branch link has been updated with the latest main, and my quick test doesn't show any regressions. (#45576 (comment)) |
@iwiznia, @sonialiap, @luacmartins, @alitoshmatov, @daledah Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Looks promising, let me do some more testing |
@iwiznia, @sonialiap, @luacmartins, @alitoshmatov, @daledah Huh... This is 4 days overdue. Who can take care of this? |
@alitoshmatov how's the testing going? |
Is there any progress here? It's been a week without update, should we re-assign? |
Commenting on #45576 (comment), @alitoshmatov then i think on small screens we can navigate first and then delete, would you please consider my proposal again here, thanks |
@iwiznia, @sonialiap, @luacmartins, @alitoshmatov, @daledah Still overdue 6 days?! Let's take care of this! |
Current assignees @iwiznia and @luacmartins are eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @wildan-m 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
working on the PR, perform more tests |
@alitoshmatov @iwiznia there is an open issue that will block the result of the test of this issue in iOS, I can experience it after implement the solution, should we keep creating the PR or hold this one? |
If you think that your code will work once that other issue is done, then let's send the PR but keep this issue on hold till we can actually test the results in all platforms. |
@iwiznia, @wildan-m, @sonialiap, @luacmartins, @alitoshmatov, @daledah Eep! 4 days overdue now. Issues have feelings too... |
@alitoshmatov @iwiznia after further testing, my solution doesn't solve all cases, the briefly [deleted] text also shown in the report header. Kapture.2024-10-03.at.14.31.38.mp4While I search for another solution, you should consider reapplying the "help wanted" label to attract better proposals. |
If so, then i guess we can work on my proposal to improve it and apply further |
Thank you @wildan-m . Then we are back on choosing proposals |
FYI: Looks like we have the same issue when deleting tasks Screen.Recording.2024-10-06.at.2.54.54.PM.mov |
|
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: 9.0.8-1
Reproducible in staging?: Y
Reproducible in production?: N
Found when executing PR : #44537
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
Not here page will not show up when deleting the expense.
Actual Result:
Not here page shows up briefly when deleting the expense.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6544678_1721193497553.ScreenRecording_07-17-2024_13-15-33_1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @alitoshmatovThe text was updated successfully, but these errors were encountered: