Replace shouldSyncNameAndLabel with isLabelSyncedWithName (#8067)
For consistency. This was not deployed yet so allowing myself just to rename everything, meaning developers will need to reset their db.
This commit is contained in:
@ -25,7 +25,7 @@ export const FIND_MANY_OBJECT_METADATA_ITEMS = gql`
|
||||
labelIdentifierFieldMetadataId
|
||||
imageIdentifierFieldMetadataId
|
||||
shortcut
|
||||
shouldSyncLabelAndName
|
||||
isLabelSyncedWithName
|
||||
indexMetadatas(paging: { first: 100 }) {
|
||||
edges {
|
||||
node {
|
||||
|
||||
@ -25,7 +25,7 @@ export const query = gql`
|
||||
labelIdentifierFieldMetadataId
|
||||
imageIdentifierFieldMetadataId
|
||||
shortcut
|
||||
shouldSyncLabelAndName
|
||||
isLabelSyncedWithName
|
||||
fields(paging: { first: 1000 }, filter: $fieldFilter) {
|
||||
edges {
|
||||
node {
|
||||
|
||||
@ -30,7 +30,7 @@ describe('objectMetadataItemSchema', () => {
|
||||
namePlural: 'notCamelCase',
|
||||
nameSingular: 'notCamelCase',
|
||||
updatedAt: 'invalid date',
|
||||
shouldSyncLabelAndName: 'not a boolean',
|
||||
isLabelSyncedWithName: 'not a boolean',
|
||||
};
|
||||
|
||||
// When
|
||||
|
||||
@ -27,5 +27,5 @@ export const objectMetadataItemSchema = z.object({
|
||||
nameSingular: camelCaseStringSchema,
|
||||
updatedAt: z.string().datetime(),
|
||||
shortcut: z.string().nullable().optional(),
|
||||
shouldSyncLabelAndName: z.boolean(),
|
||||
isLabelSyncedWithName: z.boolean(),
|
||||
}) satisfies z.ZodType<ObjectMetadataItem>;
|
||||
|
||||
Reference in New Issue
Block a user