From a2df9bc29ada218d4f1e04b019cedd135512f9d6 Mon Sep 17 00:00:00 2001 From: Nayan Date: Wed, 31 May 2023 17:07:27 +0600 Subject: [PATCH] chore: Added appId and orgId parameters to git analytics events (#23891) ## Description This PR adds two additional parameters to the analytics events for git - `appId` and `orgId` #### PR fixes following issue(s) Fixes #23347 --- .../java/com/appsmith/server/services/ce/GitServiceCEImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/GitServiceCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/GitServiceCEImpl.java index 323ff923d6..4051864eb9 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/GitServiceCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/GitServiceCEImpl.java @@ -2499,6 +2499,7 @@ public class GitServiceCEImpl implements GitServiceCE { Map analyticsProps = new HashMap<>(); if (gitData != null) { analyticsProps.put(FieldName.APPLICATION_ID, gitData.getDefaultApplicationId()); + analyticsProps.put("appId", gitData.getDefaultApplicationId()); analyticsProps.put(FieldName.BRANCH_NAME, gitData.getBranchName()); analyticsProps.put("gitHostingProvider", GitUtils.getGitProviderName(gitData.getRemoteUrl())); } @@ -2509,6 +2510,7 @@ public class GitServiceCEImpl implements GitServiceCE { } analyticsProps.putAll(Map.of( FieldName.ORGANIZATION_ID, defaultIfNull(application.getWorkspaceId(), ""), + "orgId", defaultIfNull(application.getWorkspaceId(), ""), "branchApplicationId", defaultIfNull(application.getId(), ""), "isRepoPrivate", defaultIfNull(isRepoPrivate, ""), "isSystemGenerated", defaultIfNull(isSystemGenerated, "")