Skip to content

Commit a186718

Browse files
committed
[DOP-28169] Get rid of MySQL database name
1 parent 9857b42 commit a186718

File tree

3 files changed

+2
-6
lines changed
  • src
    • entities/connection
    • features/connection/ConnectionDetailInfo/utils/getConnectionData

3 files changed

+2
-6
lines changed

src/entities/connection/api/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ export interface ConnectionMySql {
107107
connection_data: {
108108
host: string;
109109
port: number;
110-
database_name: string;
111110
};
112111
}
113112

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

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export const getConnectionData = (connection: Connection, t: TFunction<'connecti
7474
},
7575
];
7676
case ConnectionType.CLICKHOUSE:
77+
case ConnectionType.MYSQL:
7778
return [
7879
{
7980
label: t('host'),
@@ -85,7 +86,6 @@ export const getConnectionData = (connection: Connection, t: TFunction<'connecti
8586
},
8687
];
8788
case ConnectionType.POSTGRES:
88-
case ConnectionType.MYSQL:
8989
case ConnectionType.MSSQL:
9090
return [
9191
{
@@ -98,7 +98,7 @@ export const getConnectionData = (connection: Connection, t: TFunction<'connecti
9898
},
9999
{
100100
label: t('databaseName'),
101-
content: connection_data.database_name || '',
101+
content: connection_data.database_name,
102102
},
103103
];
104104
case ConnectionType.S3:

0 commit comments

Comments
 (0)