-
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
HIGH: Kill ReconnectToReport #34902
Merged
Merged
HIGH: Kill ReconnectToReport #34902
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
404732f
Kill ReconnectToReport
aldo-expensify 0b4b666
Lint
aldo-expensify bcfe3ab
Merge Main / resolve conflicts
aldo-expensify 7cb1ab1
Delete unused params for deleted command ReconnectToReport
aldo-expensify 10360a3
Remove ReconnectToReportParams
aldo-expensify 148f19d
Merge main / resolve conflicts
aldo-expensify c369feb
Merge main / resolve conflicts
aldo-expensify 6e2648d
Merge branch 'main' of github.com:Expensify/App into aldo_remove-reco…
aldo-expensify ea3f7b6
Remove unused type
aldo-expensify 278c3f1
Remove unused variable
aldo-expensify 325111d
Merge branch 'main' of github.com:Expensify/App into aldo_remove-reco…
aldo-expensify 5c587e0
Merge branch 'main' of github.com:Expensify/App into aldo_remove-reco…
aldo-expensify 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 was deleted.
Oops, something went wrong.
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.
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.
TODO: Need to make sure this isn't needed. If reliable updates works properly, I don't think we should miss a report, but 🤷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.
This code is very very very very Old (~2020), and it is very likely that things were much more unreliable back then. I think this came from this PR:
https://github.com/Expensify/App/pull/339/files
And have been modified a few times after, for example here: https://github.com/Expensify/App/pull/1075/files#r548053786
I think this can be tested by:
accountA
is offline and has never chatted withaccountB
beforeaccountB
creates a DM withaccountA
and sends a message.accountA
misses the push eventaccountA
goes onlineaccountB
sends another messageThat way, when we push the last message sent by
accountB
in step 4,accountA
could have been missing the report, but that is not the case anymore becauseaccountA
got the report in step 3 because of "reliable updates".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.
Agree with you @aldo-expensify that the app is more reliable. I think this code is basically here for the case you have laid out i.e. it was possible to get a pusher update for a report that you didn't have locally yet. And in that case, we would fetch it.
cc @tgolen to get more eyes on this one just in case he can think of something we are not seeing.
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.
Huh... Good to see this code is no longer necessary! I agree with both of you and the assumptions.