Skip to content

Travel - Trip "Total" changes to 0 (zero) after opening and closing trip #105339

Open

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: v9.5.25-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: #104562
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Desktop / Windows 11
App Component: Left Hand Navigation (LHN)

Action Performed:

Preconditions:

  • The user has a workspace with "Travel" enabled and set up.
  • The user has at least one upcoming trip already booked and confirmed.
  • The user has enabled "travelApproval" in Account / Troubleshoot / Beta overrides
  1. Open the Expensify Web App and log in as the user from the Preconditions
  2. Go to Spend / Trips
  3. Observe the "Total" amount of any upcoming trip
  4. Click on the "View" button of this trip
  5. Click the back arrow button to close the trip room
  6. Observe the "Total" of this trip

Expected Result:

The "Total" amount of the trip should not change.

Actual Result:

The "Total" amount of the trip changes to 0 (zero).

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Image
Bug7299364_1793244221787.Expensify_PR104562_Web_Total.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Julia Ponikarchuk
Bug ID: 7299364

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Oct 29, 2026
  2. melvin-bot commented on Oct 29, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #104562

  3. melvin-bot commented on Oct 29, 2026

    @melvin-bot

    @stitesExpensify you have been assigned to this deploy blocker because you reviewed the offending PR: #104562

  4. melvin-bot commented on Oct 29, 2026

    @melvin-bot

    @suneox you have been assigned to this deploy blocker because you authored the offending PR: #104562

  5. melvin-bot commented on Oct 29, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  6. github-actions commented on Oct 29, 2026

    @github-actions
    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.
  7. suneox commented on Oct 29, 2026

    @suneox
    Contributor

    I'm starting to look into this issue

  8. MelvinBot commented on Oct 29, 2026

    @MelvinBot
    Contributor

    Deploy Blocker Analysis

    Causing PR: 104405 trips table (high confidence). It added the whole Spend > Trips table behind the travelApproval beta, including every file that renders a trip row and its Total.

    Root cause: The trip row reads its Total from the trip room's ordinary total field in the cached search results (TripListItemRow.tsx:74-79). SearchTrip has no field of its own for the trip total (SearchResults.ts:113). When the room's real report data is merged into that cache, total becomes the room's own value (0). The other trip fields survive, so the row stays but shows 0.

    Recommendation: Fix forward rather than revert. The feature is new, staging-only, and gated by a beta, so no production users are affected. Reverting would pull a 53-file PR that also touches shared Search code.

    Suggested fix: Return the trip total in a dedicated field (for example, tripTotal / tripCurrency), add it to SearchTrip, and read it in TripListItemRow.tsx. This needs a small backend change. No App-only option is clean.

    Investigation details
    • Timing: The PR merged 2026-10-28 15:01 UTC. The bug was reported on v9.5.25-0 the next morning. The PR is in Deploy Checklist: New Expensify 2026-10-29.
    • Gating: Without travelApproval, type:trip is the old expense search, so the bug can't appear. That's why production is N/A.
    • Other checklist PRs: None of them change how trip rows or totals are built.
    • Data flow: getTripSections copies the trip-room report from the search snapshot into the row. isTripListItemType requires travelerAccountID. The row staying visible means the cache was merged, not replaced.
    • Not confirmed: No App code writes the room's report into the cached search results when you open or close the room. Opening it uses the SEARCH_REPORT panel (Search/index.tsx:688-694), and openReport doesn't touch the snapshot. The overwrite most likely comes from a server response or update that includes report_<tripRoomID>. To confirm, compare snapshot_<hash>.data.report_<tripRoomID>.total before and after opening the room, and check which response changes it.
    • Labels: This is a frontend bug introduced by the App PR, so DeployBlockerCash stays.

    view run

  9. suneox commented on Oct 29, 2026

    @suneox
    Contributor

    @allgandalf This is a BE issue where the total field returns 0 when opening report details. Since this feature is still under a beta flag, I think this shouldn't be a deploy blocker.

    OpenReport detail
    CleanShot.2026-10-29.at.13.18.31.mp4
  10. allgandalf commented on Oct 29, 2026

    @allgandalf
    Contributor

    @suneox OpenReport is fine, it returns the room's own total (0). Onyx copies every report_ update into the search snapshot, and the trip row reads total from that same key. i'll add tripTotal and tripCurrency on the backend so the row can read those. agree it shouldn't block, it's behind the beta

  11. stitesExpensify commented on Oct 29, 2026

    @stitesExpensify
    Contributor

    Not a blocker, new feature behind a beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringOverdue

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions