Skip to content

Commit 693a100

Browse files
committed
feat(Tenant): display tables indexes
1 parent 8a5e451 commit 693a100

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"reselect": "4.0.0",
4141
"sass": "1.32.8",
4242
"web-vitals": "1.1.2",
43-
"ydb-ui-components": "2.0.2"
43+
"ydb-ui-components": "2.1.0"
4444
},
4545
"scripts": {
4646
"start": "react-app-rewired start",

src/containers/Tenant/Schema/SchemaTree/SchemaTree.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ export function SchemaTree(props: SchemaTreeProps) {
3535
return Children.map(({Name = '', PathType}) => ({
3636
name: Name,
3737
type: mapPathTypeToNavigationTreeType(PathType),
38+
// FIXME: should only be explicitly set to true for tables with indexes
39+
// at the moment of writing there is no property to determine this, fix later
40+
expandable: true,
3841
}));
3942
});
4043

src/containers/Tenant/utils/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export const mapPathTypeToNavigationTreeType = (
1313
return 'table';
1414
case EPathType.EPathTypeDir:
1515
case EPathType.EPathTypeColumnStore:
16+
case EPathType.EPathTypeTableIndex:
1617
return 'directory';
1718
default:
1819
return defaultType;

src/services/api.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
8383
path,
8484
enums: true,
8585
backup: false,
86-
private: false,
8786
partition_config: false,
8887
partition_stats: false,
8988
partitioning_info: false,
@@ -111,7 +110,6 @@ export class YdbEmbeddedAPI extends AxiosWrapper {
111110
path,
112111
enums: true,
113112
backup: false,
114-
private: false,
115113
children: false,
116114
partition_config: false,
117115
partition_stats: true,

src/types/api/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export enum EPathType {
8888
EPathTypeSubDomain = 'EPathTypeSubDomain',
8989
EPathTypeColumnStore = 'EPathTypeColumnStore',
9090
EPathTypeColumnTable = 'EPathTypeColumnTable',
91+
EPathTypeTableIndex = 'EPathTypeTableIndex',
9192
}
9293

9394
enum EPathSubType {

0 commit comments

Comments
 (0)