-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[HOLD for Payment 2024-08-22] [$250] Web - Expense - App navigates to not found page when paying part of an expense offline #46600
Comments
Triggered auto assignment to @twisterdotcom ( |
@twisterdotcom 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 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Not found page when paying partial report. What is the root cause of that problem?The not found page is because the report action isn't found anymore. If we have a hold expense and then pay it partially, we will optimistically remove the hold expense and move it to a new expense report. This is introduced in #42573. Lines 6564 to 6572 in bbaa9da
If we link to the hold expense action, when it's moved to the new expense report, the not found page shows. App/src/pages/home/ReportScreen.tsx Lines 413 to 421 in bbaa9da
What changes do you think we should make in order to solve the problem?We can follow a similar approach when deleting a comment by checking if the deleted action is the linked action, then clear the reportActionID from the params. App/src/libs/actions/Report.ts Lines 1498 to 1502 in d69b203
Lines 6564 to 6572 in bbaa9da
We will do the same for approving What alternative solutions did you explore? (Optional)In ReportScreen, if the linked action is previously available but is now deleted, clear the reportActionID. App/src/pages/home/ReportScreen.tsx Line 391 in d69b203
But the user will notice a brief blink of the not found page because we clear the reportActionID not immediately and to prevent that, we can update the not found condition to only show if both the previous App/src/pages/home/ReportScreen.tsx Lines 413 to 414 in d69b203
|
Job added to Upwork: https://www.upwork.com/jobs/~0116c34258c5f026d6 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @brunovjk ( |
@bernhardoj's proposal LGTM. The RCA seems correct to me, about the solution I'm not so sure, I tested and works fine but, I'll wait for @neil-marcellini opinion about it. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @neil-marcellini, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@neil-marcellini, what do you think of the proposed alternative solution? Thank you. |
@twisterdotcom, @neil-marcellini, @brunovjk Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Bump on this @neil-marcellini |
I agree, we might need some tweaks in the PR, but we'll see. |
📣 @brunovjk 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
PR is ready cc: @brunovjk |
Head's up, I'll be working 50% for the rest of this week and next 🌲 |
It's time to do payment and close this out |
Note The production deploy automation failed: This should be on [HOLD for Payment 2024-08-22] according to #47356 prod deploy checklist, confirmed in #46942 (comment). cc: @twisterdotcom |
Regression Test Proposal:
Do we agree 👍 or 👎 |
Hey @twisterdotcom, just a heads up that the payment for this issue is still pending. When you have a moment, could you help process it so we can close this out? Appreciate it! |
Ahh! Yes. Sorry, I'm OOO atm but will log in this evening to process it and close. Thanks for the bump. |
Payment Summary:
|
Requested in ND. |
$250 approved for @bernhardoj |
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.14-0
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): Yokabdk+new1@gmail.com
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
App navigates to the expense lists page which is the behavior in online mode
Actual Result:
App navigates to not here page when clicking on the pay only ... button while offline
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6553411_1721982281588.VID_20240726_112408_394.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @twisterdotcomThe text was updated successfully, but these errors were encountered: