fix(doris): preserve single external catalog visibility
This commit is contained in:
1 parent
68179d16f5
commit
5792ce1244
3 files changed
+30
-4
No files matched your search
@@ -68,7 +68,7 @@ import { mergeSqlObjectNavigationType, sqlObjectNavigationTypeFromTableType } fr
|
||||
import * as api from "@/lib/backend/api";
|
||||
import { isTauriRuntime } from "@/lib/backend/tauriRuntime";
|
||||
import { useTunnelProfileStore } from "@/stores/tunnelProfileStore";
|
||||
import { connectionIsDorisFamilyCatalogCapable, isInternalDorisCatalog, isSchemaAware, normalizeSidebarObjectKind, schemaNodeHasLoadableName, sidebarObjectKindsForDatabase, supportsPackageMemberExpansion, usesTreeSchemaMode } from "@/lib/database/databaseCapabilities";
|
||||
import { connectionIsDorisFamilyCatalogCapable, isInternalDorisCatalog, isSchemaAware, normalizeSidebarObjectKind, schemaNodeHasLoadableName, shouldShowDorisCatalogTree, sidebarObjectKindsForDatabase, supportsPackageMemberExpansion, usesTreeSchemaMode } from "@/lib/database/databaseCapabilities";
|
||||
import {
|
||||
connectionDatabaseMetadataSchema,
|
||||
connectionObjectTreeNodeSchema,
|
||||
@@ -3869,7 +3869,7 @@ export const useConnectionStore = defineStore("connection", () => {
|
||||
return null;
|
||||
});
|
||||
}
|
||||
if (dorisCatalogs && dorisCatalogs.length > 1) {
|
||||
if (dorisCatalogs && shouldShowDorisCatalogTree(dorisCatalogs)) {
|
||||
const cacheKey = schemaCacheKey(connectionId, "doris-catalogs");
|
||||
if (!options?.force) {
|
||||
const cached = await loadPersistedTreeChildren(node, cacheKey, load);
|
||||
|
||||
Reference in new issue
Block a user