Allow isUnique mutation on standard field (#17120)

# Introduction
As we've just
[identified](https://github.com/twentyhq/twenty/pull/16981) the standard
field metadata in production we can not enable the is unique comparison
even for standard entities
This commit is contained in:
Paul Rastoin
2026-01-13 14:28:50 +01:00
committed by GitHub
parent e73aa80e73
commit f1be7129cb
2 changed files with 2 additions and 4 deletions
@@ -21,7 +21,6 @@ export const FLAT_FIELD_METADATA_EDITABLE_PROPERTIES = {
'label',
'options',
'settings',
//TODO : uncomment once universal identifier on standard fields is migrated
// 'isUnique', // not editable for standard fields with standard unique constraint
'isUnique',
],
} as const satisfies Record<'standard' | 'custom', (keyof FlatFieldMetadata)[]>;
@@ -330,8 +330,7 @@ describe('Standard field isUnique update should succeed', () => {
});
});
// TODO: Enable this test once isUnique set as editable on standard fields
it.failing('should set isUnique to true on standard field', async () => {
it('should set isUnique to true on standard field', async () => {
jestExpectToBeDefined(nameFieldMetadata);
const { data } = await updateOneFieldMetadata({