https://expensify.slack.com/archives/C05LX9D6E07/p1695105894373289
Problem
When we're offline, we'll build up a ton of requests if we keep navigating. OpenReport is probably the biggest offender. That's bad because we'll process the whole queue once we're back online, and because of that requests that I actually need to execute when I'm online will have to wait until the whole queue is processed.
Let's say you have navigated to 5 reports while offline.
When you go online:
We'll start processing the queue.
Open report usually takes a couple seconds per request, so we'll wait 10s until you do all requests
Because we also queue the onyxUpdates for write requests, we'll need for the write operation for all of them to finish before we actually see anything in the report we just navigated
Solution
Only call OpenReport exactly once per report
Use a report metadata key to store if we have ever called the OpenReport for a specific report
Issue Owner
Current Issue Owner: @sakluger
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~01697b67b9aa3280da
- Upwork Job ID: 1742376039165644800
- Last Price Increase: 2024-01-03
https://expensify.slack.com/archives/C05LX9D6E07/p1695105894373289
Problem
When we're offline, we'll build up a ton of requests if we keep navigating. OpenReport is probably the biggest offender. That's bad because we'll process the whole queue once we're back online, and because of that requests that I actually need to execute when I'm online will have to wait until the whole queue is processed.
Let's say you have navigated to 5 reports while offline.
When you go online:
We'll start processing the queue.
Open report usually takes a couple seconds per request, so we'll wait 10s until you do all requests
Because we also queue the onyxUpdates for write requests, we'll need for the write operation for all of them to finish before we actually see anything in the report we just navigated
Solution
Only call OpenReport exactly once per report
Use a report metadata key to store if we have ever called the OpenReport for a specific report
Issue Owner
Current Issue Owner: @saklugerUpwork Automation - Do Not Edit