Repository navigation
fix(BAR-55): Reloads the sidebar after a save that reconnects - #64
Merged
Merged
Conversation
Saving a change to how a connection connects (host, password, schema...) closes its live pool, and the dialog forgets what the sidebar read through it. Nothing connected again, so the Databases list and the schema tree stayed stale until Refresh schema. The schema the sidebar showed now loads again, as Refresh does, which connects again.
VM-dash
marked this pull request as ready for review
November 30, 2026 13:19
Bare7a
approved these changes
Dec 1, 2026
Owner
|
Thanks for the fix and the clear report in #67! I added a commit on top that also reloads other databases the tree shows, plus tests. Really appreciate the contribution! |
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.
📝 What changed?
Saving a change to how a connected connection connects (host, password, schema, …) closes its pools, its databases' included, and the connection dialog forgets the schemas read through them. Nothing connected again, so the sidebar stayed stale until Refresh schema: turning Show all databases on, for example, showed no Databases list and left the schema tree empty.
That save now loads again every schema of the connection and its databases that was loaded or loading, which connects them again. The tree and the Databases list follow, also when the tree shows another of the server's databases. Closes #67
🧩 Type of change
🧪 Tested
📖 Docs
📌 Notes
A quick way to hit it: a saved connection with an empty schema, since the dialog fills in the default (
public) on save, which counts as a change to how it connects.New tests: a unit test for a reconnecting save, and per-engine scenarios for Show all databases turned on while connected and for the tree on another database. Without the fix, the unit test fails and both scenarios fail on PostgreSQL, MySQL, MariaDB and ClickHouse.