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

Web - Receipt page tries load when an attachment is present #25784

Closed
1 of 6 tasks
izarutskaya opened this issue Aug 23, 2023 · 40 comments
Closed
1 of 6 tasks

Web - Receipt page tries load when an attachment is present #25784

izarutskaya opened this issue Aug 23, 2023 · 40 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review

Comments

@izarutskaya
Copy link

izarutskaya commented Aug 23, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Click on FAB
  2. Click on request money
  3. Enter amount and click next
  4. Select new account
  5. Open the request that you have sent
  6. Set a description
  7. Upload an image
  8. Open the image
  9. Click on previous arrow
  10. Click on Download

Expected Result:

The receipt image should not load with the attachment image

Actual Result:

The receipt image tries to load and when you hit download button it redirects to 404 page

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: v1.3.56-18

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

Notes/Photos/Videos: Any additional supporting documentation

Receipt.mp4
Recording.1301.mp4

Expensify/Expensify Issue URL:

Issue reported by: @jo-ui

Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692782659149089

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01533b81d3403a95b1
  • Upwork Job ID: 1694767523202289664
  • Last Price Increase: 2023-08-24
@izarutskaya izarutskaya added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 23, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 23, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 23, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@izarutskaya izarutskaya added the DeployBlockerCash This issue or pull request should block deployment label Aug 23, 2023
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Aug 23, 2023
@OSBotify
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.

@melvin-bot
Copy link

melvin-bot bot commented Aug 23, 2023

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

@StevenKKC
Copy link
Contributor

It seems like intended.

const transaction = TransactionUtils.getTransaction(transactionID);
if (TransactionUtils.hasReceipt(transaction)) {
const {image} = ReceiptUtils.getThumbnailAndImageURIs(transaction.receipt.source, transaction.filename);
attachments.unshift({
source: tryResolveUrlFromApiRoot(image),
isAuthTokenRequired: true,
file: {name: transaction.filename},
isReceipt: true,
});
return;
}

@thienlnam
Copy link
Contributor

cc @mountiny / @luacmartins Do you know if this is intended?

@luacmartins
Copy link
Contributor

This is not intended. There was no receipt attached in this case. Why is TransactionUtils.hasReceipt(transaction) returning true?

@luacmartins
Copy link
Contributor

FWIW I can't reproduce this issue on the latest main anymore. Given that I can't repro on main, this feature is still a WIP and this doesn't really break any functionality I say we demote this from a blocker.

@luacmartins
Copy link
Contributor

@thienlnam I'll take this over as part of wave4

@luacmartins luacmartins assigned luacmartins and unassigned thienlnam Aug 23, 2023
@luacmartins luacmartins added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Aug 23, 2023
@StevenKKC
Copy link
Contributor

EditMoneyRequest API returns receipt field.
Screenshot 2023-08-23 142712

@luacmartins
Copy link
Contributor

That doesn't seem to be the case anymore in our dev API. I think this has been fixed. I'll keep the issue open until we can confirm though

@jo-ui
Copy link

jo-ui commented Aug 23, 2023

@luacmartins This issue is still reproducible on the latest main (v1.3.56-20).

@jo-ui
Copy link

jo-ui commented Aug 23, 2023

Receipt.mp4

@luacmartins
Copy link
Contributor

@jo-ui yes, I'm referring to main on our API, not App.

@mountiny
Copy link
Contributor

@luacmartins this should be fixed now

@mountiny
Copy link
Contributor

@jo-ui could you confirm on the latest main

@jo-ui
Copy link

jo-ui commented Aug 24, 2023

@mountiny on the latest main(v1.3.57-0) receipt image appears and then disappears after editing the merchant on mweb but not on web, is this a new issue or it can be fixed with this #25784 issue

@jo-ui
Copy link

jo-ui commented Aug 24, 2023

20230824_085655_edited.mp4

@jo-ui
Copy link

jo-ui commented Aug 24, 2023

@mountiny the above issue is also reproducible on web

2023-08-24.19-39-02.mp4

@luacmartins
Copy link
Contributor

That's weird, I can reproduce on staging, but not on dev. It seems that EditMoneyRequest is returning data it shouldn't, so this is a backend issue.

Screenshot 2023-08-24 at 11 40 20 AM

@luacmartins luacmartins added the Internal Requires API changes or must be handled by Expensify staff label Aug 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 24, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01533b81d3403a95b1

@melvin-bot
Copy link

melvin-bot bot commented Aug 24, 2023

Triggered auto assignment to Contributor Plus for review of internal employee PR - @Ollyws (Internal)

@mountiny mountiny added the Reviewing Has a PR in review label Aug 25, 2023
@jo-ui
Copy link

jo-ui commented Aug 29, 2023

@mountiny fix is live now and can't reproduce this anymore.

@melvin-bot
Copy link

melvin-bot bot commented Sep 4, 2023

@Ollyws, @luacmartins, @adelekennedy Eep! 4 days overdue now. Issues have feelings too...

@melvin-bot
Copy link

melvin-bot bot commented Sep 5, 2023

@Ollyws, @luacmartins, @adelekennedy Still overdue 6 days?! Let's take care of this!

@luacmartins
Copy link
Contributor

No updates. Focused on other wave 4 issues.

@jo-ui
Copy link

jo-ui commented Sep 6, 2023

@adelekennedy This issue has been 13 days since the PR was merged to production

@adelekennedy
Copy link

@luacmartins @mountiny what's the deal for payments here - just the reporting bonus?

@luacmartins
Copy link
Contributor

Yes, just reporting bonus. The fix and reviews were all internal.

@jo-ui
Copy link

jo-ui commented Sep 11, 2023

@adelekennedy Should I apply for the upwork job above for the reporting bonus?

@jo-ui
Copy link

jo-ui commented Sep 14, 2023

@adelekennedy any updates?

@adelekennedy
Copy link

@jo-ui yes please!

@adelekennedy
Copy link

Payouts due:

Issue Reporter: $250 @jo-ui

Upwork job is here.

@jo-ui
Copy link

jo-ui commented Sep 14, 2023

@adelekennedy can you please send me an offer it is saying " The job is private"

@jo-ui
Copy link

jo-ui commented Sep 18, 2023

@adelekennedy any updates?

@adelekennedy
Copy link

whoops - this link @jo-ui

@jo-ui
Copy link

jo-ui commented Sep 19, 2023

@adelekennedy I've applied for the job

@adelekennedy
Copy link

paid!

@melvin-bot
Copy link

melvin-bot bot commented Sep 26, 2023

@Ollyws, @luacmartins, @adelekennedy Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@luacmartins
Copy link
Contributor

Seems like everyone is paid out and we're good to close. Thanks everyone!

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 Internal Requires API changes or must be handled by Expensify staff Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

9 participants