-
Notifications
You must be signed in to change notification settings - Fork 3k
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] Android - Track expense - "It's not here" page shows up briefly when deleting a track expense #53301
Comments
Triggered auto assignment to @RachCHopkins ( |
Triggered auto assignment to @youssef-lr ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 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:
|
Triggered auto assignment to @nkuoch ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 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:
|
Production video_2024-11-29_10-42-11.mp4 |
Job added to Upwork: https://www.upwork.com/jobs/~021862432764600523584 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra ( |
The not found shows because App/src/pages/home/report/withReportOrNotFound.tsx Lines 88 to 93 in decb695
I added the The comment stated
which means the condition is actually not 100% reliable because we assume the user is probably navigating out of the screen. I think what we can do is delay the delete report similar to this recent PR. |
@mountiny Can we do that ^? |
We can delete track, expense/ios, and task, but the issue only happens on track and expense/iou. |
Edited by proposal-police: This proposal was edited at 2024-11-30 04:36:47 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue"It's not here" page shows up briefly when deleting a track expense. What is the root cause of that problem?The RC of this issue comes from the fix implemented by this PR: specifically the added
which when we delete the track expense is App/src/pages/home/report/withReportOrNotFound.tsx Lines 99 to 101 in 1a6f48e
which renders the It's not here page in our case. What changes do you think we should make in order to solve the problem?Revert the changes implemented by PR #51920 which would fix this issue and from my tests looks like the other issue (#51388) would not be reproducible anymore even with the fix implemented by the offending PR being reverted. Note As one can note regarding the other issue's result video below, we do indeed see a Not found page screen briefly (similar to this issue) after reverting the fix but I don't consider that an issue given we're in Debug mode and more importantly the behaviour is present on current staging (meaning no tradeoff). What alternative solutions did you explore? (Optional)As an alternative we can remove the if (shouldShowNotFoundPage && !isFocused) {
return null;
} this would fix our issue, #51388 and the scenario detailed in #53301 (comment). ResultsAndroid (Native / mWeb)
|
#51388 not only fixes the debug page issue, but also this case:
|
Ok, I think the adding |
@shubham1206agra A way to fix #51388 as well would be to remove the if (shouldShowNotFoundPage && !isFocused) {
return null;
} This would fix all 3 issues, with #51388 looking like this once you are removed from a private room: Android: mWeb Chromescreen-20241129-205253.mp4I was able to trace down the
If we're fine with the behaviour shown above in that issue's case then I leave it to you guys to decide whether we can move forward with this proposal. Updated proposal
|
This is a similar problem as stated in this issue. So I don't think we want to revive an old bug here. |
I remember one solution using useState, and usePrevious where we can set a flag on these commands, and use the previous value / loading indicator instead if these flags are set to true. Then, if the user closes the RHP, the state gets reset. So no problem will arise there. |
@shubham1206agra The problem is that our current issue (this one) has the not found page showing because of the That's why I suggested to simply remove it since we don't have a specific case which we know of that the I already looked at implementations based on state but I did not want to propose that since we would increase the render count of all pages wrapped by |
Lets go with @ikevin127's alternative proposal. 🎀👀🎀 C+ reviewed |
Current assignees @nkuoch and @youssef-lr are eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
📣 @shubham1206agra 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @ikevin127 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
PR will be opened in ~1 hour. ♻️ Update: Debugging the solution as it doesn't seem to work as expected. |
@shubham1206agra While preparing the PR I tested the proposed alternative solution again (without any console.logs added) and it does not seem to fix our issue, having the same issue with the Not sure how this behaved on your side but the issue is still consistently reproducible on my side with the alternative fix. Therefore I went back to the main solution, removed the
and all tests pass on my side on all platforms where the issues were present. Therefore I decided to move forward with the PR and main solution - making sure to add the tests for the other issues as well and you can let me know in the PR if they all pass on your side as well. |
♻️ Status update: PR has been open and ready for review for two days - awaiting review. |
♻️ Status update: PR has been open and ready for review for 4 days - still awaiting review from @shubham1206agra. |
Sorry for the delay |
♻️ Status update: PR is pending review once again after some code changes following first review. ♻️ Status update 12/16/2024: Working on the PR, one more test case needs to pass from one of the previous issues. ♻️ Status update 12/18/2024: PR is pending review once again after latest code changes related to one of the failing tests, more details in #53408 (comment). |
This issue has not been updated in over 15 days. @nkuoch, @youssef-lr, @RachCHopkins, @ikevin127, @shubham1206agra eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.68-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5277524
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Precondition: Login to the Hybrid App with an Expensifail account.
Steps
Expected Result:
"It's not here" page will not show up when deleting a track expense.
Actual Result:
"It's not here" page shows up briefly when deleting a track expense.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6679551_1732832209586.delete_track_expense.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @shubham1206agraThe text was updated successfully, but these errors were encountered: