Skip to content

Commit fb0c4d4

Browse files
bosiraphaelWeiko
authored andcommitted
5498 create a feature flag is gmail sync v2 enabled (#5501)
Closes #5498
1 parent 1aa5a73 commit fb0c4d4

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

packages/twenty-server/src/database/typeorm-seeds/core/feature-flags.ts

+5
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ export const seedFeatureFlags = async (
4040
workspaceId: workspaceId,
4141
value: true,
4242
},
43+
{
44+
key: FeatureFlagKeys.IsGmailSyncV2Enabled,
45+
workspaceId: workspaceId,
46+
value: true,
47+
},
4348
])
4449
.execute();
4550
};

packages/twenty-server/src/engine/core-modules/feature-flag/feature-flag.entity.ts

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export enum FeatureFlagKeys {
2121
IsAirtableIntegrationEnabled = 'IS_AIRTABLE_INTEGRATION_ENABLED',
2222
IsPostgreSQLIntegrationEnabled = 'IS_POSTGRESQL_INTEGRATION_ENABLED',
2323
IsStripeIntegrationEnabled = 'IS_STRIPE_INTEGRATION_ENABLED',
24+
IsGmailSyncV2Enabled = 'IS_GMAIL_SYNC_V2_ENABLED',
2425
}
2526

2627
@Entity({ name: 'featureFlag', schema: 'core' })

packages/twenty-server/src/engine/workspace-manager/workspace-sync-metadata/commands/add-standard-id.command.ts

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export class AddStandardIdCommand extends CommandRunner {
5858
IS_AIRTABLE_INTEGRATION_ENABLED: true,
5959
IS_POSTGRESQL_INTEGRATION_ENABLED: true,
6060
IS_STRIPE_INTEGRATION_ENABLED: false,
61+
IS_GMAIL_SYNC_V2_ENABLED: true,
6162
},
6263
);
6364
const standardFieldMetadataCollection = this.standardFieldFactory.create(
@@ -72,6 +73,7 @@ export class AddStandardIdCommand extends CommandRunner {
7273
IS_AIRTABLE_INTEGRATION_ENABLED: true,
7374
IS_POSTGRESQL_INTEGRATION_ENABLED: true,
7475
IS_STRIPE_INTEGRATION_ENABLED: false,
76+
IS_GMAIL_SYNC_V2_ENABLED: true,
7577
},
7678
);
7779

0 commit comments

Comments
 (0)