Skip to content

Commit

Permalink
CB-5945. Mark deprecate for template (#3123)
Browse files Browse the repository at this point in the history
* CB-5933. Fixed typo

* CB-5945. Refactor after review

* CB-5945. Refactor after review

---------

Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com>
Co-authored-by: Ainur <59531286+yagudin10@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 12, 2024
1 parent 6830e34 commit 32e50c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ type ConnectionInfo {

properties: Object

template: Boolean!
template: Boolean! @deprecated
connected: Boolean!
provided: Boolean!
readOnly: Boolean!
Expand Down Expand Up @@ -492,7 +492,7 @@ input ConnectionConfig {
description: String

# ID of template connection
templateId: ID
templateId: ID @deprecated
# ID of database driver
driverId: ID

Expand All @@ -519,7 +519,7 @@ input ConnectionConfig {
autocommit: Boolean

# Return template connection state
template: Boolean
template: Boolean @deprecated
# Return read-only connection state
readOnly: Boolean

Expand Down Expand Up @@ -579,7 +579,7 @@ extend type Query {
userConnections( projectId: ID, id: ID, projectIds: [ID!] ): [ ConnectionInfo! ]!

# Return list of template connections by project ID
templateConnections( projectId: ID ): [ ConnectionInfo! ]!
templateConnections( projectId: ID ): [ ConnectionInfo! ]! @deprecated

# List of connection folders
connectionFolders( projectId: ID, path: ID ): [ ConnectionFolderInfo! ]!
Expand Down Expand Up @@ -621,7 +621,7 @@ extend type Mutation {
deleteConnection( id: ID!, projectId: ID ): Boolean!

# Create new custom connection from template
createConnectionFromTemplate( templateId: ID!, projectId: ID!, connectionName: String ): ConnectionInfo!
createConnectionFromTemplate( templateId: ID!, projectId: ID!, connectionName: String ): ConnectionInfo! @deprecated

# Create new folder for connections
createConnectionFolder(parentFolderPath: ID, folderName: String!, projectId: ID ): ConnectionFolderInfo!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ boolean deleteConnection(
@NotNull String connectionId) throws DBWebException;

@WebAction
@Deprecated
WebConnectionInfo createConnectionFromTemplate(
@NotNull WebSession webSession,
@NotNull String projectId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ public boolean deleteConnection(
}

@Override
@Deprecated
public WebConnectionInfo createConnectionFromTemplate(
@NotNull WebSession webSession,
@NotNull String projectId,
Expand Down

0 comments on commit 32e50c4

Please sign in to comment.