fix(web): stop reporting workspace status (#39626)
This commit is contained in:
@@ -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()
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user