-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #502 from actiontech/feature/sqle-issue-2752
[feature]: Implement batch testing for data source connectivity and fix table column type issues
- Loading branch information
Showing
61 changed files
with
2,111 additions
and
2,161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { ListDBServicesFilterLastConnectionTestStatusEnum } from '@actiontech/shared/lib/api/base/service/DBService/index.enum'; | ||
import { t } from '../../locale'; | ||
|
||
type IStaticEnumDictionary<T extends string> = { | ||
[key in T]: string; | ||
}; | ||
|
||
export const databaseTestConnectionStatusDictionary: IStaticEnumDictionary<ListDBServicesFilterLastConnectionTestStatusEnum> = | ||
{ | ||
[ListDBServicesFilterLastConnectionTestStatusEnum.connect_failed]: t( | ||
'dmsDataSource.batchTestConnection.connectFailed' | ||
), | ||
[ListDBServicesFilterLastConnectionTestStatusEnum.connect_success]: t( | ||
'dmsDataSource.batchTestConnection.connectSucceed' | ||
) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { ListDBServicesFilterLastConnectionTestStatusEnum } from '@actiontech/shared/lib/api/base/service/DBService/index.enum'; | ||
import { SelectProps } from 'antd'; | ||
import { useMemo } from 'react'; | ||
import { databaseTestConnectionStatusDictionary } from './index.data'; | ||
|
||
const useStaticTips = () => { | ||
const generateDatabaseTestConnectionStatusSelectOptions: SelectProps['options'] = | ||
useMemo(() => { | ||
return Object.values( | ||
ListDBServicesFilterLastConnectionTestStatusEnum | ||
).map((v) => ({ | ||
label: databaseTestConnectionStatusDictionary[v], | ||
value: v | ||
})); | ||
}, []); | ||
|
||
return { | ||
generateDatabaseTestConnectionStatusSelectOptions | ||
}; | ||
}; | ||
|
||
export default useStaticTips; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.