Cleanup Active server if ID is not in database#6265
Draft
Conversation
Member
It shouldn't be, whenever the server is deleted the same check you're adding here is applied to remove it: If you can point to an issue where it indicates there is an old server ID stored as active I'm OK with this change, but otherwise I would like to not include it so we know if things go wrong. |
Member
|
Some additional discussion on Discord for future reference |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
I'm trying to understand in which scenario we are giving an ID that doesn't exist anymore, while investigating this I had this idea that maybe we storing in the local storage the active server ID that doesn't exist anymore. I'm not sure if it possible but in case we could take this defensive approach to clear the local preference if the ID does not exist to unlock the situation on the next run.
Checklist
Any other notes
I'm looking for other places, but the crashes that I see on sentry might also be because of old data that we didn't cleanup and that we are never cleaning.