Repository navigation
Description
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: 9.2.18-4
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: https://test-management.browserstack.com/projects/2219752/test-runs/TR-935/folder/13176730/41237111/915651813
Email or phone of affected tester (no customers): ibellicotest+1846@gmail.com
Issue reported by: Applause Internal Team
Device used: Motorola MotoG60 / Android 12 / Chrome ( mWeb / Hybrid app) - Windows 11 / Chrome
App Component: Search
Action Performed:
Prerequisite; Account has at least one workspace.
Prerequisite 2: Delayed submissions and approvals enabled.
- Open the Expensify app.
- Open any workspace chat,
- Create a manual expense.
- Tap on "Submit" on expense preview.
- Navigate to "Reports" > "Submit"
- Note that expense is not displayed on "Submit" section.
- Return to workspace chat and turn off internet connection.
- Open the expense report.
- Tap on "More" and select "Add Expense"
- Tap on "Create Expense" and create a new manual expense.
- Navigate to "Reports" > "Submit" again.
- Note that report is now displayed on "Submit" section, despite already being submitted.
- Expand the report preview.
- Note that a "This report has no expenses" message is displayed.
- Turn on internet connection.
- Note that report is still displayed.
- Navigate to a different section and return.
- Note that now, report disappeared from "Submit"
Expected Result:
Already submitted report, shouldn´t reappear on "Submit" section after adding a new expense to it while offline.
Actual Result:
Already submitted report, reappears on "Submit" section after adding a new expense to it while in offline mode. Report displays total amount, but when expanded, a "This report has no expenses" message can be seen.
After recovering internet connection, report still remains displayed on "Submit" section and only disappears after navigating to a different section and returning.
Workaround:
Unknown
Platforms:
- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome / Safari
- MacOS: Desktop
Screenshots/Videos
Bug6955693_1758820438231.Reappear.mp4
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~021973494967904572209
- Upwork Job ID: 1973494967904572209
- Last Price Increase: 2025-10-01
- Automatic offers:
- truph01 | Reviewer | 109109280
- FitseTLT | Contributor | 109109282
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @ChristinadobrzynMetadata
Metadata
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Sep 25, 2025
Triggered auto assignment to @Christinadobrzyn (
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.FitseTLT commentedon Sep 25, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Reports - Submitted report, reappears on "Submit" when adding an expense to it while offline
What is the root cause of that problem?
In
shouldOptimisticallyUpdateSearchwe don't check the status of the iouReport is draft when the currentSearchHash submitQueryJSONApp/src/libs/actions/IOU.ts
Lines 11971 to 11975 in 30a92e7
What changes do you think we should make in order to solve the problem?
We should check the iouReport is draft for the case of
submitQueryJSON(we should also check that the status is submitted for approveQueryJSON)We can also add a similar check for
unapprovedCashSimilarSearchHashto ensure the status is either draft or outstandingWhat specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
We can test that search items are not added optimistically if the iouReport on which the expense is added is submitted one and the current search hash is submitQueryJSON one
What alternative solutions did you explore? (Optional)
Christinadobrzyn commentedon Sep 26, 2025
These reproduction steps are so confusing! I don't understand step 9, how do you add an expense to a submitted report? asking QA for help - https://expensify.slack.com/archives/C9YU7BX5M/p1758863969626679
IuliiaHerets commentedon Sep 26, 2025
@Christinadobrzyn I recorded a video for you. You need to open the More menu in the Expense report
bandicam.2025-09-26.10-02-41-701.mp4
melvin-bot commentedon Sep 29, 2025
@Christinadobrzyn Whoops! This issue is 2 days overdue. Let's get this updated quick!
Christinadobrzyn commentedon Sep 30, 2025
Thanks @IuliiaHerets! I still don't get the same on steps 14-18.
Here's a video -
2025-09-30_10-57-59.mp4
IuliiaHerets commentedon Sep 30, 2025
@Christinadobrzyn issue is still repro, full video here
screen-20250930-154122.mp4
Christinadobrzyn commentedon Sep 30, 2025
Awesome thank you! testing
Christinadobrzyn commentedon Oct 1, 2025
I can reproduce this with this video - #71343 (comment)
Sorry for the delay here. adding External label.
43 remaining items
truph01 commentedon Oct 21, 2025
BugZero Checklist:
[Contributor] 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:
[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.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue: https://github.com/Expensify/Expensify/issues/562347
Regression Test Proposal
Precondition:
Test:
Prerequisite: The Account has at least one workspace.
Prerequisite 2: Delayed submissions and approvals enabled.
Do we agree 👍 or 👎
Julesssss commentedon Oct 28, 2025
@Christinadobrzyn ready for payment as of today 👍
Christinadobrzyn commentedon Oct 28, 2025
Regression test - #71343 (comment)
Payment summary - #71343 (comment)
@truph01 can you please accept this Upwork offer - https://www.upwork.com/nx/wm/offer/109109280
TY
Christinadobrzyn commentedon Oct 28, 2025
moving to daily
truph01 commentedon Oct 29, 2025
@Julesssss I've accepted the offer
Julesssss commentedon Oct 29, 2025
Cool, so we can close right?
truph01 commentedon Nov 3, 2025
@Christinadobrzyn Please release the payment for me in the Upwork contract
Christinadobrzyn commentedon Nov 10, 2025
So sorry @truph01! I just paid you in Upwork. #71343 (comment)