Skip to content
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

[$500] IOU - Error page appear when Employee replace receipt from manual request #34417

Closed
1 of 6 tasks
kavimuru opened this issue Jan 12, 2024 · 8 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@kavimuru
Copy link

kavimuru commented Jan 12, 2024

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: 1.4.24-4
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:

Action Performed:

  1. Login as Employee
  2. Navigate to Workspace chat
  3. Go to +> Request money> Manual
  4. Add amount and tap Next
  5. On Manual page tap 3-dot menu >Add receipt and create the expense
  6. Navigate to the IOU details page and open the receipt
  7. From 3-dot menu select Replace

Expected Result:

Receipt page should open so user can replace the receipt

Actual Result:

Error page appear when Employee replace receipt from manual request

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6339895_1705050008571.az_recorder_20240111_221143.1.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01fa38279d33a4e92a
  • Upwork Job ID: 1745743279038337024
  • Last Price Increase: 2024-01-12
@kavimuru kavimuru added DeployBlockerCash This issue or pull request should block deployment External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 12, 2024
@melvin-bot melvin-bot bot changed the title mWeb - IOU - Error page appear when Employee replace receipt from manual request [$500] mWeb - IOU - Error page appear when Employee replace receipt from manual request Jan 12, 2024
Copy link

melvin-bot bot commented Jan 12, 2024

Triggered auto assignment to @jliexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

Copy link

melvin-bot bot commented Jan 12, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01fa38279d33a4e92a

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 12, 2024
Copy link

melvin-bot bot commented Jan 12, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov (External)

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Jan 12, 2024
Copy link
Contributor

👋 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:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

Copy link

melvin-bot bot commented Jan 12, 2024

Triggered auto assignment to @Gonals (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@kavimuru kavimuru changed the title [$500] mWeb - IOU - Error page appear when Employee replace receipt from manual request [$500] IOU - Error page appear when Employee replace receipt from manual request Jan 12, 2024
@Gonals
Copy link
Contributor

Gonals commented Jan 12, 2024

It seems it starts working after a while. Probably when Onyx pushes something back.
I think this flow is rare enough that we don't need to block (User chooses manual, immediately adds a receipt and then immediately changes it)

@Gonals Gonals added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Jan 12, 2024
@bernhardoj
Copy link
Contributor

This issue is related to #33750.

The transaction thread OpenReport request fails and returns an error. Because it has an error, the receipt page will show not found based on this logic.

App/src/libs/ReportUtils.ts

Lines 3934 to 3944 in 964548a

function canUserPerformWriteAction(report: OnyxEntry<Report>) {
const reportErrors = getAddWorkspaceRoomOrChatReportErrors(report);
// If the Money Request report is marked for deletion, let us prevent any further write action.
if (isMoneyRequestReport(report)) {
const parentReportAction = ReportActionsUtils.getReportAction(report?.parentReportID ?? '', report?.parentReportActionID ?? '');
if (parentReportAction?.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE) {
return false;
}
}
return !isArchivedRoom(report) && isEmptyObject(reportErrors) && report && isAllowedToComment(report) && !isAnonymousUser;
}

Read more about the root cause of OpenReport fails here.

@tgolen
Copy link
Contributor

tgolen commented Jan 12, 2024

Yeah, that looks correct from what I saw in my testing, but I couldn't reliably reproduce it and I think the error occurs with or without my changes to the receipt selector. I think the receipt selector PR merely unveiled the failures that have already been happening. Hopefully, we can get to the bottom of it in #33750 and I am going to close this issue because it's mostly a duplicate.

@tgolen tgolen closed this as completed Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

6 participants