diff --git a/core/src/main/java/io/aiven/klaw/service/ClusterApiService.java b/core/src/main/java/io/aiven/klaw/service/ClusterApiService.java index a0310357f5..3496fc2e36 100644 --- a/core/src/main/java/io/aiven/klaw/service/ClusterApiService.java +++ b/core/src/main/java/io/aiven/klaw/service/ClusterApiService.java @@ -411,7 +411,8 @@ public String approveConnectorRequests( String uri; - if (RequestOperationType.CREATE.value.equals(connectorType)) { + if (RequestOperationType.CREATE.value.equals(connectorType) + || RequestOperationType.PROMOTE.value.equals(connectorType)) { uri = clusterConnUrl + URI_POST_CONNECTOR; } else if (RequestOperationType.UPDATE.value.equals(connectorType)) { uri = clusterConnUrl + URI_UPDATE_CONNECTOR; diff --git a/core/src/main/resources/static/js/connectorOverview.js b/core/src/main/resources/static/js/connectorOverview.js index 8a6a8b1ffa..d24fee3976 100644 --- a/core/src/main/resources/static/js/connectorOverview.js +++ b/core/src/main/resources/static/js/connectorOverview.js @@ -352,7 +352,8 @@ app.controller("connectorOverviewCtrl", function($scope, $http, $location, $wind serviceInput['teamName'] = $scope.teamname; serviceInput['remarks'] = "Connector promotion." serviceInput['connectortype'] = 'Create'; - serviceInput['description'] = $scope.topicSelectedParam + " connector." + serviceInput['description'] = $scope.topicSelectedParam + " connector."; + serviceInput['requestOperationType'] = "PROMOTE"; swal({ title: "Are you sure?",