Skip to content

fix(BAR-55): Reloads the sidebar after a save that reconnects - #64

Merged
Bare7a merged 4 commits into
Bare7a:masterfrom
VM-dash:fix/reload-after-connection-save
Dec 1, 2026
Merged

Bare7a merged 4 commits into
Bare7a:masterfrom
VM-dash:fix/reload-after-connection-save

Conversation

@VM-dash

@VM-dash VM-dash commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

📝 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

  • 🐛 Bug fix
  • ✨ Feature
  • ♻️ Refactor
  • ⬆️ Dependencies
  • 📝 Docs or landing page
  • 🛠️ Build, CI or packaging

🧪 Tested

  • By hand on Windows
  • By hand on macOS
  • By hand on Linux
  • Tests workflow on macOS and Windows

📖 Docs

  • Updated the guide
  • Updated the README or landing page
  • No docs needed

📌 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.

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
VM-dash marked this pull request as ready for review November 30, 2026 13:19
@Bare7a Bare7a changed the title fix: Reconnects a connection whose saved settings closed it fix(BAR-55): Reloads the sidebar after a save that reconnects Dec 1, 2026
@Bare7a
Bare7a merged commit a2b0249 into Bare7a:master Dec 1, 2026
3 checks passed
@Bare7a

Bare7a commented Dec 1, 2026

Copy link
Copy Markdown
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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Saving a connected connection's settings leaves the sidebar stale until Refresh schema

3 participants