chore(workspace): document circular dependency workaround

Added an explanatory comment detailing the specific circular dependency path to improve code readability and maintenance. This change does not affect functionality but aims to assist future developers in understanding the issue
This commit is contained in:
Antoine Moreaux 2024-12-20 18:06:16 +01:00
parent bef51323fb
commit 4400f5e2c1

View File

@ -22,6 +22,7 @@ import { PostgresCredentials } from 'src/engine/core-modules/postgres-credential
import { WorkspaceSSOIdentityProvider } from 'src/engine/core-modules/sso/workspace-sso-identity-provider.entity';
import { UserWorkspace } from 'src/engine/core-modules/user-workspace/user-workspace.entity';
// This line is necessary to avoid a circular dependency issue. Need to deep dive
// ../app-token/app-token.entity.ts > ../user/user.entity.ts > ../key-value-pair/key-value-pair.entity.ts > workspace.entity.ts
// eslint-disable-next-line
import { User } from 'src/engine/core-modules/user/user.entity';