Skip to content

feat(linux-editor): complete a moved query tab from its database's own session - #3903

Open
sedax90 wants to merge 106 commits into
TableProApp:mainfrom
sedax90:feat/linux-editor-follows-database-session
Open

sedax90 wants to merge 106 commits into
TableProApp:mainfrom
sedax90:feat/linux-editor-follows-database-session

Conversation

@sedax90

@sedax90 sedax90 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #3902.

Summary

  • A query tab that moves to another database, from the bar or with a USE, brings that database's session into the window, and its completion reads that session's catalog: the right tables on PostgreSQL and SQL Server too.
  • The tab's own editor session still moves as before; only the catalog and the sidebar follow.
  • Whenever a database's session joins the window, every query tab of the connection in that database reads its catalog: tabs moved while it opened, restored ones, and ones whose database was closed and opened again.
  • A statement that changes the catalog in a moved tab refreshes that database's sidebar and catalog.
  • A tab of a database's own workspace follows too, and one moved to the connection's database reads the connection's catalog.
  • Completion drops the last database's catalog the moment the tab moves, and ignores one opened late for a database the tab left.

Test plan

  • session_window::tests::sessions: an_editor_tab_moved_to_a_database_opens_its_session, tabs_moved_while_a_database_opens_all_read_its_catalog.
  • ui::editor::tests::completion_reads_only_the_session_of_the_tabs_database.
  • verify.sh build, tablepro editor and session window tests, lint.

sedax90 and others added 19 commits October 30, 2026 09:37
…or-database-switch

# Conflicts:
#	linux/crates/app/src/ui/editor/tab_scope.rs
#	linux/data/resources/ui/sql-editor.ui
…or-database-switch-more

# Conflicts:
#	linux/crates/app/src/ui/editor/editor_session_slot.rs
#	linux/crates/core/src/dialect/sql_dialect.rs
#	linux/crates/drivers/mongodb/src/dialect.rs
…-editor-database-switch-reconnect

# Conflicts:
#	linux/crates/app/src/ui/editor/editor_session_slot.rs
#	linux/crates/core/src/dialect/sql_dialect.rs
#	linux/crates/drivers/mongodb/src/dialect.rs
#	linux/crates/drivers/postgres/src/dialect.rs
…ion's disconnect, and purge one only after its drafts land
…joins, and leave the sidebar's selection to the tab in front
…wn database, and offer one when none is open
…nux-editor-follows-database-session

# Conflicts:
#	linux/crates/app/src/ui/editor/tab_scope.rs
@datlechin datlechin changed the title feat(linux-editor): take a query tab moved to another database to that database's session feat(linux-editor): complete a moved query tab from its database's own session Oct 30, 2026

This branch has not been deployed

No deployments
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.

2 participants