Skip to content

Expense - Optimistic expense report preview not showing after creating an expense while being offline #62144

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

Open
7 of 8 tasks
vincdargento opened this issue May 15, 2025 · 13 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. DeployBlockerCash This issue or pull request should block deployment Engineering Hourly KSv2 Reviewing Has a PR in review

Comments

@vincdargento
Copy link

vincdargento commented May 15, 2025

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 9.1.46-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.3 / Chrome
App Component: Money Requests

Action Performed:

  1. Go to staging.new.expensify.com
  2. Create a new workspace.
  3. Go to workspace chat.
  4. Click + > Create expense > Manual.
  5. Go offline
  6. Submit a manual expense.

Expected Result:

Expense preview will appear immediately after creating an expense (even if offline).

Actual Result:

Optimistic preview doesn't show up. The preview only appears after coming back online and after the request RequestMoney finishes

When creating invoice, the delay is more obvious.

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

bug.mp4

View all open jobs on GitHub

@vincdargento vincdargento added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 15, 2025
Copy link

melvin-bot bot commented May 15, 2025

Triggered auto assignment to @johncschuster (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.

Copy link

melvin-bot bot commented May 15, 2025

Triggered auto assignment to @aldo-expensify (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented May 15, 2025

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels May 15, 2025
Copy link
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.

@vincdargento
Copy link
Author

@johncschuster FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors.

@aldo-expensify
Copy link
Contributor

I'm about to leave to a dentist appointment, I'll be out for around 1.5 hours, if this needs to be solved earlier, please reassign :)

@aldo-expensify
Copy link
Contributor

Looking at the video, that delay is very small, I wonder if it could be something related to how production code is compiled vs staging code (if there is any difference in that).

@aldo-expensify
Copy link
Contributor

Seems like something happened to the optimistic data, if I create the expense offline, I don't see the preview. I only see it after the request finishes and thus the delay.

@aldo-expensify
Copy link
Contributor

The preview is in Onyx, but is it not showing:

Image

@aldo-expensify
Copy link
Contributor

aldo-expensify commented May 16, 2025

The REPORTPREVIEW onyx data looks the same in production vs staging

The new report onyx data also looks the same, so I think this has to be some change in where we decide to show or not the preview, but the preview data and the report data didn't change.

@aldo-expensify
Copy link
Contributor

I think this was caused by #62002, reverting it fixes the bug for me in dev

@aldo-expensify
Copy link
Contributor

cc @JakubKorytko @allgandalf

@aldo-expensify aldo-expensify changed the title Expense - Slight delay before expense preview appears after creating an expense Expense - Optimistic expense report preview not showing if offline after creating an expense May 16, 2025
@aldo-expensify aldo-expensify changed the title Expense - Optimistic expense report preview not showing if offline after creating an expense Expense - Optimistic expense report preview not showing after creating an expense while being offline May 16, 2025
@aldo-expensify aldo-expensify added Hourly KSv2 and removed Weekly KSv2 labels May 16, 2025
@aldo-expensify
Copy link
Contributor

I'm not sure if we want to try to fix the code or revert. If we want a revert, there is one here: #62151

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. DeployBlockerCash This issue or pull request should block deployment Engineering Hourly KSv2 Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

3 participants