-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Stop "retrying" requests that fail in the main queue #8860
Conversation
…ts - stop queueing read requests. watch many tests fail
shouldRetry
. Stop retrying non-retryable requests.
shouldRetry
. Stop retrying non-retryable requests.shouldRetry
. Stop retrying non-retryable requests.
shouldRetry
. Stop retrying non-retryable requests.shouldRetry
.
Realizing that an interesting side effect of the original changes (now reverted) would be that all things are technically "retryable" and optimistic (but not persistent) and will not be optimistic anymore after. We would be able to fix that by making any optimistic requests have a |
Gonna expand on this problem because on further reflection I don't think we can actually get rid of We can still kill the "retry counter" logic though for things outside of the Sequential Queue. Current behavior:
Gonna make those changes now so I can merge the good parts of this and wrap up the Network Improvements project as the retry logic is holding on the API changes. |
1 similar comment
This comment was marked as duplicate.
This comment was marked as duplicate.
shouldRetry
.
@roryabraham adding you here to have a second set of eyes and my rambling comments above might be interesting to you |
Bump |
LGTM 👍 Leaving a brief summary to explain the reasoning for why we're making this change... Basically:
|
What @roryabraham said + also want to quickly document that a consequence of this change is that some quasi-optimistic writes that kind of work offline will be broken by this change in a very minor way and only in the situation where we suddenly go offline or the site is down. Offline features for these requests will still mostly work while you are offline. We just will stop handling that edge case for all commands (except This will also free up @madmax330 to focus on the retry changes for the |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by @roryabraham in version: 1.1.68-0 🚀
|
🚀 Deployed to production by @Julesssss in version: 1.1.68-2 🚀
|
2 similar comments
🚀 Deployed to production by @Julesssss in version: 1.1.68-2 🚀
|
🚀 Deployed to production by @Julesssss in version: 1.1.68-2 🚀
|
Please ignore these duplicated messages, we only deployed once but the message appears each the iOS deploy fails. |
🚀 Deployed to production by @Julesssss in version: 1.1.68-2 🚀
|
1 similar comment
🚀 Deployed to production by @Julesssss in version: 1.1.68-2 🚀
|
Details
Holding on:
Fixed Issues (Related to)
https://github.com/Expensify/Expensify/issues/208281
Tests
UpdateLastRead
request that is triggered whenever a report is switched to (see tip here)PR Review Checklist
PR Reviewer Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followed/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)QA Steps
Same as Tests
Screenshots
❌