Skip to content

[CB] Ability to clone connections#4107

Merged
serge-rider merged 8 commits intodevelfrom
6998-cb-ability-to-clone-connections
Feb 10, 2026
Merged

[CB] Ability to clone connections#4107
serge-rider merged 8 commits intodevelfrom
6998-cb-ability-to-clone-connections

Conversation

@sergeyteleshev
Copy link
Copy Markdown
Contributor

devnaumov
devnaumov previously approved these changes Feb 5, 2026
existingConnections.map(c => c.name),
);

if (!connection.nodePath) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its strange that we are relying on the nodePath and its optional, probably we need a new method where we can use connection Id to clone it

HocKu7
HocKu7 previously approved these changes Feb 6, 2026
Comment thread webapp/packages/plugin-connections/src/ContextMenu/ConnectionMenuBootstrap.ts Outdated
Comment thread webapp/packages/plugin-connections/src/ContextMenu/ConnectionMenuBootstrap.ts Outdated
Comment thread webapp/packages/plugin-connections/src/ContextMenu/ConnectionMenuBootstrap.ts Outdated
Comment thread webapp/packages/plugin-connections/src/ContextMenu/ConnectionMenuBootstrap.ts Outdated
Comment on lines +169 to +170
// Load all connections for the project first to ensure we have them all to generate a unique name for the cloned connection
const projectConnections = await this.connectionInfoResource.load(ConnectionInfoProjectKey(connection.projectId));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is possibly a heavy operation; maybe we should pass it to the backend side, so we can call the clone method without specifying the name, and the backend will choose the right one

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we've talked about it on standup call. backend said this is not a heavy calculation

devnaumov
devnaumov previously approved these changes Feb 9, 2026
@serge-rider serge-rider merged commit 0f3b803 into devel Feb 10, 2026
10 checks passed
@serge-rider serge-rider deleted the 6998-cb-ability-to-clone-connections branch March 10, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants