-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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-19] [$250] Expense - Receipt thumbnail shows a green receipt placeholder while it is uploading #47050
Comments
Triggered auto assignment to @madmax330 ( |
Triggered auto assignment to @adelekennedy ( |
👋 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:
|
We think that this bug might be related to #wave-collect - Release 1 |
Asked in slack here: https://expensify.slack.com/archives/C07CACYRTJS/p1723111960156189 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Reciept image is shown as green receipt placeholder. What is the root cause of that problem?In this issue, the receipt image is shown as EReceiptThumbnail because App/src/components/ReceiptImage.tsx Lines 112 to 124 in 0926267
In ReceiptUtils, we have a logic to return the correct data if it's a receipt image, but in our case, Lines 47 to 61 in 0926267
Line 38 in 0926267
However, the image filename contains the image source (blob://...). This happens after this commit. In that commit, we move the creating of the optimistic receipt and filename to Previously, if the receipt has the source, then the filename will be set to the receipt name. Now, it will use the source and fallback to receipt name (and then fallback to filename param). App/src/libs/TransactionUtils/index.ts Line 166 in 0926267
What changes do you think we should make in order to solve the problem?We should change the logic of the optimsitic filename just like before to:
maybe we can check for the receipt name instead, (receipt?.name ?? filename) |
@madmax330 should we open this external? I saw Ioni respond that he didn't think the instant submit change was related |
cc @neil-marcellini this looks related to #42302 |
Job added to Upwork: https://www.upwork.com/jobs/~01cb9e52d752d2515a |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ZhenjaHorbach ( |
Ah woops yes I made a mistake in that logic. Sorry! @bernhardoj's proposal looks good. Are you around to fix this ASAP? If not I will implement your solution. |
If anything, I am available for review a PR ! |
Ok, no reply yet so I'm going to put up a PR. |
Sorry, I just got online. |
@neil-marcellini @adelekennedy hi, do you think I'm eligible for payment here? |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.18-10 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-08-19. 🎊 For reference, here are some details about the assignees on this issue:
|
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:
|
Hey @bernhardoj I think in this case you're owed 50% of the usual price as we used your solution but @neil-marcellini implemented it. Does that sound fair? |
Removing blocker labels since this is def not a new blocker 😬 |
🤦♀️ I completely missed those labels @Beamanator, thank you |
No prob! :D |
@adelekennedy yes, that make sense for me |
great! Thank you so much for bringing this up Payouts due:
|
Requested in ND. |
$125 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: v9.0.18-1
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4834235
Email or phone of affected tester (no customers): applausetester+kh050806@applause.expensifail.com
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The receipt thumbnail will show the receipt while it is uploading (production behavior).
Actual Result:
The receipt thumbnail shows a green receipt placeholder while it is uploading.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6565240_1723090380276.20240808_120954.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @adelekennedyThe text was updated successfully, but these errors were encountered: