-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* CB-5238 add main properties for connections * CB-5197 render main properties * CB-5197 render main properties * CB-5238 set default values to main properties * CB-5197 fix(ci/cd): respect base and target branches * CB-5238 fixes after review * CB-5197 review fixes * CB-5197 switch to new model * CB-5238 fixes after review * CB-5197 remove custom configuration type * CB-5238 remove custom config type from gql schema * CB-5197 do not check configuration type for creds * CB-5197 make argument optional * CB-5238 fix creating connection with url * CB-5238 rename param * CB-5238 rename param * CB-5197 rename field --------- Co-authored-by: naumov <[email protected]> Co-authored-by: Alexey <[email protected]> Co-authored-by: Evgenia Bezborodova <[email protected]>
- Loading branch information
1 parent
4433018
commit 49875e4
Showing
21 changed files
with
301 additions
and
155 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
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
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
24 changes: 24 additions & 0 deletions
24
webapp/packages/core-sdk/src/getObjectPropertyValueType.ts
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,24 @@ | ||
/* | ||
* CloudBeaver - Cloud Database Manager | ||
* Copyright (C) 2020-2024 DBeaver Corp and others | ||
* | ||
* Licensed under the Apache License, Version 2.0. | ||
* you may not use this file except in compliance with the License. | ||
*/ | ||
import type { ObjectPropertyInfo } from './sdk'; | ||
|
||
export type ObjectPropertyValueType = 'password' | 'text' | 'number'; | ||
|
||
export function getObjectPropertyValueType(property: ObjectPropertyInfo): ObjectPropertyValueType | undefined { | ||
const dataType = property.dataType?.toLowerCase(); | ||
|
||
if (property.features.includes('password')) { | ||
return 'password'; | ||
} | ||
|
||
if (dataType === 'integer') { | ||
return 'number'; | ||
} | ||
|
||
return dataType === 'string' ? 'text' : undefined; | ||
} |
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
9 changes: 8 additions & 1 deletion
9
webapp/packages/core-sdk/src/queries/connections/driverList.gql
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
4 changes: 4 additions & 0 deletions
4
webapp/packages/core-sdk/src/queries/fragments/DriverPropertyInfo.gql
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,4 @@ | ||
fragment DriverPropertyInfo on ObjectPropertyInfo { | ||
...ObjectPropertyInfo | ||
supportedConfigurationTypes | ||
} |
14 changes: 0 additions & 14 deletions
14
webapp/packages/core-sdk/src/queries/fragments/DriverProviderPropertyInfo.gql
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.