Skip to content

Commit 9857b42

Browse files
committed
[DOP-29475] Get rid of Clickhouse database name
1 parent 6815690 commit 9857b42

File tree

3 files changed

+11
-5
lines changed
  • src
    • entities/connection
    • features/connection/ConnectionDetailInfo/utils/getConnectionData

3 files changed

+11
-5
lines changed

src/entities/connection/api/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ export interface ConnectionClickhouse {
9898
connection_data: {
9999
host: string;
100100
port: number;
101-
database_name: string | null;
102101
};
103102
}
104103

src/entities/connection/ui/ConnectionTypeForm/components/ConnectionClickhouse/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ export const ConnectionClickhouse = () => {
1616
<Form.Item label={t('port')} name={['connection_data', 'port']}>
1717
<InputNumber size="large" min={MIN_ALLOWED_PORT} max={MAX_ALLOWED_PORT} placeholder="8123" />
1818
</Form.Item>
19-
<Form.Item label={t('databaseName')} name={['connection_data', 'database_name']}>
20-
<Input size="large" placeholder="default" />
21-
</Form.Item>
2219
<ConnectionAuthBasic />
2320
</>
2421
);

src/features/connection/ConnectionDetailInfo/utils/getConnectionData/index.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,18 @@ export const getConnectionData = (connection: Connection, t: TFunction<'connecti
7373
content: connection_data.service_name || connection_data.sid,
7474
},
7575
];
76-
case ConnectionType.POSTGRES:
7776
case ConnectionType.CLICKHOUSE:
77+
return [
78+
{
79+
label: t('host'),
80+
content: connection_data.host,
81+
},
82+
{
83+
label: t('port'),
84+
content: connection_data.port,
85+
},
86+
];
87+
case ConnectionType.POSTGRES:
7888
case ConnectionType.MYSQL:
7989
case ConnectionType.MSSQL:
8090
return [

0 commit comments

Comments
 (0)