Null equivalence - Activate FF for all (#16209)

This commit is contained in:
Etienne
2025-12-01 15:43:28 +01:00
committed by GitHub
parent 19fc20173b
commit 638d4015a1
3 changed files with 7 additions and 2 deletions
@@ -97,6 +97,11 @@ export const seedFeatureFlags = async ({
workspaceId: workspaceId,
value: true,
},
{
key: FeatureFlagKey.IS_NULL_EQUIVALENCE_ENABLED,
workspaceId: workspaceId,
value: true,
},
])
.execute();
};
@@ -2,4 +2,5 @@ import { FeatureFlagKey } from 'src/engine/core-modules/feature-flag/enums/featu
export const DEFAULT_FEATURE_FLAGS = [
FeatureFlagKey.IS_WORKSPACE_MIGRATION_V2_ENABLED,
FeatureFlagKey.IS_NULL_EQUIVALENCE_ENABLED,
] as const satisfies FeatureFlagKey[];
@@ -1,7 +1,6 @@
import { type FieldMetadataTypesToTestForCreateInputValidation } from 'test/integration/graphql/suites/inputs-validation/types/field-metadata-type-to-test';
import { TEST_TARGET_OBJECT_RECORD_ID_FIELD_VALUE } from 'test/integration/graphql/suites/inputs-validation/utils/setup-test-objects-with-all-field-types.util';
import { FieldMetadataType } from 'twenty-shared/types';
import { isEmptyObject } from 'twenty-shared/utils';
export const successfulCreateInputByFieldMetadataType: {
[K in Exclude<
@@ -135,7 +134,7 @@ export const successfulCreateInputByFieldMetadataType: {
rawJsonField: {},
},
validateInput: (record: Record<string, any>) => {
return isEmptyObject(record.rawJsonField);
return record.rawJsonField === null;
},
},
{