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
[Due for payment 2026-10-22] Expense - Remove receipt system message is not shown in self dm on removing the receipt. #102533
Version Number: V9.4.95-0 Reproducible in staging?: Yes Reproducible in production?: N/A - new feature, doesn't exist in prod If this was caught during regression testing, add the test name, ID and link from BrowserStack:#100801 Email or phone of affected tester (no customers):dreamnitethedragon+vegst@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Redmi note 10s android 13 App Component: Money Requests
Action Performed:
Launch app
Create a manual expense in self dm entering Merchant
Open the expense and add a receipt via camera image
Note added a receipt system message is shown
Tap receipt and delete it
Expected Result:
Remove receipt system message must be shown in self dm on removing the receipt.
Actual Result:
Remove receipt system message is not shown in self dm on removing the receipt.
👋 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.
It's a pre-existing issue, not a regression from Add an audit trail for receipt additions. Production already failed to show "removed a receipt" for self-DM expenses before that PR merged. The PR added a new "added a receipt" message, and that made the missing removal message easy to notice.
Evidence
The removal code didn't change. Before the PR, detachReceipt built the removal action with transactionReport?.reportID (Receipt.ts:132-136). A self-DM expense has reportID = '0', so that report doesn't exist and the action never shows in the self DM or the expense thread.
The PR's only change to detachReceipt passes a new transactionThreadReportID argument to the offline conflict resolver. That argument only cleans up queued "added a receipt" actions. The action-building and Onyx writes were not touched.
The issue itself says "Reproducible in production?: N/A - new feature".
The fix was new behavior, not a revert.Add an audit trail for receipt additions added a new receiptRemoved message and resolveTransactionThreadReport so self-DM expenses post to the open thread. A self-DM removal message wasn't shown before either PR.
I checked this in the code and did not reproduce it on production.
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to the comment on the PR:
Link to the comment on the Issue:
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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:
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
Precondition:
Test:
Test case 1:
Submitter submit an expense without receipt
Submitter or admin add new receipt
Verify that the message added a receipt is created
Replace the receipt
Verify that there're 2 messages: Removed a receipt & Added a receipt
Test case 2:
Submitter submit an expense without receipt
Submitter or admin add new receipt
Verify that the message added a receipt is created
Remove the receipt
Observe the message removed a receipt is shown
Reset cache and restart
Observe the message removed a receipt is preserved
Test case 3:
Launch app
Open workspace chat
Toggle on forced offline
Create a manual expense entering Merchant
Open the expense and add the receipt via camera image
Note add receipt message is shown
Remove the receipt and verify remove receipt message is shown
Add receipt via choose file and note add receipt message is shown
Now delete receipt
Toggle off forced offline
Verify that: Add receipt message must not be missing and system message must not reorder.
Test case 4:
Launch app
Create a manual expense in self dm entering Merchant
Open the expense and add a receipt via camera image
Note added a receipt system message is shown
Tap receipt and delete it
Verify that: Remove receipt system message must be shown in self dm on removing the receipt.
Activity
applause-bot commentedon Sep 29, 2026
While Applause doesn't embed attachments for this bug, here are the links for quick view:
https://platform.applause.com/services/links/v1/external/1406f82e16611393fc5d46312200bb6f8563dcdcc6611b1912fe0699785555bd
melvin-bot commentedon Sep 29, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #100801
melvin-bot commentedon Sep 29, 2026
@arosiclair @flaviadefaria @truph01 you have been assigned to this deploy blocker because you reviewed the offending PR: #100801
github-actions commentedon Sep 29, 2026
👋 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:
melvin-bot commentedon Sep 29, 2026
@dukenv0307 you have been assigned to this deploy blocker because you authored the offending PR: #100801
melvin-bot commentedon Sep 29, 2026
💬 A slack conversation has been started in #expensify-open-source
25 remaining items
MelvinBot commentedon Oct 20, 2026
It's a pre-existing issue, not a regression from Add an audit trail for receipt additions. Production already failed to show "removed a receipt" for self-DM expenses before that PR merged. The PR added a new "added a receipt" message, and that made the missing removal message easy to notice.
Evidence
detachReceiptbuilt the removal action withtransactionReport?.reportID(Receipt.ts:132-136). A self-DM expense hasreportID = '0', so that report doesn't exist and the action never shows in the self DM or the expense thread.detachReceiptpasses a newtransactionThreadReportIDargument to the offline conflict resolver. That argument only cleans up queued "added a receipt" actions. The action-building and Onyx writes were not touched.receiptRemovedmessage andresolveTransactionThreadReportso self-DM expenses post to the open thread. A self-DM removal message wasn't shown before either PR.I checked this in the code and did not reproduce it on production.
truph01 commentedon Oct 20, 2026
Based on #102533 (comment), it is pre-existing issue
truph01 commentedon Oct 20, 2026
Contributor+ Checklist:
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to the comment on the PR:
Link to the comment on the Issue:
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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:
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
Precondition:
Test:
Test case 1:
Test case 2:
Test case 3:
Test case 4:
Do we agree 👍 or 👎
melvin-bot commentedon Oct 21, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon Oct 21, 2026
Payment Summary
Resolving PRs:
Add an audit trail for receipt additions #103279
Contributor: @dukenv0307 does not require payment (Contractor)
Reviewer: @truph01 owed $175 via NewDot
BugZero Checklist (@mallenexpensify)
mallenexpensify commentedon Oct 24, 2026
@truph01 plz fully fill out the C+ Checklist