-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
6431 create new field activationStatus inside workspace table #6439
6431 create new field activationStatus inside workspace table #6439
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
Introduced a new activationStatus
field to the workspace table, along with necessary migrations and logic updates to ensure consistent status tracking.
- Added
WorkspaceActivationStatus
enum and updatedWorkspace
type inpackages/twenty-front/src/generated/graphql.tsx
. - Updated workspace activation logic in
packages/twenty-server/src/engine/core-modules/workspace/services/workspace.service.ts
. - Added migration
1722256203539-addActivationStatus.ts
inpackages/twenty-server/src/database/typeorm/core/migrations/
. - Integrated
activationStatus
updates inpackages/twenty-server/src/engine/core-modules/billing/billing.workspace-service.ts
. - Created
SetWorkspaceActivationStatusCommand
inpackages/twenty-server/src/database/commands/upgrade-version/0-23/0-23-set-workspace-activation-status.command.ts
.
16 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings
let activeSubscriptionWorkspaceIds: string[] = []; | ||
|
||
if (options.workspaceId) { | ||
activeSubscriptionWorkspaceIds = [options.workspaceId]; | ||
} else { | ||
activeSubscriptionWorkspaceIds = | ||
await this.billingService.getActiveSubscriptionWorkspaceIds(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic: Consider adding error handling for the getActiveSubscriptionWorkspaceIds
method to handle potential failures gracefully.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes #6431
activationStatus
activationStatus
on workspace activation and on stripe subscriptionStatus change