Skip to content
This repository was archived by the owner on May 17, 2021. It is now read-only.

fix: Hide progress bar on invalid connection string connect attempt COMPASS-4202 #251

Merged
merged 3 commits into from
Jan 12, 2021

Conversation

Anemy
Copy link
Member

@Anemy Anemy commented Jan 12, 2021

COMPASS-4202

Bug was caused by starting the showIndeterminateProgressBar but never hiding it on validation error. The validation error which disables the connect button is debounced and async also so it doesn't always prevent the user from trying to connect to an invalid connection string. This pr now fixes the handling of those invalid connection attempts.

Here's what the previous infinite loading looks like now (testing new mp4 functionality in vscode 🤔 ):

connecting-to-non-existant-freezes-ui.mp4

Copy link
Contributor

@mcasimir mcasimir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

}

this.StatusActions.done();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would try ... finally ... make sense here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good thinking - updated - added test.

@Anemy Anemy merged commit aa12d57 into master Jan 12, 2021
@Anemy Anemy deleted the COMPASS-4202/update-progress-on-validation-error branch January 12, 2021 19:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants