The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Create feature flag for calendar V2 (#5998)
bosiraphael77f9f6473b4f
diff --git a/packages/twenty-server/src/database/typeorm-seeds/core/feature-flags.ts b/packages/twenty-server/src/database/typeorm-seeds/core/feature-flags.tsindex 3a36ad753ff..f20528d23d1 100644--- a/packages/twenty-server/src/database/typeorm-seeds/core/feature-flags.ts+++ b/packages/twenty-server/src/database/typeorm-seeds/core/feature-flags.ts@@ -45,6 +45,11 @@ export const seedFeatureFlags = async (workspaceId: workspaceId,value: true,},+ {+ key: FeatureFlagKeys.IsGoogleCalendarSyncV2Enabled,+ workspaceId: workspaceId,+ value: true,+ },]).execute();};diff --git a/packages/twenty-server/src/engine/core-modules/feature-flag/feature-flag.entity.ts b/packages/twenty-server/src/engine/core-modules/feature-flag/feature-flag.entity.tsindex 954461abdc7..6214f0f7a84 100644--- a/packages/twenty-server/src/engine/core-modules/feature-flag/feature-flag.entity.ts+++ b/packages/twenty-server/src/engine/core-modules/feature-flag/feature-flag.entity.ts@@ -22,6 +22,7 @@ export enum FeatureFlagKeys {IsPostgreSQLIntegrationEnabled = 'IS_POSTGRESQL_INTEGRATION_ENABLED',IsStripeIntegrationEnabled = 'IS_STRIPE_INTEGRATION_ENABLED',IsContactCreationForSentAndReceivedEmailsEnabled = 'IS_CONTACT_CREATION_FOR_SENT_AND_RECEIVED_EMAILS_ENABLED',+ IsGoogleCalendarSyncV2Enabled = 'IS_GOOGLE_CALENDAR_SYNC_V2_ENABLED',}@Entity({ name: 'featureFlag', schema: 'core' })diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/commands/add-standard-id.command.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/commands/add-standard-id.command.tsindex be810ced1e8..d89a8357ce4 100644--- a/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/commands/add-standard-id.command.ts+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/commands/add-standard-id.command.ts@@ -59,6 +59,7 @@ export class AddStandardIdCommand extends CommandRunner {IS_POSTGRESQL_INTEGRATION_ENABLED: true,IS_STRIPE_INTEGRATION_ENABLED: false,IS_CONTACT_CREATION_FOR_SENT_AND_RECEIVED_EMAILS_ENABLED: true,+ IS_GOOGLE_CALENDAR_SYNC_V2_ENABLED: true,},);const standardFieldMetadataCollection = this.standardFieldFactory.create(@@ -74,6 +75,7 @@ export class AddStandardIdCommand extends CommandRunner {IS_POSTGRESQL_INTEGRATION_ENABLED: true,IS_STRIPE_INTEGRATION_ENABLED: false,IS_CONTACT_CREATION_FOR_SENT_AND_RECEIVED_EMAILS_ENABLED: true,+ IS_GOOGLE_CALENDAR_SYNC_V2_ENABLED: true,},);