From 58e2bcbba12eeefe7e0cd2b895063fa9458062ff Mon Sep 17 00:00:00 2001 From: yyh <92089059+lyzno1@users.noreply.github.com> Date: Mon, 27 Jul 2026 14:22:37 +0800 Subject: [PATCH] fix(web): stop reporting workspace status (#39626) --- web/context/__tests__/console-bootstrap.spec.tsx | 4 +++- web/context/amplitude-identity-sync.ts | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/context/__tests__/console-bootstrap.spec.tsx b/web/context/__tests__/console-bootstrap.spec.tsx index 61987812eb7..f1e9dce2a2b 100644 --- a/web/context/__tests__/console-bootstrap.spec.tsx +++ b/web/context/__tests__/console-bootstrap.spec.tsx @@ -552,7 +552,8 @@ describe('Console bootstrap', () => { }) await waitFor(() => { expect(setUserId).toHaveBeenCalledWith('user@example.com') - expect(setUserProperties).toHaveBeenCalledWith( + const properties = vi.mocked(setUserProperties).mock.calls.at(-1)?.[0] + expect(properties).toEqual( expect.objectContaining({ email: 'user@example.com', workspace_id: 'workspace-1', @@ -560,6 +561,7 @@ describe('Console bootstrap', () => { workspace_role: 'editor', }), ) + expect(properties).not.toHaveProperty('workspace_status') expect(flushRegistrationSuccess).toHaveBeenCalled() }) }) diff --git a/web/context/amplitude-identity-sync.ts b/web/context/amplitude-identity-sync.ts index c8684c5fd8d..abd7ac462a3 100644 --- a/web/context/amplitude-identity-sync.ts +++ b/web/context/amplitude-identity-sync.ts @@ -30,7 +30,6 @@ function buildAmplitudeProperties({ properties.workspace_id = currentWorkspace.id properties.workspace_name = currentWorkspace.name properties.workspace_plan = currentWorkspace.plan - properties.workspace_status = currentWorkspace.status properties.workspace_role = currentWorkspace.role }