Repository navigation
feat(chen): find databases by name from the object search - #1993
Open
adriadam10 wants to merge 1 commit into
Open
adriadam10 wants to merge 1 commit into
adriadam10 wants to merge 1 commit into
Conversation
The object search only looks inside one database and the database list is paged, so a database further down the list could not be found. While searching, the tree now also lists the databases whose name matches (it loads the remaining pages first); clicking one closes the search and opens it in the tree. The search box no longer needs a database to be selected.
|
ibuler
reviewed
Dec 4, 2026
ibuler
left a comment
Member
There was a problem hiding this comment.
I reproduced four cases in GoCatalogTree.vue using the Vue component logic and a mocked catalog API. These should be addressed before merging.
- [P2] Searching before the first database page arrives misses later pages. Type a query while the initial request is pending, with a match on page two. The first call to
loadAllDatabases()exits, and finishing the initial request doesn't start pagination. The match only appears after the query is edited. Search watcher - [P2] Enter doesn't open a database search result. Move focus from the search field to a matching database with Arrow Down, then press Enter. The key handler toggles the node and leaves search open. Route keyboard activation through the same path as a click. Click handler · Enter handler
- [P2] Clicking a result leaves it hidden if the connection node is collapsed. Collapse the connection node, search for a database, and click the match. Search closes and selects the database, but its row is still hidden under the collapsed connection node, so scrolling to it has no effect. Database activation
- [P3] Database pagination restarts after the component unmounts. Close the workspace while a search-triggered page request is pending. Unmount aborts the request, but once it settles the loop issues another request with the same cursor. Stop the pagination loop when the component unmounts. Pagination loop · Unmount handler
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.



Problem
The Objects search (
catalogObjectswithq) only looks for tables and views inside one database, and the search box is disabled until a database is selected. The database list itself is paged (100 per page, "Load more"), so on a server with a few hundred databases a database further down the list can only be reached by paging and scrolling; the browser's find (Ctrl+F) does not see the pages that are not loaded yet.Change
Chen.GoV1FindTableOrDatabasefor the placeholder.Testing
oxfmt,oxlint,eslint,nuxt typecheckandvitest(the repository's pre-commit) pass.