Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"use-query-params": "^2.2.1",
"uuid": "^10.0.0",
"web-vitals": "^1.1.2",
"ydb-ui-components": "^5.2.0",
"ydb-ui-components": "^5.3.0",
"zod": "^3.24.1"
},
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/containers/Tenant/Diagnostics/DiagnosticsPages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ const EXTERNAL_TABLE_PAGES = [overview, schema, describe, access];

const VIEW_PAGES = [overview, schema, describe, access];

const STREAMING_QUERY_PAGES = [overview, topShards, nodes, describe, access];

// verbose mapping to guarantee correct tabs for new path types
// TS will error when a new type is added but not mapped here
const pathTypeToPages: Record<EPathType, Page[] | undefined> = {
Expand All @@ -198,6 +200,8 @@ const pathTypeToPages: Record<EPathType, Page[] | undefined> = {
[EPathType.EPathTypeExternalDataSource]: EXTERNAL_DATA_SOURCE_PAGES,
[EPathType.EPathTypeExternalTable]: EXTERNAL_TABLE_PAGES,

[EPathType.EPathTypeStreamingQuery]: STREAMING_QUERY_PAGES,

[EPathType.EPathTypeView]: VIEW_PAGES,

[EPathType.EPathTypeReplication]: ASYNC_REPLICATION_PAGES,
Expand Down
1 change: 1 addition & 0 deletions src/containers/Tenant/Diagnostics/Overview/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function Overview({type, path, database, databaseFullPath}: OverviewProps) {
data={data}
/>
),
[EPathType.EPathTypeStreamingQuery]: undefined,
};

return (type && pathTypeToComponent[type]?.()) || <TableInfo data={data} type={type} />;
Expand Down
1 change: 1 addition & 0 deletions src/containers/Tenant/ObjectSummary/ObjectSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ export function ObjectSummary({
},
];
},
[EPathType.EPathTypeStreamingQuery]: undefined,
};

const pathTypeOverview = (PathType && getPathTypeOverview[PathType]?.()) || [];
Expand Down
3 changes: 2 additions & 1 deletion src/containers/Tenant/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,6 @@
"entity-name_resource-pool": "Resource Pool",
"entity-name_secondary-index-table": "Secondary Index Table",
"entity-name_vector-index-table": "Vector Index Table",
"entity-name_fulltext-index-table": "Fulltext Index Table"
"entity-name_fulltext-index-table": "Fulltext Index Table",
"entity-name_streaming_query": "Streaming Query"
}
2 changes: 2 additions & 0 deletions src/containers/Tenant/utils/controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ export const getSchemaControls =
external_data_source: undefined,

view: openPreview,

streaming_query: undefined,
};

return nodeTypeToControls[type];
Expand Down
10 changes: 10 additions & 0 deletions src/containers/Tenant/utils/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ const pathTypeToNodeType: Record<EPathType, NavigationTreeNodeType | undefined>
[EPathType.EPathTypeReplication]: 'async_replication',
[EPathType.EPathTypeTransfer]: 'transfer',
[EPathType.EPathTypeResourcePool]: 'resource_pool',

[EPathType.EPathTypeStreamingQuery]: 'streaming_query',
};

export const nodeTableTypeToPathType: Partial<Record<NavigationTreeNodeType, EPathType>> = {
Expand Down Expand Up @@ -94,6 +96,8 @@ const pathTypeToEntityName: Record<EPathType, string | undefined> = {
[EPathType.EPathTypeExternalDataSource]: i18n('entity-name_external-data-source'),
[EPathType.EPathTypeExternalTable]: i18n('entity-name_external-table'),

[EPathType.EPathTypeStreamingQuery]: i18n('entity-name_streaming_query'),

[EPathType.EPathTypeView]: i18n('entity-name_view'),

[EPathType.EPathTypeReplication]: i18n('entity-name_async-replication'),
Expand Down Expand Up @@ -154,6 +158,7 @@ const pathTypeToIsTable: Record<EPathType, boolean> = {
[EPathType.EPathTypeReplication]: false,
[EPathType.EPathTypeTransfer]: false,
[EPathType.EPathTypeResourcePool]: false,
[EPathType.EPathTypeStreamingQuery]: false,
};

//if add entity with tableType, make sure that Schema is available in Diagnostics section
Expand Down Expand Up @@ -194,6 +199,8 @@ const pathTypeToIsColumn: Record<EPathType, boolean> = {
[EPathType.EPathTypeExternalDataSource]: false,
[EPathType.EPathTypeExternalTable]: false,

[EPathType.EPathTypeStreamingQuery]: false,

[EPathType.EPathTypeView]: false,

[EPathType.EPathTypeReplication]: false,
Expand Down Expand Up @@ -222,6 +229,8 @@ const pathTypeToIsDatabase: Record<EPathType, boolean> = {
[EPathType.EPathTypeExternalDataSource]: false,
[EPathType.EPathTypeExternalTable]: false,

[EPathType.EPathTypeStreamingQuery]: false,

[EPathType.EPathTypeView]: false,

[EPathType.EPathTypeReplication]: false,
Expand Down Expand Up @@ -272,6 +281,7 @@ const pathTypeToChildless: Record<EPathType, boolean> = {
[EPathType.EPathTypeSubDomain]: false,
[EPathType.EPathTypeTableIndex]: false,
[EPathType.EPathTypeExtSubDomain]: false,
[EPathType.EPathTypeStreamingQuery]: false,
};

export const isChildlessPathType = (type?: EPathType, subType?: EPathSubType) =>
Expand Down
2 changes: 2 additions & 0 deletions src/containers/Tenant/utils/schemaActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ export const getActions =
external_data_source: EXTERNAL_DATA_SOURCE_SET,

view: VIEW_SET,

streaming_query: JUST_COPY,
};

return nodeTypeToActions[type];
Expand Down
2 changes: 2 additions & 0 deletions src/types/api/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ export enum EPathType {
EPathTypeReplication = 'EPathTypeReplication',
EPathTypeTransfer = 'EPathTypeTransfer',
EPathTypeResourcePool = 'EPathTypeResourcePool',

EPathTypeStreamingQuery = 'EPathTypeStreamingQuery',
}

export enum EPathSubType {
Expand Down
Loading