You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-08-19] [$250] Expense - Receipt thumbnail shows a green receipt placeholder while it is uploading #47050
👋 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:
Identify the pull request that introduced this issue and revert it.
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 buildOptimisticTransaction, but we got the logic for the filename wrong.
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).
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:
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:
[@madmax330 / @neil-marcellini] 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:
[@madmax330 / @neil-marcellini] 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:
[@bernhardoj] Determine if we should create a regression test for this bug.
[@bernhardoj] 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.
[@adelekennedy] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
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?
Activity
melvin-bot commentedon Aug 8, 2024
Triggered auto assignment to @madmax330 (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Aug 8, 2024
Triggered auto assignment to @adelekennedy (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.github-actions commentedon Aug 8, 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:
IuliiaHerets commentedon Aug 8, 2024
We think that this bug might be related to #wave-collect - Release 1
madmax330 commentedon Aug 8, 2024
Asked in slack here: https://expensify.slack.com/archives/C07CACYRTJS/p1723111960156189
bernhardoj commentedon Aug 8, 2024
Proposal
Please 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
isThumbnailis true.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,
isReceiptImageis false.App/src/libs/ReceiptUtils.ts
Lines 47 to 61 in 0926267
isReceiptImagechecks the extension of the image filename.App/src/libs/ReceiptUtils.ts
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
buildOptimisticTransaction, but we got the logic for the filename wrong.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)
26 remaining items
melvin-bot commentedon Aug 12, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Aug 12, 2024
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:
melvin-bot commentedon Aug 12, 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:
adelekennedy commentedon Aug 13, 2024
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?
Beamanator commentedon Aug 13, 2024
Removing blocker labels since this is def not a new blocker 😬
adelekennedy commentedon Aug 13, 2024
🤦♀️ I completely missed those labels @Beamanator, thank you
Beamanator commentedon Aug 13, 2024
No prob! :D
bernhardoj commentedon Aug 14, 2024
@adelekennedy yes, that make sense for me
adelekennedy commentedon Aug 14, 2024
great! Thank you so much for bringing this up
Payouts due:
bernhardoj commentedon Aug 14, 2024
Requested in ND.
JmillsExpensify commentedon Aug 14, 2024
$125 approved for @bernhardoj