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

[HOLD for payment 2024-04-15] [$500] IOU - Opening IOU receipt leads to not here page #39404

Closed
4 of 6 tasks
kbecciv opened this issue Apr 2, 2024 · 31 comments
Closed
4 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production 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

Comments

@kbecciv
Copy link

kbecciv commented Apr 2, 2024

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: 1.4.59-0
Reproducible in staging?: y
Reproducible in production?: n
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to FAB > Request money.
  3. Create a manual request with receipt from user that has no unsettled IOU.
  4. In 1:1 DM, click on the IOU preview.
  5. Click on the receipt.

Expected Result:

Receipt opens without issue.

Actual Result:

Opening IOU receipt leads to not here page

Workaround:

n/a

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

Bug6435480_1712058058413.receipt.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0170155bec83d697ff
  • Upwork Job ID: 1775191991451828224
  • Last Price Increase: 2024-04-02
@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Apr 2, 2024
Copy link

melvin-bot bot commented Apr 2, 2024

Triggered auto assignment to @iwiznia (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@kbecciv
Copy link
Author

kbecciv commented Apr 2, 2024

We think that this bug might be related to #wave-collect - Release 1

Copy link
Contributor

github-actions bot commented Apr 2, 2024

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

@bernhardoj
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

Opening the money request receipt shows not found page.

What is the root cause of that problem?

The condition to show the not found page is checking whether the report parentReportID is not the same as the transaction reportID.

shouldShowNotFoundPage={(report?.parentReportID ?? '') !== transaction?.reportID}

When this code is made, we can only open the receipt from the transaction thread, so report parentReportID will point to the IOU/expense report, which is the same as transaction reportID.

However, after the one transaction report view PR, we are showing the receipt and other money request fields in the IOU report, so the condition is always false because IOU report parentReportID points to the chat report.

What changes do you think we should make in order to solve the problem?

We should check whether the report is a money request report or not. If it's a money request report, we just take the reportID, otherwise take the parentReportID.

const moneyRequestReportID = ReportUtils.isMoneyRequestReport(report) ? report?.reportID : report?.parentReportID;

shouldShowNotFoundPage={(moneyRequestReportID ?? '') !== transaction?.reportID}

@shubham1206agra
Copy link
Contributor

@bernhardoj Can you update your solution to cover Track Expense on selfDM?

@bernhardoj
Copy link
Contributor

I don't see the problem with track expense

@shubham1206agra
Copy link
Contributor

Just make a track expense with the receipt. And try to open the receipt.

@bernhardoj
Copy link
Contributor

Screen.Recording.2024-04-02.at.23.40.39.mov

Works fine.

@shubham1206agra
Copy link
Contributor

Oh. Looks like a BE issue, then. Please continue here.

@iwiznia iwiznia added the External Added to denote the issue can be worked on by a contributor label Apr 2, 2024
@melvin-bot melvin-bot bot changed the title IOU - Opening IOU receipt leads to not here page [$500] IOU - Opening IOU receipt leads to not here page Apr 2, 2024
Copy link

melvin-bot bot commented Apr 2, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0170155bec83d697ff

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 2, 2024
@iwiznia iwiznia added Bug Something is broken. Auto assigns a BugZero manager. and removed Help Wanted Apply this label when an issue is open to proposals by contributors labels Apr 2, 2024
Copy link

melvin-bot bot commented Apr 2, 2024

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

Copy link

melvin-bot bot commented Apr 2, 2024

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

@bernhardoj
Copy link
Contributor

PR is ready

@NikkiWines
Copy link
Contributor

confirmed this works on staging as expected now 👍

@NikkiWines NikkiWines removed the DeployBlockerCash This issue or pull request should block deployment label Apr 3, 2024
Copy link

melvin-bot bot commented Apr 3, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

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.

@alexpensify
Copy link
Contributor

@dukenv0307 can we confirm if this blocker notice is valid or an error? Thanks!

@dukenv0307
Copy link
Contributor

@alexpensify this is not valid the context here #39512 (comment)

@alexpensify
Copy link
Contributor

Perfect, thank you for the update!

@alexpensify
Copy link
Contributor

Update: We are waiting for this one to go into production

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 8, 2024
@melvin-bot melvin-bot bot changed the title [$500] IOU - Opening IOU receipt leads to not here page [HOLD for payment 2024-04-15] [$500] IOU - Opening IOU receipt leads to not here page Apr 8, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 8, 2024
Copy link

melvin-bot bot commented Apr 8, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Apr 8, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.60-13 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-04-15. 🎊

For reference, here are some details about the assignees on this issue:

  • @bernhardoj requires payment (Needs manual offer from BZ)
  • @dukenv0307 requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Apr 8, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@dukenv0307] The PR that introduced the bug has been identified. Link to the PR:
  • [@dukenv0307] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@dukenv0307] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@dukenv0307] Determine if we should create a regression test for this bug.
  • [@dukenv0307] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@alexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@alexpensify
Copy link
Contributor

@dukenv0307 and @bernhardoj - please submit a request here:

https://www.upwork.com/jobs/~0170155bec83d697ff

On Monday, I can complete the payment process. Thanks!

@bernhardoj
Copy link
Contributor

Applied!

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Apr 14, 2024
@dukenv0307
Copy link
Contributor

@dukenv0307 and @bernhardoj - please submit a request here:

@alexpensify Thanks, I've applied to the job too

Copy link

melvin-bot bot commented Apr 15, 2024

Payment Summary

Upwork Job

BugZero Checklist (@alexpensify)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1775191991451828224/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@alexpensify
Copy link
Contributor

@dukenv0307 and @bernhardoj - I've sent you offers via Upwork. Please accept and I can complete the payment process.

@bernhardoj
Copy link
Contributor

@alexpensify accepted

@alexpensify
Copy link
Contributor

Thanks, I was able to complete the payment to @bernhardoj.

@dukenv0307, please accept the offer in Upwork, and I can complete the process. Thanks!

@dukenv0307
Copy link
Contributor

@alexpensify I accepted the UW offer

@alexpensify
Copy link
Contributor

Perfect, @dukenv0307 has been paid via Upwork. Closing since everyone has been paid via Upwork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production 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
Projects
None yet
Development

No branches or pull requests

7 participants