Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(web): stop reporting workspace status (#39626)

yyh58e2bcbba12e
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('[email protected]')
- expect(setUserProperties).toHaveBeenCalledWith(
+ const properties = vi.mocked(setUserProperties).mock.calls.at(-1)?.[0]
+ expect(properties).toEqual(
expect.objectContaining({
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
}