-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Apply Onyx updates in an ordered fashion #25455
Merged
Merged
Changes from all commits
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
89c2ff6
Add skeleton application methods
tgolen 424f9e9
Build update application methods
tgolen 59fd99f
Use a promise to know when updates are done
tgolen fd0ab65
Merge branch 'main' into tgolen-ordered-updates
tgolen ea1ebe3
Remove debug
tgolen 5f19b31
Merge branch 'main' into tgolen-ordered-updates
tgolen b9ecfc7
Refactor the location of code
tgolen 842ec64
Start the update manager from authscreens
tgolen ba59617
Improve logging
tgolen 427043e
Rename method
tgolen ebe24bf
Rename file and add promises to pusher events
tgolen ff9a773
Improve logs
tgolen 528062b
Fix the updating and improve comments
tgolen 3cfa38f
Merge branch 'main' into tgolen-ordered-updates
danieldoglas 7b42169
added ANY to format on updates since that's still undefined
danieldoglas 3002c64
adding early return in case of responses without onyxData
danieldoglas c4d4094
updating save function to not return early if missing lastUpdateID
danieldoglas fe50fd0
adding check on reconnect app after switching to updates beta to not …
danieldoglas a5e8127
adding reconnect app to the list of methods we shouldn't check
danieldoglas ba47492
adding check to prevent us from running both ReconnectApp and GetOnyx…
danieldoglas dde0814
prettier
danieldoglas 321041a
adding fields that were missing in the request object
danieldoglas 85bd8ba
adding response object
danieldoglas 659de58
adding OnyxUpdatesFromServer object
danieldoglas 85b4ef0
renaming and changing object in onyxKeys
danieldoglas 42555c1
renaming property to updates
danieldoglas 4d02eb5
renaming multipleEvents to updates
danieldoglas c5d7264
prettier
danieldoglas 473d5df
renaming property
danieldoglas 001eee9
Merge branch 'main' into tgolen-ordered-updates
danieldoglas 6a51999
lint errors
danieldoglas 72629eb
reverting file to main
danieldoglas c2f3097
add onyxupdatemanager on tests
danieldoglas 57874c7
adding additional checks for early return
danieldoglas 4cf1934
adding onyx update manager to Network tests
danieldoglas 64e006c
adding space for style
danieldoglas 3ed8dce
adding new method to return promise on reconnectApp
danieldoglas d5cc741
adding usage to new method to reconnect app
danieldoglas c613170
refactor the code a little bit
danieldoglas 377cb93
adding a few more checks and refactoring
danieldoglas df82f2e
adding check if queue is paused before moving on with applying queued…
danieldoglas 181c54a
prettier
danieldoglas 97ef06e
prettier, some refactoring and adding the unpause in the right place
danieldoglas 03da972
using the promise instead of passing variable down
danieldoglas d5fd7ed
linting files and adjusting checks
danieldoglas b8abf43
adding the right check in lastUpdateAppliedToClient
danieldoglas 92bd9cb
Merge branch 'main' into tgolen-ordered-updates
danieldoglas ee3cddf
refactoring in progress
danieldoglas db642eb
adding clarifying comment
danieldoglas bd72f2a
adding syncronous processing in case there's no need to fetch updates…
danieldoglas b758fd4
fixing parameters
danieldoglas fb9e483
removing unecessary check for APIs
danieldoglas 06d7250
renaming redundant name
danieldoglas a516500
adding check on network if we should pause after a request is done
danieldoglas 440eaf9
adding new property on middleware response so we can block the queue …
danieldoglas 204cfd1
working on onyx updates queue so we don't lose updates when flushing
danieldoglas 798dde2
a little bit of refactor
danieldoglas 4de4fb7
more refactor
danieldoglas b3da51b
fixing User.js calls
danieldoglas 812253b
Merge branch 'main' into tgolen-ordered-updates
danieldoglas a07073b
adding property
danieldoglas 48934f8
returning responseData on applyHTTPSOnyxUpdates
danieldoglas d30a4eb
adding comment for clarity
danieldoglas ec719bf
clearing unused method
danieldoglas 7aab96e
prettier, fixing const reference
danieldoglas 9ede8ad
fixing import to the right path
danieldoglas 8a73c0a
adding back a method that is used
danieldoglas a8697ee
adding back the flush call when restarting the queue
danieldoglas 2cda55b
adding sequentialqueue.unpause on promise cal
danieldoglas b333592
prettier and adding a check to ignore updates if they are older than …
danieldoglas 45d3a6d
addressing comments, fixing lint issues and prettier
danieldoglas 7e0e60a
lint
danieldoglas 1d91a4d
fixing order hopefully for the last time for linter
danieldoglas 7ab2d52
fixing resolve response
danieldoglas 30d8eaf
fixing check to apply updates in case lastUpdateID is 0
danieldoglas 05938e2
removing comment about the circular reference
danieldoglas ead5186
updating signature for ts mapping
danieldoglas 0b8a8cc
renaming responseData to response
danieldoglas ec61746
changing from reduce to map
danieldoglas c5a8eb5
linter and fixing signature again
danieldoglas 20fead9
fixing lint
danieldoglas 250aa17
changing object signature to simplify it
danieldoglas e07c47c
removing data reference
danieldoglas 9b70014
prettier
danieldoglas d012c54
adding previousUpdateID
danieldoglas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just curious how can this happen if the requests are fetching the current state. Doesn't happen at all?
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.
We talked personally and I explained this!