Skip to content

Commit

Permalink
Issue connector promotion (#1253)
Browse files Browse the repository at this point in the history
* Update to send the PROMOTE requestOperationType with the promotion request

Signed-off-by: Aindriu Lavelle <[email protected]>

* Ensure promote operates the same way as create

Signed-off-by: Aindriu Lavelle <[email protected]>

---------

Signed-off-by: Aindriu Lavelle <[email protected]>
  • Loading branch information
aindriu-aiven authored May 19, 2023
1 parent 7db771a commit 1b28554
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion core/src/main/resources/static/js/connectorOverview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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?",
Expand Down

0 comments on commit 1b28554

Please sign in to comment.