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.
Hit this weird bug where I got stuck
offline
, there appeared to be no easy way to get out of that bad state. Couldn't create a new tab for reasons I don't understand. Probably the only solution would be to nukelocalstorage
in the browser (and loose all unsaved tabs/queries)Polling only happens when there are running queries, so I'm guessing there are race conditions where there's no more polling happening and the UI is stuck reporting
offline
Likely the bug was introduced here #6013
This was reported at Lyft earlier this week too I think
@timifasubaa @vylc @betodealmeida
This could also be improved by polling while
offline
, but I think it's also imperfect as it would not report on a case where no queries are running and the computer becomes offline. We could also poll all the time, but that's not a great idea as it would generate significantly more [not super useful] traffic in large environments.I'd say merge this asap to fix the bug and re-think what
offline
means and the requirements around it.