Skip to content

Commit

Permalink
Various fixes to Clone Command (CO-479)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Feb 8, 2026
1 parent eb0b042 commit 0fdbe49
Show file tree
Hide file tree
Showing 10 changed files with 368 additions and 124 deletions.
3 changes: 2 additions & 1 deletion app/availableplugins/ApiConnector/config/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"api_source_records_i1": { "columns": [ "api_source_id" ] },
"api_source_records_i2": { "columns": [ "api_source_id", "source_key" ] }
},
"changelog": false
"changelog": false,
"clone_relation": true
}
}
}
Expand Down
15 changes: 10 additions & 5 deletions app/plugins/CoreServer/config/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@
"required": {}
},
"indexes": {
"match_server_attributes_i1": { "columns": [ "match_server_id" ]}
}
"match_server_attributes_i1": { "columns": [ "match_server_id" ]},
"match_server_attributes_i2": { "needed": false, "columns": [ "type_id" ]}
},
"clone_relation": true
},
"oauth2_servers": {
"columns": {
Expand All @@ -66,7 +68,8 @@
},
"indexes": {
"oauth2_servers_i1": { "columns": [ "server_id" ] }
}
},
"clone_relation": true
},
"smtp_servers": {
"columns": {
Expand All @@ -83,7 +86,8 @@
},
"indexes": {
"smtp_servers_i1": { "columns": [ "server_id" ] }
}
},
"clone_relation": true
},
"sql_servers": {
"columns": {
Expand All @@ -98,7 +102,8 @@
},
"indexes": {
"sql_servers_i1": { "columns": [ "server_id" ]}
}
},
"clone_relation": true
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ protected function doRequest(
}

if($response->getStatusCode() != 200 && $response->getStatusCode() != 201) {
$error = $response->reasonPhrase;
$error = $response->getReasonPhrase();

// If an error was provided in the response, use that instead
if(!empty($body['error'])) {
Expand Down
3 changes: 2 additions & 1 deletion app/plugins/EnvSource/config/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"indexes": {
"env_source_identities_i1": { "columns": [ "source_key" ] },
"env_source_identities_i2": { "needed": false, "columns": [ "env_source_id" ] }
}
},
"clone_relation": true
},
"env_source_detours": {
"columns": {
Expand Down
Loading

0 comments on commit 0fdbe49

Please sign in to comment.