-
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
Add SequentialQueue.push()
. Fix up tests.
#8857
Conversation
@@ -103,7 +103,7 @@ function Logging(response, request) { | |||
command: request.command, | |||
message: error.message, | |||
status: error.status, | |||
}); | |||
}, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this because the stack trace isn't necessary and was creating extra noise while debugging tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! It took me a bit of time to figure out some details of the context, but I like how the network logic is being improved!
@sketchydroide I'm going to merge this so we can keep moving through the Network Improvements changes, but let me know if there's anything you have questions about. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Cherry-picked to staging by @sketchydroide in version: 1.1.57-8 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by @chiragsalian in version: 1.1.57-17 🚀
|
Details
This is a fairly small, but significant change since it means that all
Report_AddComment
requests are now blocking and move through theSequentialQueue
exclusively. Here's a rough overview of what is happening now...Before:
Report_AddComment
command is made and gets put into the main queueAfter:
Report_AddComment
command is made and gets immediately persisted and placed directly in the "sequential" queue and will also process immediately if not already processingFixed Issues
$ https://github.com/Expensify/Expensify/issues/208283
Tests
Test blocking behavior of the sequential queue
Report_AddComment
requests happen after theReport_AddComment
ones (except forLog
)Test that new comments get pushed to the bottom of the queue if it is processing
Report_AddComment
request can be seen (Tip use the "Slow 3G" option to make the timing easier)Report_AddComment
callPR 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
See Test Steps
Screenshots
No UI Changes