Skip to content

Commit 982e6d3

Browse files
authored
Remove feature flag for Links field (twentyhq#5606)
1 parent ceca920 commit 982e6d3

File tree

6 files changed

+1
-20
lines changed

6 files changed

+1
-20
lines changed

packages/twenty-front/src/modules/workspace/types/FeatureFlagKey.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ export type FeatureFlagKey =
44
| 'IS_EVENT_OBJECT_ENABLED'
55
| 'IS_AIRTABLE_INTEGRATION_ENABLED'
66
| 'IS_POSTGRESQL_INTEGRATION_ENABLED'
7-
| 'IS_STRIPE_INTEGRATION_ENABLED'
8-
| 'IS_LINKS_FIELD_ENABLED';
7+
| 'IS_STRIPE_INTEGRATION_ENABLED';

packages/twenty-front/src/pages/settings/data-model/SettingsObjectNewField/SettingsObjectNewFieldStep2.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import { Section } from '@/ui/layout/section/components/Section';
3232
import { Breadcrumb } from '@/ui/navigation/bread-crumb/components/Breadcrumb';
3333
import { View } from '@/views/types/View';
3434
import { ViewType } from '@/views/types/ViewType';
35-
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
3635
import { FieldMetadataType } from '~/generated-metadata/graphql';
3736
import { isDefined } from '~/utils/isDefined';
3837
import { isUndefinedOrNull } from '~/utils/isUndefinedOrNull';
@@ -112,8 +111,6 @@ export const SettingsObjectNewFieldStep2 = () => {
112111
const { createOneRelationMetadataItem: createOneRelationMetadata } =
113112
useCreateOneRelationMetadataItem();
114113

115-
const isLinksFieldEnabled = useIsFeatureEnabled('IS_LINKS_FIELD_ENABLED');
116-
117114
if (!activeObjectMetadataItem) return null;
118115

119116
const canSave =
@@ -263,7 +260,6 @@ export const SettingsObjectNewFieldStep2 = () => {
263260
FieldMetadataType.Email,
264261
FieldMetadataType.FullName,
265262
FieldMetadataType.Link,
266-
isLinksFieldEnabled ? undefined : FieldMetadataType.Links,
267263
FieldMetadataType.Numeric,
268264
FieldMetadataType.Probability,
269265
FieldMetadataType.Uuid,

packages/twenty-front/src/testing/mock-data/users.ts

-6
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@ export const mockDefaultWorkspace: Workspace = {
5050
value: true,
5151
workspaceId: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6w',
5252
},
53-
{
54-
id: '1492de61-5018-4368-8923-4f1eeaf988c7',
55-
key: 'IS_LINKS_FIELD_ENABLED',
56-
value: true,
57-
workspaceId: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6w',
58-
},
5953
],
6054
createdAt: '2023-04-26T10:23:42.33625+00:00',
6155
updatedAt: '2023-04-26T10:23:42.33625+00:00',

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

-5
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ export const seedFeatureFlags = async (
4545
workspaceId: workspaceId,
4646
value: true,
4747
},
48-
{
49-
key: FeatureFlagKeys.IsLinksFieldEnabled,
50-
workspaceId: workspaceId,
51-
value: true,
52-
},
5348
{
5449
key: FeatureFlagKeys.IsContactCreationForSentAndReceivedEmailsEnabled,
5550
workspaceId: workspaceId,

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

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export enum FeatureFlagKeys {
2222
IsPostgreSQLIntegrationEnabled = 'IS_POSTGRESQL_INTEGRATION_ENABLED',
2323
IsStripeIntegrationEnabled = 'IS_STRIPE_INTEGRATION_ENABLED',
2424
IsGmailSyncV2Enabled = 'IS_GMAIL_SYNC_V2_ENABLED',
25-
IsLinksFieldEnabled = 'IS_LINKS_FIELD_ENABLED',
2625
IsContactCreationForSentAndReceivedEmailsEnabled = 'IS_CONTACT_CREATION_FOR_SENT_AND_RECEIVED_EMAILS_ENABLED',
2726
}
2827

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
@@ -59,7 +59,6 @@ export class AddStandardIdCommand extends CommandRunner {
5959
IS_POSTGRESQL_INTEGRATION_ENABLED: true,
6060
IS_STRIPE_INTEGRATION_ENABLED: false,
6161
IS_GMAIL_SYNC_V2_ENABLED: true,
62-
IS_LINKS_FIELD_ENABLED: true,
6362
IS_CONTACT_CREATION_FOR_SENT_AND_RECEIVED_EMAILS_ENABLED: true,
6463
},
6564
);
@@ -76,7 +75,6 @@ export class AddStandardIdCommand extends CommandRunner {
7675
IS_POSTGRESQL_INTEGRATION_ENABLED: true,
7776
IS_STRIPE_INTEGRATION_ENABLED: false,
7877
IS_GMAIL_SYNC_V2_ENABLED: true,
79-
IS_LINKS_FIELD_ENABLED: true,
8078
IS_CONTACT_CREATION_FOR_SENT_AND_RECEIVED_EMAILS_ENABLED: true,
8179
},
8280
);

0 commit comments

Comments
 (0)