Fixing group name in edit connection dialog (#23010)

* Fixing group name in edit connection dialog

* Fixing test

* adding back group name

* Keeping old apis the same
This commit is contained in:
Aasim Khan
2023-05-17 17:22:43 -07:00
committed by GitHub
parent d53a35bf4f
commit 63f36594db

View File

@@ -144,6 +144,7 @@ export class ConnectionProfileGroup implements IConnectionProfileGroup {
connections?.forEach((conn) => {
this._childConnections = this._childConnections.filter((curConn) => { return curConn.id !== conn.id; });
conn.parent = this;
conn.groupId = this.id;
this._childConnections.push(conn);
});
@@ -153,6 +154,7 @@ export class ConnectionProfileGroup implements IConnectionProfileGroup {
groups?.forEach((group) => {
this._childGroups = this._childGroups.filter((grp) => { return group.id !== grp.id; });
group.parent = this;
group.parentId = this.id;
this._childGroups.push(group);
});
}
@@ -179,6 +181,7 @@ export class ConnectionProfileGroup implements IConnectionProfileGroup {
const matchingConnection = this.getMatchingConnection(connection);
connection.parent = this;
connection.groupId = this.id;
connection.groupFullName = this.fullName;
if (matchingConnection) {
this.replaceConnection(connection, matchingConnection.id);
} else {