diff --git a/app/client/src/actions/pageActions.tsx b/app/client/src/actions/pageActions.tsx index c998d7546e..54c3d87cb6 100644 --- a/app/client/src/actions/pageActions.tsx +++ b/app/client/src/actions/pageActions.tsx @@ -207,12 +207,12 @@ export const createPageAction = ( applicationId: string, pageName: string, layouts: Partial[], - orgId: string, + workspaceId: string, instanceId?: string, ) => { AnalyticsUtil.logEvent("CREATE_PAGE", { pageName, - orgId, + workspaceId, instanceId, }); @@ -229,12 +229,12 @@ export const createPageAction = ( export const createNewPageFromEntities = ( applicationId: string, pageName: string, - orgId: string, + workspaceId: string, instanceId?: string, ) => { AnalyticsUtil.logEvent("CREATE_PAGE", { pageName, - orgId, + workspaceId, instanceId, }); diff --git a/app/client/src/ce/pages/workspace/InviteUsersForm.tsx b/app/client/src/ce/pages/workspace/InviteUsersForm.tsx index 319882bf8c..d206d3c488 100644 --- a/app/client/src/ce/pages/workspace/InviteUsersForm.tsx +++ b/app/client/src/ce/pages/workspace/InviteUsersForm.tsx @@ -414,7 +414,7 @@ function InviteUsersForm(props: any) { ...(!isFeatureEnabled ? { users: usersAsStringsArray } : {}), role: roles, numberOfUsersInvited: usersAsStringsArray.length, - orgId: props.workspaceId, + workspaceId: props.workspaceId, }); return inviteUsersToWorkspace( diff --git a/app/client/src/pages/common/datasourceAuth/index.tsx b/app/client/src/pages/common/datasourceAuth/index.tsx index 4f96862f11..d5654b4974 100644 --- a/app/client/src/pages/common/datasourceAuth/index.tsx +++ b/app/client/src/pages/common/datasourceAuth/index.tsx @@ -350,7 +350,7 @@ function DatasourceAuth({ AnalyticsUtil.logEvent("DATASOURCE_AUTHORIZE_CLICK", { dsName: datasource?.name, - orgId: datasource?.workspaceId, + workspaceId: datasource?.workspaceId, pluginName: pluginName, scopeValue: scopeValue, }); diff --git a/app/client/src/sagas/PostEvaluationSagas.ts b/app/client/src/sagas/PostEvaluationSagas.ts index 02bdc28693..86811acf89 100644 --- a/app/client/src/sagas/PostEvaluationSagas.ts +++ b/app/client/src/sagas/PostEvaluationSagas.ts @@ -167,7 +167,7 @@ export function* logSuccessfulBindings( entityType, propertyPath, isUndefined, - orgId: workspaceId, + workspaceId: workspaceId, instanceId, }); } diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/base/ActionCollectionServiceCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/base/ActionCollectionServiceCEImpl.java index a710e3ae73..3c4dcf1788 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/base/ActionCollectionServiceCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/actioncollections/base/ActionCollectionServiceCEImpl.java @@ -449,7 +449,7 @@ public class ActionCollectionServiceCEImpl extends BaseService analyticsProperties = new HashMap<>(); analyticsProperties.put("appName", ObjectUtils.defaultIfNull(savedApplication.getName(), "")); analyticsProperties.put("applicationId", ObjectUtils.defaultIfNull(savedApplication.getId(), "")); - analyticsProperties.put("orgId", ObjectUtils.defaultIfNull(savedApplication.getWorkspaceId(), "")); + analyticsProperties.put("workspaceId", ObjectUtils.defaultIfNull(savedApplication.getWorkspaceId(), "")); return analyticsProperties; } diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/artifacts/base/ArtifactServiceCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/artifacts/base/ArtifactServiceCEImpl.java index c5c4f2a500..079fb6bb77 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/artifacts/base/ArtifactServiceCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/artifacts/base/ArtifactServiceCEImpl.java @@ -98,7 +98,7 @@ public class ArtifactServiceCEImpl implements ArtifactServiceCE { final Map data = Map.of( FieldName.APPLICATION_ID, artifact.getId(), - "organizationId", + "workspaceId", artifact.getWorkspaceId(), "isRegeneratedKey", gitAuth.isRegeneratedKey(), diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/git/autocommit/AutoCommitEventHandlerCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/git/autocommit/AutoCommitEventHandlerCEImpl.java index bfb09ac1e5..7f7675691f 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/git/autocommit/AutoCommitEventHandlerCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/git/autocommit/AutoCommitEventHandlerCEImpl.java @@ -174,7 +174,7 @@ public class AutoCommitEventHandlerCEImpl implements AutoCommitEventHandlerCE { Map analyticsProps = new HashMap<>(); analyticsProps.put("appId", autoCommitEvent.getApplicationId()); analyticsProps.put(FieldName.BRANCH_NAME, autoCommitEvent.getBranchName()); - analyticsProps.put("orgId", autoCommitEvent.getWorkspaceId()); + analyticsProps.put("workspaceId", autoCommitEvent.getWorkspaceId()); analyticsProps.put("isSystemGenerated", true); analyticsProps.put("repoUrl", autoCommitEvent.getRepoUrl()); diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/git/common/CommonGitServiceCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/git/common/CommonGitServiceCEImpl.java index ec4488b881..f3402991e6 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/git/common/CommonGitServiceCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/git/common/CommonGitServiceCEImpl.java @@ -518,7 +518,7 @@ public class CommonGitServiceCEImpl implements CommonGitServiceCE { gitArtifactMetadata.getDefaultArtifactId(), FieldName.BRANCH_NAME, gitArtifactMetadata.getRefName(), - "organizationId", + "workspaceId", artifact.getWorkspaceId(), "repoUrl", gitArtifactMetadata.getRemoteUrl(), @@ -2096,9 +2096,7 @@ public class CommonGitServiceCEImpl implements CommonGitServiceCE { analyticsProps.put(FieldName.IS_MERGEABLE, isMergeable); } analyticsProps.putAll(Map.of( - "organizationId", - defaultIfNull(artifact.getWorkspaceId(), ""), - "orgId", + "workspaceId", defaultIfNull(artifact.getWorkspaceId(), ""), "branchApplicationId", defaultIfNull(artifact.getId(), ""), diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/git/utils/GitAnalyticsUtils.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/git/utils/GitAnalyticsUtils.java index 715ab0e37a..b5dc2bb812 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/git/utils/GitAnalyticsUtils.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/git/utils/GitAnalyticsUtils.java @@ -111,9 +111,7 @@ public class GitAnalyticsUtils { analyticsProps.put(FieldName.IS_MERGEABLE, isMergeable); } analyticsProps.putAll(Map.of( - "organizationId", - defaultIfNull(artifact.getWorkspaceId(), ""), - "orgId", + "workspaceId", defaultIfNull(artifact.getWorkspaceId(), ""), "branchApplicationId", defaultIfNull(artifact.getId(), ""), @@ -142,7 +140,7 @@ public class GitAnalyticsUtils { gitArtifactMetadata.getDefaultArtifactId(), FieldName.BRANCH_NAME, gitArtifactMetadata.getRefName(), - "organizationId", + "workspaceId", artifact.getWorkspaceId(), "repoUrl", gitArtifactMetadata.getRemoteUrl(), @@ -201,9 +199,9 @@ public class GitAnalyticsUtils { GitArtifactMetadata gitData = artifact.getGitArtifactMetadata(); Map analyticsProps = new HashMap<>(); - // TODO: analytics generalisation + // TODO: analytics generalization analyticsProps.put("appId", gitData.getDefaultArtifactId()); - analyticsProps.put("orgId", artifact.getWorkspaceId()); + analyticsProps.put("workspaceId", artifact.getWorkspaceId()); analyticsProps.put(FieldName.GIT_HOSTING_PROVIDER, GitUtils.getGitProviderName(gitData.getRemoteUrl())); analyticsProps.put(FieldName.REPO_URL, gitData.getRemoteUrl()); diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/DatasourceAnalyticsUtils.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/DatasourceAnalyticsUtils.java index 0927b5cac6..6e6c6f0cb4 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/DatasourceAnalyticsUtils.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/DatasourceAnalyticsUtils.java @@ -24,7 +24,6 @@ public class DatasourceAnalyticsUtils { public static Map getAnalyticsProperties(Datasource datasource) { Map analyticsProperties = new HashMap<>(); - analyticsProperties.put("orgId", datasource.getWorkspaceId()); analyticsProperties.put("pluginName", datasource.getPluginName()); analyticsProperties.put("pluginId", datasource.getPluginId()); analyticsProperties.put("dsName", datasource.getName()); @@ -37,7 +36,6 @@ public class DatasourceAnalyticsUtils { public static Map getAnalyticsProperties(DatasourceStorage datasourceStroge) { Map analyticsProperties = new HashMap<>(); - analyticsProperties.put("orgId", datasourceStroge.getWorkspaceId()); analyticsProperties.put("pluginName", datasourceStroge.getPluginName()); analyticsProperties.put("pluginId", datasourceStroge.getPluginId()); analyticsProperties.put("dsName", datasourceStroge.getName()); diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/CommonGitFileUtilsCE.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/CommonGitFileUtilsCE.java index a4b7d9a986..eb878cbba5 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/CommonGitFileUtilsCE.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/helpers/ce/CommonGitFileUtilsCE.java @@ -198,7 +198,7 @@ public class CommonGitFileUtilsCE { final Map data = Map.of( artifactConstant, repoPath.getParent().getFileName().toString(), - "organizationId", + "workspaceId", repoPath.getParent().getParent().getFileName().toString(), FieldName.FLOW_NAME, stopwatch.getFlow(), @@ -676,7 +676,7 @@ public class CommonGitFileUtilsCE { final Map data = Map.of( constantsMap.get(FieldName.ID), baseArtifactId, - "organizationId", + "workspaceId", workspaceId, FieldName.FLOW_NAME, stopwatch.getFlow(), diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java index c6e729a293..fabbf4691a 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/newactions/base/NewActionServiceCEImpl.java @@ -1370,7 +1370,7 @@ public class NewActionServiceCEImpl extends BaseService