Skip to content

[pending payment] [$250] [LOW] [Performance] Opening a transaction thread can be slow to load sometimes #42687

Description

@mountiny

Coming from here

Problem

One issue that I've consistently noticed as an approver is that opening a transaction thread seems to be much slower than opening a chat or an expense report. It doesn't seem to be the API call that is slow as I'm seeing OpenReport respond in a few hundred milliseconds. It seems to be something on the client that causes a delay before we even call OpenReport. Is this something that someone could look into?

Logs:
logs-2024-05-27 17_37_19.380.txt

JSON trace from Chrome:
In the Slack post

Screen.Recording.2024-05-27.at.1.36.37.PM.mp4

Solution

Profile and investigate opening the transaction thread and why it's taking so much longer even if the API request is fast.

You can:

  1. Create a Workspace as Alice
  2. Invite another member to it (Bob)
  3. Go to the Workspace settings
  4. More Features
  5. Enable Workflows
  6. Setup approvals
  7. Set Alice as the Approver on the workspace
  8. Sign in as Bob
  9. Create many requests from the workspace
  10. As Alice, navigate to the expense report
  11. Open the transaction thread
  12. Profile opening the transaction thread
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d2d0fcf90d743949
  • Upwork Job ID: 1795399434607542272
  • Last Price Increase: 2024-05-28
  • Automatic offers:
    • aimane-chnaif | Reviewer | 102511992
Issue OwnerCurrent Issue Owner: @joekaufmanexpensify

Metadata

Metadata

Labels

AutoAssignerNewDotQualityUsed to assign quality issues to engineersAwaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions