From 01de206c5a61ba94e089ffd2c9e56a59eadaff07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9A=B0=ED=98=81=EC=A4=80=20=28HyukJoon=20Woo=29?= Date: Mon, 8 Apr 2024 21:34:24 +0900 Subject: [PATCH] Rename resourceNameId to resourceOwnerTeamId in ApprovalService.java (#2391) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor: Rename resourceNameId to resourceOwnerTeamId to clarify meaning. Signed-off-by: huGgW * fix: Break a line to correct a linting error. Signed-off-by: huGgW --------- Signed-off-by: huGgW Co-authored-by: Aindriú Lavelle <121855584+aindriu-aiven@users.noreply.github.com> --- .../src/main/java/io/aiven/klaw/service/ApprovalService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/io/aiven/klaw/service/ApprovalService.java b/core/src/main/java/io/aiven/klaw/service/ApprovalService.java index d4b4769d6b..9d9e61873b 100644 --- a/core/src/main/java/io/aiven/klaw/service/ApprovalService.java +++ b/core/src/main/java/io/aiven/klaw/service/ApprovalService.java @@ -77,7 +77,7 @@ public List getApprovalsForRequest( RequestEntityType entityType, RequestOperationType operationType, String envName, - Integer resourceNameId, + Integer resourceOwnerTeamId, Integer aclOwnerId, int tenantId) throws KlawException { @@ -85,7 +85,8 @@ public List getApprovalsForRequest( for (Approval app : approvals) { if (app.getApprovalType() == ApprovalType.TOPIC_TEAM_OWNER || app.getApprovalType() == ApprovalType.CONNECTOR_TEAM_OWNER) { - app.setRequiredApprover(manageDatabase.getTeamNameFromTeamId(tenantId, resourceNameId)); + app.setRequiredApprover( + manageDatabase.getTeamNameFromTeamId(tenantId, resourceOwnerTeamId)); } else if (app.getApprovalType() == ApprovalType.ACL_TEAM_OWNER) { app.setRequiredApprover(manageDatabase.getTeamNameFromTeamId(tenantId, aclOwnerId)); }